Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Weekends for timesheet

i have a worksheet for my flexi timesheet. it automatically populates the
dates for a month in collumn A based on the following formula:

=IF(MONTH($A$18)=MONTH($A$18+ROW()-18),$A$18+ROW()-18,"")

i want it to enter my usual hours in collumn N. but i want it to enter 0:00
if it is a weekend. i.e. IF A18 is a weekday enter 07:30 in cell N18, else
0:00

is this possible???

please help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Weekends for timesheet

=IF(WEEKDAY(A18,2)<6,"07:00","0:00")

"Jenna" wrote:

i have a worksheet for my flexi timesheet. it automatically populates the
dates for a month in collumn A based on the following formula:

=IF(MONTH($A$18)=MONTH($A$18+ROW()-18),$A$18+ROW()-18,"")

i want it to enter my usual hours in collumn N. but i want it to enter 0:00
if it is a weekend. i.e. IF A18 is a weekday enter 07:30 in cell N18, else
0:00

is this possible???

please help!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Weekends for timesheet

=IF(WEEKDAY(A18,2)<6,"07:00","0:00")

"Jenna" wrote:

i have a worksheet for my flexi timesheet. it automatically populates the
dates for a month in collumn A based on the following formula:

=IF(MONTH($A$18)=MONTH($A$18+ROW()-18),$A$18+ROW()-18,"")

i want it to enter my usual hours in collumn N. but i want it to enter 0:00
if it is a weekend. i.e. IF A18 is a weekday enter 07:30 in cell N18, else
0:00

is this possible???

please help!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove weekends rhhince[_2_] Excel Worksheet Functions 2 May 23rd 10 04:57 AM
Change the weekends Sadad Excel Worksheet Functions 1 April 13th 10 05:37 PM
Skip weekends rhhince[_2_] Excel Worksheet Functions 1 October 12th 09 12:12 AM
Weekends JRD Excel Worksheet Functions 6 June 30th 09 05:06 PM
Weekends Bob[_6_] Excel Worksheet Functions 9 June 8th 07 01:30 PM


All times are GMT +1. The time now is 04:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"