ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   copying part of a cell's contents (formatted as dd:hh:mm) (https://www.excelbanter.com/excel-worksheet-functions/79736-copying-part-cells-contents-formatted-dd-hh-mm.html)

Tom in Americus

copying part of a cell's contents (formatted as dd:hh:mm)
 
Is there a way to extract (copy) a particular portion of a cell's contents
where the cell's number format is dd:hh:mm?
For instance, 04:09:12 indicates 4 days, 9 hours and 12 minutes. I would
like to extract the days, hours, and minutes separately and copy them to
three separate cells.

Gary''s Student

copying part of a cell's contents (formatted as dd:hh:mm)
 
If 04:09:12 is in text then
=MID(A1,1,2)*1 =MID(A1,4,2)*1 =MID(A1,7,2)*1
will give you day, hours, and minutes
--
Gary's Student


"Tom in Americus" wrote:

Is there a way to extract (copy) a particular portion of a cell's contents
where the cell's number format is dd:hh:mm?
For instance, 04:09:12 indicates 4 days, 9 hours and 12 minutes. I would
like to extract the days, hours, and minutes separately and copy them to
three separate cells.



All times are GMT +1. The time now is 04:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com