Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Countif for dddd format

Need to count a row if the date formatted as dddd is X (Monday). imported
date format is 1/10/2009 8:46:00 AM and then formated. On another sheet i
need to count how many times a row has "Friday". ex. =COUNTIF('US WW
011009'!J:J,"Saturday")

then I need to be able to average a result valuse from the first sheet "IF"
a valuse of Friday is in the row. So the columns contain the result of a
simple =H4-G4. I then need to averge the I:I IF J:J = Friday.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Countif for dddd format

=SUMPRODUCT((TEXT('US WW 011009'!J1:J20,"dddd")="Saturday")*1)

but this is a bit cleaner:

=SUMPRODUCT((WEEKDAY('US WW 011009'!J1:J20)=7)*1)

HTH,
Bernie
MS Excel MVP


"smcmoran" wrote in message
...
Need to count a row if the date formatted as dddd is X (Monday). imported
date format is 1/10/2009 8:46:00 AM and then formated. On another sheet i
need to count how many times a row has "Friday". ex. =COUNTIF('US WW
011009'!J:J,"Saturday")

then I need to be able to average a result valuse from the first sheet "IF"
a valuse of Friday is in the row. So the columns contain the result of a
simple =H4-G4. I then need to averge the I:I IF J:J = Friday.

Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Countif for dddd format

that worked great, thank you..
do you have any ideas on how to average a value from the sheet with those
selected rows?

In other words jobs that were completed on friday took X time to complete
and that value is the result of a formula on that row. So now that I know
how many jobs were completed on Friday I want to know the average time it
took for the jobs. Make sense?

"Bernie Deitrick" wrote:

=SUMPRODUCT((TEXT('US WW 011009'!J1:J20,"dddd")="Saturday")*1)

but this is a bit cleaner:

=SUMPRODUCT((WEEKDAY('US WW 011009'!J1:J20)=7)*1)

HTH,
Bernie
MS Excel MVP


"smcmoran" wrote in message
...
Need to count a row if the date formatted as dddd is X (Monday). imported
date format is 1/10/2009 8:46:00 AM and then formated. On another sheet i
need to count how many times a row has "Friday". ex. =COUNTIF('US WW
011009'!J:J,"Saturday")

then I need to be able to average a result valuse from the first sheet "IF"
a valuse of Friday is in the row. So the columns contain the result of a
simple =H4-G4. I then need to averge the I:I IF J:J = Friday.

Any ideas?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Countif for dddd format

In general, something like this, perhaps, with duration in column K:

=SUMPRODUCT((TEXT('US WW 011009'!J1:J20,"dddd")="Friday")*'US WW
011009'!K1:K20)/SUMPRODUCT((TEXT('US WW 011009'!J1:J20,"dddd")="Friday")*1)

HTH,
Bernie
MS Excel MVP


"smcmoran" wrote in message
...
that worked great, thank you..
do you have any ideas on how to average a value from the sheet with those
selected rows?

In other words jobs that were completed on friday took X time to complete
and that value is the result of a formula on that row. So now that I know
how many jobs were completed on Friday I want to know the average time it
took for the jobs. Make sense?

"Bernie Deitrick" wrote:

=SUMPRODUCT((TEXT('US WW 011009'!J1:J20,"dddd")="Saturday")*1)

but this is a bit cleaner:

=SUMPRODUCT((WEEKDAY('US WW 011009'!J1:J20)=7)*1)

HTH,
Bernie
MS Excel MVP


"smcmoran" wrote in message
...
Need to count a row if the date formatted as dddd is X (Monday). imported
date format is 1/10/2009 8:46:00 AM and then formated. On another sheet i
need to count how many times a row has "Friday". ex. =COUNTIF('US WW
011009'!J:J,"Saturday")

then I need to be able to average a result valuse from the first sheet "IF"
a valuse of Friday is in the row. So the columns contain the result of a
simple =H4-G4. I then need to averge the I:I IF J:J = Friday.

Any ideas?






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Countif for dddd format

Awesome,

I didn't even think about going that way. Thank you very much

"Bernie Deitrick" wrote:

In general, something like this, perhaps, with duration in column K:

=SUMPRODUCT((TEXT('US WW 011009'!J1:J20,"dddd")="Friday")*'US WW
011009'!K1:K20)/SUMPRODUCT((TEXT('US WW 011009'!J1:J20,"dddd")="Friday")*1)

HTH,
Bernie
MS Excel MVP


"smcmoran" wrote in message
...
that worked great, thank you..
do you have any ideas on how to average a value from the sheet with those
selected rows?

In other words jobs that were completed on friday took X time to complete
and that value is the result of a formula on that row. So now that I know
how many jobs were completed on Friday I want to know the average time it
took for the jobs. Make sense?

"Bernie Deitrick" wrote:

=SUMPRODUCT((TEXT('US WW 011009'!J1:J20,"dddd")="Saturday")*1)

but this is a bit cleaner:

=SUMPRODUCT((WEEKDAY('US WW 011009'!J1:J20)=7)*1)

HTH,
Bernie
MS Excel MVP


"smcmoran" wrote in message
...
Need to count a row if the date formatted as dddd is X (Monday). imported
date format is 1/10/2009 8:46:00 AM and then formated. On another sheet i
need to count how many times a row has "Friday". ex. =COUNTIF('US WW
011009'!J:J,"Saturday")

then I need to be able to average a result valuse from the first sheet "IF"
a valuse of Friday is in the row. So the columns contain the result of a
simple =H4-G4. I then need to averge the I:I IF J:J = Friday.

Any ideas?






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
=text(a1,"dddd") question Dylan @ UAFC[_2_] Excel Worksheet Functions 10 January 16th 09 10:13 PM
Conditional Formatting =IF($B10, TEXT("dddd"))? [email protected] Excel Worksheet Functions 6 January 9th 08 08:59 PM
Conditional format using dddd mathew Excel Discussion (Misc queries) 3 January 26th 07 03:26 PM
COUNTIF with non-zero format? LTUser54 Excel Discussion (Misc queries) 2 May 24th 06 10:45 PM
Are you kidding me??? Are you telling me I can't sort format: dddd, mmmm dd, yyyy? mrsinnister Excel Discussion (Misc queries) 5 March 23rd 06 11:53 PM


All times are GMT +1. The time now is 05:59 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"