Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default how to check for days of the week

I have several sheets that I need to collect data from. Coloumb A has dates
Sunday thru Saturday, formated as: Tuesday, August 25, 2009 There
are twelve sheets like this....one for each month. On the "Report" sheet, I
need to collect certain 'days of the week' which are Tuesday and Thursdays
only (this may change later) and use the values associated with those days.
The cells that each day is in will change from month to month and year to
year. Is it possible to tell Excell to 'locate' a certain day in a
particular coloumb and bring the associated values in coloumbs B thru H?

I don't always find my way to this area, would you mind if you contact me
at: ?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default how to check for days of the week

Hi
You can add a column next to date column and put the formula below, copy it
down , This will give you the weekday ( SUNDAY =1)
you can use sum if to get totals for the desired days

=IF(WEEKDAY(D5,1)=1,"Sunday",IF(WEEKDAY(D5,1)=2,"M onday",IF(WEEKDAY(D5,1)=3,"Tuesday",IF(WEEKDAY(D5, 1)=4,"Wednesday",IF(WEEKDAY(D5,1)=5,"Thursday",IF( WEEKDAY(D5,1)=6,"Friday",IF(WEEKDAY(D5,1)=7,"Satur day","")))))))

Best regards

Rajesh Mehmi




"Gary" wrote in message
...
I have several sheets that I need to collect data from. Coloumb A has
dates
Sunday thru Saturday, formated as: Tuesday, August 25, 2009
There
are twelve sheets like this....one for each month. On the "Report" sheet,
I
need to collect certain 'days of the week' which are Tuesday and
Thursdays
only (this may change later) and use the values associated with those
days.
The cells that each day is in will change from month to month and year to
year. Is it possible to tell Excell to 'locate' a certain day in a
particular coloumb and bring the associated values in coloumbs B thru H?

I don't always find my way to this area, would you mind if you contact me
at:
?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default how to check for days of the week

Your entire formula can be replaced by this much shorter one...

=TEXT(D5,"dddd")

--
Rick (MVP - Excel)


"Rajesh Mehmi" wrote in message
...
Hi
You can add a column next to date column and put the formula below, copy
it down , This will give you the weekday ( SUNDAY =1)
you can use sum if to get totals for the desired days

=IF(WEEKDAY(D5,1)=1,"Sunday",IF(WEEKDAY(D5,1)=2,"M onday",IF(WEEKDAY(D5,1)=3,"Tuesday",IF(WEEKDAY(D5, 1)=4,"Wednesday",IF(WEEKDAY(D5,1)=5,"Thursday",IF( WEEKDAY(D5,1)=6,"Friday",IF(WEEKDAY(D5,1)=7,"Satur day","")))))))

Best regards

Rajesh Mehmi




"Gary" wrote in message
...
I have several sheets that I need to collect data from. Coloumb A has
dates
Sunday thru Saturday, formated as: Tuesday, August 25, 2009 There
are twelve sheets like this....one for each month. On the "Report"
sheet, I
need to collect certain 'days of the week' which are Tuesday and
Thursdays
only (this may change later) and use the values associated with those
days.
The cells that each day is in will change from month to month and year to
year. Is it possible to tell Excell to 'locate' a certain day in a
particular coloumb and bring the associated values in coloumbs B thru H?

I don't always find my way to this area, would you mind if you contact me
at:
?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default how to check for days of the week

I'm not completely sure what you are trying to do from your description. Can
you explain what you mean by "I need to collect certain days" and "bring the
associated value in columns B thru H"? Collect what, the values in B thru H?
Bring them where (I know the report sheet, but where on the report sheet)?
Also, how are the sheets you are collecting the information from named? Is a
VB coded solution acceptable?

--
Rick (MVP - Excel)


"Gary" wrote in message
...
I have several sheets that I need to collect data from. Coloumb A has
dates
Sunday thru Saturday, formated as: Tuesday, August 25, 2009
There
are twelve sheets like this....one for each month. On the "Report" sheet,
I
need to collect certain 'days of the week' which are Tuesday and
Thursdays
only (this may change later) and use the values associated with those
days.
The cells that each day is in will change from month to month and year to
year. Is it possible to tell Excell to 'locate' a certain day in a
particular coloumb and bring the associated values in coloumbs B thru H?

I don't always find my way to this area, would you mind if you contact me
at: ?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default how to check for days of the week

Hello Gary,

You seem to have collected your data separated by weekday already.
Aren't your 12 sheets showing Sunday data in column B, ... and
Saturday data in column H?

If that's the case you can easily apply a 3D sum:
All Tuesdays: =SUM(Sheet1:Sheet12!D1:D999)
All Thursdays: =SUM(Sheet1:Sheet12!F1:F999)

(You did not mention your sheet names. Make sure that Sheet1 is your
first, Sheet12 your last and that all the others BUT NO MORE sheets
are in between.)

If I did not guess your data structure correctly let us exactly know
how your data is organised, please.

OT: Don't ask for emails please. Others would like to participate from
all responses.

Regards,
Bernd


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default how to check for days of the week

Hi Rick

Could the result of =TEXT(D5,"dddd")
then be used in a "sumif" function?


best regards
Rajesh Mehmi



"Rick Rothstein" wrote in message
...
Your entire formula can be replaced by this much shorter one...

=TEXT(D5,"dddd")

--
Rick (MVP - Excel)


"Rajesh Mehmi" wrote in message
...
Hi
You can add a column next to date column and put the formula below, copy
it down , This will give you the weekday ( SUNDAY =1)
you can use sum if to get totals for the desired days

