LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DAS DAS is offline
external usenet poster
 
Posts: 26
Default Average Function

Great! Thank you very much for your help!

"JW" wrote:

The 1 is an optional argument for the return type.
Taken from Excel help:
1 or omitted = Numbers 1 (Sunday) through 7 (Saturday). Behaves like
previous versions of Microsoft Excel.
2 = Numbers 1 (Monday) through 7 (Sunday).
3 = Numbers 0 (Monday) through 6 (Sunday).

DaS wrote:
After messing around with it, I got it. Thank you very much for your help.
For the sake of knowledge, what does the ....,1) represent?

"JW" wrote:

All Ctrl+Shift+Enter entered.
Monday:
=AVERAGE(IF(WEEKDAY(B2:B25,1)=2,E2:E25))
Tuesday:
=AVERAGE(IF(WEEKDAY(B2:B25,1)=3,E2:E25))
Wednesday:
=AVERAGE(IF(WEEKDAY(B2:B25,1)=4,E2:E25))
etc
etc

DaS wrote:
So to change the date to do Tuesday I need to change the 1 or the 2? so
Tuesday will be ...(WEEKDAY(B2:B25,2)=2,...?

Is that right? I've been messing around with it and now I get the #NUM!
statement.

Thanks JW



"JW" wrote:

One way (Array entered, Ctrl+Shift+Enter)
=AVERAGE(IF(WEEKDAY(B2:B25,1)=2,E2:E25))

The above formula will calculate the average of E2:E25 where the
weekday in B2:B25 is equal to Monday. To do Tuesday, Wednesday, etc,
simply change the WEEKDAY(B2:B25,1)=2 portion to whatever day of the
week you are after.
DaS wrote:
In column B I have the dates listed from 01/01/07 through 10/31/2007. In
column E I have totals for each day. What I would like to do is have an
average for each day of the week, i.e., Mondays from 01/01/2007-10/31/2007 =
219, Tuesdays from 01/01/2007-10/31/2007= 250 and so on. I know that I will
have to have a separate cell doing it's own calculation for each weekday, I'm
just not that savvy working with the Sumifs, countifs, or day functions.
Thanks!






 
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
@average function Chazbri Excel Worksheet Functions 7 June 16th 07 11:49 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
I want to use the MATCH function with the AVERAGE function but I . Miguel Excel Worksheet Functions 2 April 23rd 05 05:29 PM
Using the average function LostNFound Excel Worksheet Functions 5 March 16th 05 12:45 PM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM


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