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 |
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 |
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 |
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 --- |
Sundays
=(MOD(A5,7)=1)*(H50)
Regards, Bernd |
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 |
All times are GMT +1. The time now is 07:10 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com