Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Computing Averages For Daily Sales | Excel Discussion (Misc queries) | |||
Daily Averages | Excel Discussion (Misc queries) | |||
Excel Formula to Calc Daily Averages? | Excel Worksheet Functions | |||
help with excel macros getting daily averages from 10 minute data | Excel Programming | |||
help with macros for getting daily averages from 10 minute increment data - MS2000 | Excel Programming |