Clearing scheduled work hours for weekends

P

Phil B.

I have set up an worksheet for employees that automatically populates two
rows, the day (eg. Wed) the date (e.g. 15). The first day and date are
calculated from a mm/dd/yy entered by the employee. Successive day and dates
are completed by simply adding 1 to the previous cell formula.
What formula do I use to automatically populate a third row with a
sheduled value of "7.5" for Monday - Friday and "0.0" for Saturday and
Sunday"?

e.g. DAY: Wed Thu Fri Sat Sun Mon Tue etc.
DATE: 15 16 17 18 19 20 21 etc.
SCHE: 7.5 7.5 7.5 0.0 0.0 7.5 7.5 etc.

Thanks
 
H

HARSHAWARDHAN. S .SHASTRI

Hi Phil B,

considering your 3rd row is 3 and week days are in text format you can
use following formula.

=IF(OR(A1="sat",A1="sun"),0,7.5)

and copy horizontally.

Harshawardhan shastri

========================================================
 
S

ShaneDevenshire

Hi,

=IF(OR(B1="Sat",B1="Sun"),0,7.5)

This assumes that the first day is in cell B1.
 
R

Roger Govier

Hi Phil
Which row contains the Excel dates?
I assumed it was row 2.
If it is row 1, then just change to
=IF(WEEKDAY(B1,2)>5,0.0,7,5)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top