=IF(WEEKDAY(D5,1)=1,"Sunday",IF(WEEKDAY(D5,1)=2,"M onday",IF(WEEKDAY(D5,1)=3,"Tuesday",IF(WEEKDAY(D5, 1)=4,"Wednesday",IF(WEEKDAY(D5,1)=5,"Thursday",IF( WEEKDAY(D5,1)=6,"Friday",IF(WEEKDAY(D5,1)=7,"Satur day","")))))))

Best regards

Rajesh Mehmi




"Gary" wrote in message
...
I have several sheets that I need to collect data from. Coloumb A has
dates
Sunday thru Saturday, formated as: Tuesday, August 25, 2009 There
are twelve sheets like this....one for each month. On the "Report"
sheet, I
need to collect certain 'days of the week' which are Tuesday and
Thursdays
only (this may change later) and use the values associated with those
days.
The cells that each day is in will change from month to month and year
to
year. Is it possible to tell Excell to 'locate' a certain day in a
particular coloumb and bring the associated values in coloumbs B thru H?

I don't always find my way to this area, would you mind if you contact
me
at:
?






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default how to check for days of the week

I don't see why not (you could always try it and see). Let's put it this
way... if the result of the formula you posted can, then so can mine.... the
two formulas produce identical results.

--
Rick (MVP - Excel)


"Rajesh Mehmi" wrote in message
...
Hi Rick

Could the result of =TEXT(D5,"dddd")
then be used in a "sumif" function?


best regards
Rajesh Mehmi



"Rick Rothstein" wrote in message
...
Your entire formula can be replaced by this much shorter one...

=TEXT(D5,"dddd")

--
Rick (MVP - Excel)


"Rajesh Mehmi" wrote in message
...
Hi
You can add a column next to date column and put the formula below, copy
it down , This will give you the weekday ( SUNDAY =1)
you can use sum if to get totals for the desired days

=IF(WEEKDAY(D5,1)=1,"Sunday",IF(WEEKDAY(D5,1)=2,"M onday",IF(WEEKDAY(D5,1)=3,"Tuesday",IF(WEEKDAY(D5, 1)=4,"Wednesday",IF(WEEKDAY(D5,1)=5,"Thursday",IF( WEEKDAY(D5,1)=6,"Friday",IF(WEEKDAY(D5,1)=7,"Satur day","")))))))

Best regards

Rajesh Mehmi




"Gary" wrote in message
...
I have several sheets that I need to collect data from. Coloumb A has
dates
Sunday thru Saturday, formated as: Tuesday, August 25, 2009 There
are twelve sheets like this....one for each month. On the "Report"
sheet, I
need to collect certain 'days of the week' which are Tuesday and
Thursdays
only (this may change later) and use the values associated with those
days.
The cells that each day is in will change from month to month and year
to
year. Is it possible to tell Excell to 'locate' a certain day in a
particular coloumb and bring the associated values in coloumbs B thru
H?

I don't always find my way to this area, would you mind if you contact
me
at:
?







  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default how to check for days of the week

Hi Rick

I have tried the formula and it does work.
Thanks

"Rick Rothstein" wrote in message
...
I don't see why not (you could always try it and see). Let's put it this
way... if the result of the formula you posted can, then so can mine....
the two formulas produce identical results.

--
Rick (MVP - Excel)


"Rajesh Mehmi" wrote in message
...
Hi Rick

Could the result of =TEXT(D5,"dddd")
then be used in a "sumif" function?


best regards
Rajesh Mehmi



"Rick Rothstein" wrote in message
...
Your entire formula can be replaced by this much shorter one...

=TEXT(D5,"dddd")

--
Rick (MVP - Excel)


"Rajesh Mehmi" wrote in message
...
Hi
You can add a column next to date column and put the formula below,
copy it down , This will give you the weekday ( SUNDAY =1)
you can use sum if to get totals for the desired days

=IF(WEEKDAY(D5,1)=1,"Sunday",IF(WEEKDAY(D5,1)=2,"M onday",IF(WEEKDAY(D5,1)=3,"Tuesday",IF(WEEKDAY(D5, 1)=4,"Wednesday",IF(WEEKDAY(D5,1)=5,"Thursday",IF( WEEKDAY(D5,1)=6,"Friday",IF(WEEKDAY(D5,1)=7,"Satur day","")))))))

Best regards

Rajesh Mehmi




"Gary" wrote in message
...
I have several sheets that I need to collect data from. Coloumb A has
dates
Sunday thru Saturday, formated as: Tuesday, August 25, 2009 There
are twelve sheets like this....one for each month. On the "Report"
sheet, I
need to collect certain 'days of the week' which are Tuesday and
Thursdays
only (this may change later) and use the values associated with those
days.
The cells that each day is in will change from month to month and year
to
year. Is it possible to tell Excell to 'locate' a certain day in a
particular coloumb and bring the associated values in coloumbs B thru
H?

I don't always find my way to this area, would you mind if you contact
me
at:
?









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
Counting Days of Week Soccer boy Excel Discussion (Misc queries) 2 January 21st 09 01:28 AM
5 working days of a week deepika :excel help[_2_] Excel Discussion (Misc queries) 3 January 31st 08 08:37 PM
Re Change 5 week days to 7 days in this formula pano Excel Worksheet Functions 7 February 1st 07 04:20 PM
7 days of the week James C Excel Discussion (Misc queries) 8 October 10th 05 04:14 AM
Days of the week. Johan Bornman Excel Worksheet Functions 1 November 10th 04 05:25 PM


All times are GMT +1. The time now is 03:27 AM.

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"