icissel1234

New Member
Joined
Jan 8, 2014
Messages
22
I am making a schedule in excel and want to highlight cells in which people are on overtime. One work sheet is a schedule a separate worksheet calculates everyones hours in a month (column a are the names and column is the hours). So in the schedule worksheet i have a conditional format that apples to the entire sheet

=and('hours'!>40,vlookup(>40,'hours'!a1:a30,1,0))

i cant understand why #1 that formula will not be accepted and #2 how to highlight the cells that correspond with shifts in which someone is on overtime

any help is greatly appreciated
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Conditional formatting formulas cannot reference other sheets. You would need to have the data on the same sheet if you wanted to use CF.
 
Upvote 0
ok thanks that solves that. is there a way to highlight just the cells that are considered overtime as opposed to every cell on the schedule where that persons name appears
 
Upvote 0
Possibly. Are you able to post your table?

And so I understand...For example, a person is scheduled M-Th for 10 hrs each day (40 hrs for the week). You then want the Friday hours highlighted (over 40 for the week)? Or the name highlighted?
 
Upvote 0
Assuming names in column A and the hours for the week in columns B through H, this will work as the CF formula in A1:

=SUM(B1:H1) > 40

Does that get you going in the right direction?
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,591
Members
449,174
Latest member
chandan4057

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