Highlighting date/time cells below certain times

brianfitz

New Member
Joined
Aug 6, 2010
Messages
18
Hi guys, hope someone can help.

I have a massive amount of data on a few spreadsheets and need to highlight increased call volumes at certain peak times, in this case between 10am to 11am and 2pm to 3pm.

My datetime columns format is 23/06/2010 10:00 and was wondering is there conditional formatting I could do that could highlight all times in the above range in a certain colour?

Any help is much appreciated,

Brian
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

xld

Banned
Joined
Feb 8, 2003
Messages
5,378
Use a CF formula of

=OR(AND(ROUND(MOD(A2,1)*86400,0)>=ROUND(--"10:00:00"*86400,0),ROUND(MOD(A2,1)*86400,0)<=ROUND(--"10:00:00"*86400,0)),
AND(ROUND(MOD(A2,1)*86400,0)>=ROUND(--"14:00:00"*86400,0),ROUND(MOD(A2,1)*86400,0)<=ROUND(--"15:00:00"*86400,0)))
 

p45cal

Well-known Member
Joined
Nov 10, 2009
Messages
4,763
=or(and(mod(d4,1)>=timevalue("10:00"),mod(d4,1)<=timevalue("11:00")),and(mod(d4,1)>=timevalue("14:00"),mod(d4,1)<=timevalue("15:00")))
with date-timestamp in D4
 
Last edited:

brianfitz

New Member
Joined
Aug 6, 2010
Messages
18
That seems to have done the job lovely, guys much appreciated for your help and time.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,706
Messages
5,833,234
Members
430,198
Latest member
KitaYama

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