Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Calculating Daily Averages for Different Products

I have a fairly data set of the number of products sold each day for
the past year.

In Column A, I have the days in question by row:
Row1: Monday 1/1/2005
Row2: Tuesday 1/2/2005
Row3: Wednesday 1/3/2005
and so on.

In Column B, I have the number of Product A sold on each day.
In Column C, I have the number of Product B sold on each day.

My Question:
Is there a way I can calculate the average number of products sold on
Mondays over the past year?

Any help would be GREATLY appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Calculating Daily Averages for Different Products

Here is one way.
Change the ending range appropriately, you may need the analysis
toolpak addin checked to get the weekday function.

For column B
=SUMPRODUCT((WEEKDAY(A2:A29)=2)*(B2:B29))/SUMPRODUCT((WEEKDAY(A2:A29)=2)*1)


For column C
=SUMPRODUCT((WEEKDAY(A2:A29)=2)*(C2:C29))/SUMPRODUCT((WEEKDAY(A2:A29)=2)*1)


AP
www.megacrosstab.com

wrote:
I have a fairly data set of the number of products sold each day for
the past year.

In Column A, I have the days in question by row:
Row1: Monday 1/1/2005
Row2: Tuesday 1/2/2005
Row3: Wednesday 1/3/2005
and so on.

In Column B, I have the number of Product A sold on each day.
In Column C, I have the number of Product B sold on each day.

My Question:
Is there a way I can calculate the average number of products sold on
Mondays over the past year?

Any help would be GREATLY appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Calculating Daily Averages for Different Products

Thank you so much for responding!!!
And that does work for the problem I posted.
But I must confess I omitted one detail.

I actually have good sold per day AND TIME.
So my column A actually looks like:
Monay 1/1/2005 12:00 AM
Monday 1/1/2005 1:00 AM
and so on.

My true task is to get the number of goods sold on Monday @ 12:00AM.
I didn't think this detail would be important.
Increadibly sorry. :(

Is there another function I can use?
Or maybe I could create a function to something similar to the weekday
function?
Any ideas?

Thank you again for trying to help me.
--DW

AP wrote:
Here is one way.
Change the ending range appropriately, you may need the analysis
toolpak addin checked to get the weekday function.

For column B
=SUMPRODUCT((WEEKDAY(A2:A29)=2)*(B2:B29))/SUMPRODUCT((WEEKDAY(A2:A29)=2)*1)


For column C
=SUMPRODUCT((WEEKDAY(A2:A29)=2)*(C2:C29))/SUMPRODUCT((WEEKDAY(A2:A29)=2)*1)


AP
www.megacrosstab.com


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
Computing Averages For Daily Sales SD[_2_] Excel Discussion (Misc queries) 4 May 8th 08 06:59 PM
Daily Averages Vincent Excel Discussion (Misc queries) 3 August 27th 07 04:44 PM
Excel Formula to Calc Daily Averages? Don I Excel Worksheet Functions 5 August 10th 06 06:49 PM
help with excel macros getting daily averages from 10 minute data jen Excel Programming 2 November 10th 03 08:31 PM
help with macros for getting daily averages from 10 minute increment data - MS2000 Bernie Deitrick[_2_] Excel Programming 0 November 7th 03 06:47 PM


All times are GMT +1. The time now is 07:02 PM.

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"