#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Sundays

=(MOD(A5,7)=1)*(H50)

Regards,
Bernd


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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
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
Calculate no. of Sundays in a month Arup C[_2_] Excel Discussion (Misc queries) 14 June 19th 08 05:01 PM
Get all Sundays Rick[_5_] Excel Worksheet Functions 4 September 6th 07 12:01 PM
Networkdays plus Sundays Kurt Levitan Excel Worksheet Functions 4 September 11th 06 07:53 PM
# of Sundays in a year lsmft Excel Discussion (Misc queries) 18 April 27th 06 02:26 PM
No Sat & Sundays lsmft Excel Discussion (Misc queries) 5 April 12th 06 05:52 PM


All times are GMT +1. The time now is 01:56 PM.

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

About Us

"It's about Microsoft Excel"