time sub

kxlvba

New Member
Joined
Jun 11, 2006
Messages
43
I have time in the following format.
9/27/2006 5:49:17 PM
In another column I have time as 3:00:00 PM.
Now, I need to subtract times, but the format 9/27/2006 5:49:17 PM is causing issue and I'm not able to sub time and get the information. Can I use the Text(...."hh:mm....) etc
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

BJungheim

Well-known Member
Joined
Jul 24, 2004
Messages
914
What is the expected result? 2:19:17? If so, is the 3:00:00 PM just 3:00:00 PM or is it 9/27/2006 3:00:00 PM formatted to hide the date?
 

kxlvba

New Member
Joined
Jun 11, 2006
Messages
43
Got it I used =Text(Reference Cell, "h:mm")

Had that in mind, but wasn't getting it.

Thanks.

But if you can now help me with something else.

How do I conditional format A1:Z1 in red if the condition in Z1 > 2:00
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
How do I conditional format A1:Z1 in red if the condition in Z1 > 2:00

1. Select A1:Z1 and go Format>Conditional Formatting
2. Change to Formula Is
3. Type in =$Z1>0.08
4. Select format required and click OK.

2 hours is equivalent to 2/24ths of a day = 0.08.

Richard
 

Forum statistics

Threads
1,144,622
Messages
5,725,338
Members
422,618
Latest member
Shull1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top