Rota Spreadsheet

nigelandrewfoster

Well-known Member
Joined
May 27, 2009
Messages
735
I have a simple rota spreadsheet which calculates hours worked per worker MONDAY to FRIDAY by inputting START and FINISHING times for each day. It works, until the user inputs "HOLIDAY" or other text into the table, which results in "#VALUE!" in the totals box. Is there any way I can get Excel to ignore text or treat it as zero without resorting to a macro?
 

Some videos you may like

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

nigelandrewfoster

Well-known Member
Joined
May 27, 2009
Messages
735
=(C4-B4)+(E4-D4)+(G4-F4)+(I4-H4)+(K4-J4)+(M4-L4)+(O4-N4) IN Q4, THEN =IF(Q4>0,Q4,0) IN P4 (TO SCREEN OUT NEGATIVES)
Thanks,
Nigel
 

bobsan42

Well-known Member
Joined
Jul 14, 2010
Messages
1,364
then i guess you should put an error check ot each subtraction (sorry but can't think of a more elegant way). The question is what shgould happen if there is Holiday - shoud it return 0? if yes then try this:
=if(iserror(C4-B4),0,(C4-B4))+if(iserror(E4-D4),0,(E4-D4))+if(iserror(G4-F4),0,(G4-F4))+if(iserror(I4-H4),0,(I4-H4))+if(iserror(K4-J4),0,(K4-J4))+if(iserror(M4-L4),0,(M4-L4))+if(iserror(O4-N4),0,(O4-N4))
 

Toonies

Board Regular
Joined
Jun 8, 2009
Messages
236
Hi I have a Rota Spreadsheet that will help you out.

If you PM me I will give you more detail.

Many Thanks

Toonies
 

Watch MrExcel Video

Forum statistics

Threads
1,123,324
Messages
5,600,956
Members
414,417
Latest member
Nobu

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