Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
KT KT is offline
external usenet poster
 
Posts: 47
Default Finding the right function & formula

I'm trying to find a function & formula that will add all the Volume Total
for specific day of the week in the Date column. For instance, I want add the
sum of all the Monday volume totals and so forth...grouping the volume totals
by day of the week.

Column A Column B
Date Volume Total
Saturday, January 05, 2008 200
Sunday, January 06, 2008 209
Monday, January 07, 2008 231
Tuesday, January 08, 2008 240
Wednesday, January 09, 2008 201
Thursday, January 10, 2008 219
Friday, January 11, 2008 210
Saturday, January 12, 2008 182
Sunday, January 13, 2008 182
Monday, January 14, 2008 227
Tuesday, January 15, 2008 198
Wednesday, January 16, 2008 232
Thursday, January 17, 2008 221
Friday, January 18, 2008 191

--
Thank you. - KT
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Finding the right function & formula

Assuming your dates are true Excel dates:

=SUMPRODUCT(--(WEEKDAY(A2:A15,2)=n),B2:B15)

Where n = day of the week: 1 = Monday thru 7 = Sunday

--
Biff
Microsoft Excel MVP


"KT" wrote in message
...
I'm trying to find a function & formula that will add all the Volume Total
for specific day of the week in the Date column. For instance, I want add
the
sum of all the Monday volume totals and so forth...grouping the volume
totals
by day of the week.

Column A Column B
Date Volume Total
Saturday, January 05, 2008 200
Sunday, January 06, 2008 209
Monday, January 07, 2008 231
Tuesday, January 08, 2008 240
Wednesday, January 09, 2008 201
Thursday, January 10, 2008 219
Friday, January 11, 2008 210
Saturday, January 12, 2008 182
Sunday, January 13, 2008 182
Monday, January 14, 2008 227
Tuesday, January 15, 2008 198
Wednesday, January 16, 2008 232
Thursday, January 17, 2008 221
Friday, January 18, 2008 191

--
Thank you. - KT



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Finding the right function & formula

Hi,

You can also use Data Subtotals. But you will have to sort the data in
column A first.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"KT" wrote in message
...
I'm trying to find a function & formula that will add all the Volume Total
for specific day of the week in the Date column. For instance, I want add
the
sum of all the Monday volume totals and so forth...grouping the volume
totals
by day of the week.

Column A Column B
Date Volume Total
Saturday, January 05, 2008 200
Sunday, January 06, 2008 209
Monday, January 07, 2008 231
Tuesday, January 08, 2008 240
Wednesday, January 09, 2008 201
Thursday, January 10, 2008 219
Friday, January 11, 2008 210
Saturday, January 12, 2008 182
Sunday, January 13, 2008 182
Monday, January 14, 2008 227
Tuesday, January 15, 2008 198
Wednesday, January 16, 2008 232
Thursday, January 17, 2008 221
Friday, January 18, 2008 191

--
Thank you. - KT


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
KT KT is offline
external usenet poster
 
Posts: 47
Default Finding the right function & formula

Wonderful! Just curious, what does the ,2 represent in the formula?

Now how do I calculate the Means or Average for each day of the week?
--
Thank you. - KT


"T. Valko" wrote:

Assuming your dates are true Excel dates:

=SUMPRODUCT(--(WEEKDAY(A2:A15,2)=n),B2:B15)

Where n = day of the week: 1 = Monday thru 7 = Sunday

--
Biff
Microsoft Excel MVP


"KT" wrote in message
...
I'm trying to find a function & formula that will add all the Volume Total
for specific day of the week in the Date column. For instance, I want add
the
sum of all the Monday volume totals and so forth...grouping the volume
totals
by day of the week.

Column A Column B
Date Volume Total
Saturday, January 05, 2008 200
Sunday, January 06, 2008 209
Monday, January 07, 2008 231
Tuesday, January 08, 2008 240
Wednesday, January 09, 2008 201
Thursday, January 10, 2008 219
Friday, January 11, 2008 210
Saturday, January 12, 2008 182
Sunday, January 13, 2008 182
Monday, January 14, 2008 227
Tuesday, January 15, 2008 198
Wednesday, January 16, 2008 232
Thursday, January 17, 2008 221
Friday, January 18, 2008 191

--
Thank you. - KT




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Finding the right function & formula

=SUMPRODUCT(--(WEEKDAY(A2:A15,2)=n),B2:B15)
what does the ,2 represent in the formula?


That determies how the function evaluates the weekdays. There are 3
different arguments available:

1 = weekdays are numbered as 1 = Sunday thru 7 = Saturday
2 = weekdays are numbered as 1 = Monday thru 7 = Sunday
3 = weekdays are numbered as 0 = Monday thru 6 = Sunday

how do I calculate the Means or Average for each day of the week?


Array entered** :

=AVERAGE(IF(WEEKDAY(A2:A15,2)=n,B2:B15))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.


--
Biff
Microsoft Excel MVP


"KT" wrote in message
...
Wonderful! Just curious, what does the ,2 represent in the formula?

Now how do I calculate the Means or Average for each day of the week?
--
Thank you. - KT


"T. Valko" wrote:

Assuming your dates are true Excel dates:

=SUMPRODUCT(--(WEEKDAY(A2:A15,2)=n),B2:B15)

Where n = day of the week: 1 = Monday thru 7 = Sunday

--
Biff
Microsoft Excel MVP


"KT" wrote in message
...
I'm trying to find a function & formula that will add all the Volume
Total
for specific day of the week in the Date column. For instance, I want
add
the
sum of all the Monday volume totals and so forth...grouping the volume
totals
by day of the week.

Column A Column B
Date Volume Total
Saturday, January 05, 2008 200
Sunday, January 06, 2008 209
Monday, January 07, 2008 231
Tuesday, January 08, 2008 240
Wednesday, January 09, 2008 201
Thursday, January 10, 2008 219
Friday, January 11, 2008 210
Saturday, January 12, 2008 182
Sunday, January 13, 2008 182
Monday, January 14, 2008 227
Tuesday, January 15, 2008 198
Wednesday, January 16, 2008 232
Thursday, January 17, 2008 221
Friday, January 18, 2008 191

--
Thank you. - KT






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
Having trouble finding the right function g New Users to Excel 2 June 4th 06 11:37 AM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Help Needed with Finding a Function lsmith New Users to Excel 1 February 23rd 06 01:27 PM
function for finding a value! Simon Lloyd Excel Worksheet Functions 5 September 9th 05 02:44 PM
Finding a function in Excel JSK Excel Worksheet Functions 1 August 18th 05 09:59 PM


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