A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Clearing scheduled work hours for weekends



 
 
Thread Tools Display Modes
  #1  
Old September 25th, 2008, 03:31 PM posted to microsoft.public.excel.worksheet.functions
Phil B.
external usenet poster
 
Posts: 7
Default Clearing scheduled work hours for weekends

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

  #2  
Old September 25th, 2008, 03:52 PM posted to microsoft.public.excel.worksheet.functions
HARSHAWARDHAN. S .SHASTRI[_2_]
external usenet poster
 
Posts: 70
Default Clearing scheduled work hours for weekends

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

================================================== ======

"Phil B." wrote:

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

  #3  
Old September 25th, 2008, 03:54 PM posted to microsoft.public.excel.worksheet.functions
ShaneDevenshire
external usenet poster
 
Posts: 2,232
Default Clearing scheduled work hours for weekends

Hi,

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

This assumes that the first day is in cell B1.

--
Thanks,
Shane Devenshire


"Phil B." wrote:

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

  #4  
Old September 25th, 2008, 03:54 PM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_3_]
external usenet poster
 
Posts: 2,297
Default Clearing scheduled work hours for weekends

Hi Phil

=IF(WEEKDAY(B2,2)5,0.0,7,5)

--
Regards
Roger Govier

"Phil B." wrote in message
...
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

  #5  
Old September 25th, 2008, 05:08 PM posted to microsoft.public.excel.worksheet.functions
Phil B.
external usenet poster
 
Posts: 7
Default Clearing scheduled work hours for weekends

Unfortunately, this function comes back with a 7.5 or FALSE for both Sat and
Sun.

"ShaneDevenshire" wrote:

Hi,

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

This assumes that the first day is in cell B1.

--
Thanks,
Shane Devenshire


"Phil B." wrote:

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

  #6  
Old September 25th, 2008, 05:09 PM posted to microsoft.public.excel.worksheet.functions
Phil B.
external usenet poster
 
Posts: 7
Default Clearing scheduled work hours for weekends

The response to this function is 0.0 for all days.

"Roger Govier" wrote:

Hi Phil

=IF(WEEKDAY(B2,2)5,0.0,7,5)

--
Regards
Roger Govier

"Phil B." wrote in message
...
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


  #7  
Old September 25th, 2008, 09:03 PM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_3_]
external usenet poster
 
Posts: 2,297
Default Clearing scheduled work hours for weekends

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)

--
Regards
Roger Govier

"Phil B." wrote in message
...
The response to this function is 0.0 for all days.

"Roger Govier" wrote:

Hi Phil

=IF(WEEKDAY(B2,2)5,0.0,7,5)

--
Regards
Roger Govier

"Phil B." wrote in message
...
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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.