A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Teylyn wrote:
B2 here does not contain text. It is a time value formatted with custom format "d:mm:hh:ss". That's how I read the question, but you're right, it's probably text.
No, you're right. Watts wrote "contains data in dd:hh:mm:ss", which is ambiguous. I interpreted it to mean: data entered in that form, which Excel would interpret as text.
@Watts: If Teylyn is correct and the cell contains a numeric value formatted as dd:hh:mm:ss, bear in mind that "dd" might work for you only by coincidence. Generally, it should not be used that way, IMHO.
"dd" is day of the month, not number of days. It might seem to work when the numeric time is less than 32 days (after rounding any fractional second) only because the integer part represents a day in Jan 1900 (!).
If the numeric time were 32d 2h 3m 4s, for example, it would appear as 01:02:03:04, not 32:02:03:04 as you would intend, I presume.