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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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?
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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
Back
Top