Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have 12 months worth of previous year's data in Excel (January-December)
but only want to graph certain months data. Not sure how to explain this. If the current month is October, than I want to pull data from January-August; if current month is December, than I want to pull data from January-October. Does anyone know how I can do this with a formula? I've exhausted my limited knowledge and not had any success. Thank you! Jani |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try something like this.
=sumproduct((month(a2:a22)=1)*(month(a2:a22)<mont h(today())-1)*b2:b22) -- Don Guillett Microsoft MVP Excel SalesAid Software "Jani" wrote in message ... I have 12 months worth of previous year's data in Excel (January-December) but only want to graph certain months data. Not sure how to explain this. If the current month is October, than I want to pull data from January-August; if current month is December, than I want to pull data from January-October. Does anyone know how I can do this with a formula? I've exhausted my limited knowledge and not had any success. Thank you! Jani |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Your subject line talks of Average, but your text talks of a graph. What
are you trying to do? -- David Biddulph "Jani" wrote in message ... I have 12 months worth of previous year's data in Excel (January-December) but only want to graph certain months data. Not sure how to explain this. If the current month is October, than I want to pull data from January-August; if current month is December, than I want to pull data from January-October. Does anyone know how I can do this with a formula? I've exhausted my limited knowledge and not had any success. Thank you! Jani |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I reread. Instead of sum you wanted average. Try this ARRAY formula entered
using ctrl+shift+enter =AVERAGE(IF(MONTH(A7:A1000)1,MONTH(A7:A1000)<MONT H(TODAY()-1),D7:D1000)) -- Don Guillett Microsoft MVP Excel SalesAid Software "Jani" wrote in message ... I have 12 months worth of previous year's data in Excel (January-December) but only want to graph certain months data. Not sure how to explain this. If the current month is October, than I want to pull data from January-August; if current month is December, than I want to pull data from January-October. Does anyone know how I can do this with a formula? I've exhausted my limited knowledge and not had any success. Thank you! Jani |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I haven't had a chance to try what Don wrote yet. The 'average' data is what
is used for the graph data source. Sorry I didn't make that clear. "David Biddulph" wrote: Your subject line talks of Average, but your text talks of a graph. What are you trying to do? -- David Biddulph "Jani" wrote in message ... I have 12 months worth of previous year's data in Excel (January-December) but only want to graph certain months data. Not sure how to explain this. If the current month is October, than I want to pull data from January-August; if current month is December, than I want to pull data from January-October. Does anyone know how I can do this with a formula? I've exhausted my limited knowledge and not had any success. Thank you! Jani |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
12 Month Average | Excel Worksheet Functions | |||
How to create a rolling 6 month average? | Excel Discussion (Misc queries) | |||
=AVERAGE(IF(INT(MONTH(C:C)+2/3)=4 | Excel Worksheet Functions | |||
rolling 12 month average | Excel Worksheet Functions | |||
Average starting with first month | Excel Discussion (Misc queries) |