Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sundays
I dl a timesheet template where the date is formatted to say Sunday, Monday
etc. (Eg 40017 displays Thursday in column A5 and 23/07/09 in column B5) I need a value of 1 in colum J5 if A5 = Sunday AND there is a value 0 in column H5 Currently the spreadsheet looks like this: A = Weekday B= Date C= Start work D= End work H= Daily hours worked J = Sundays worked |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sundays
=IF(AND(A5="Sunday",H50),1,0)
-- Max Singapore http://savefile.com/projects/236895 Downloads:27,000 Files:200 Subscribers:70 xdemechanik --- "Maresa" wrote: I dl a timesheet template where the date is formatted to say Sunday, Monday etc. (Eg 40017 displays Thursday in column A5 and 23/07/09 in column B5) I need a value of 1 in colum J5 if A5 = Sunday AND there is a value 0 in column H5 Currently the spreadsheet looks like this: A = Weekday B= Date C= Start work D= End work H= Daily hours worked J = Sundays worked |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sundays
Try the below
=IF(AND(WEEKDAY(A5)=1,A50,H50),1,0) If this post helps click Yes --------------- Jacob Skaria "Maresa" wrote: I dl a timesheet template where the date is formatted to say Sunday, Monday etc. (Eg 40017 displays Thursday in column A5 and 23/07/09 in column B5) I need a value of 1 in colum J5 if A5 = Sunday AND there is a value 0 in column H5 Currently the spreadsheet looks like this: A = Weekday B= Date C= Start work D= End work H= Daily hours worked J = Sundays worked |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sundays
If the value in A5 is actually a number, use this:
=IF(AND(TEXT(A5,"dddd")="Sunday",H50),1,0) -- Max Singapore http://savefile.com/projects/236895 Downloads:27,000 Files:200 Subscribers:70 xdemechanik --- |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sundays
=(MOD(A5,7)=1)*(H50)
Regards, Bernd |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sundays
=(MOD(A5,7)=1)*(H50)
That only works if you're using the 1900 date system. Safer to use the WEEKDAY function. -- Biff Microsoft Excel MVP "Bernd P" wrote in message ... =(MOD(A5,7)=1)*(H50) Regards, Bernd |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calculate no. of Sundays in a month | Excel Discussion (Misc queries) | |||
Get all Sundays | Excel Worksheet Functions | |||
Networkdays plus Sundays | Excel Worksheet Functions | |||
# of Sundays in a year | Excel Discussion (Misc queries) | |||
No Sat & Sundays | Excel Discussion (Misc queries) |