#1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default Bar chart by month

I have a spreadsheet that has month & year in column A and values (KWH) in
column B like:

Jun-00 1185
Jul-00 2636
Aug-00 3009
etc.

I would like to create a chart (and/or spreadsheet) that is grouped on the
months and shows the average value for that month and where each year is in
relation to that average. I envision a chart/speadsheet something like:

3000

2000

1000

Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov
Dec

with bars on each month for that months data and a line/curve showing the
average for each month.

Thanks.
DCH
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1,104
Default Bar chart by month

Let's assume you data is in A1:B100
Let's assume that column A had real dates formatted to display as Jan-08
In D1:D12 enter dates fro the first of each month (Jan thru Dec) of current
year
Format this to display as Jan, Feb using custom format mmm
In E1 enter
=SUMPRODUCT(--(MONTH($A$1:$A$4)=MONTH(D1)),$B$1:$B$4)/SUMPRODUCT(--(MONTH($A$1:$A$4)=MONTH(D1)))
Copy down to E12
Plot the table you have just made

If the A column actually has text: Jan-08:
In D1:D12 enter the month abbreviations: Jan , Feb ,,,Dec
In E1 use
=SUMPRODUCT(--(LEFT(A$1:A$3,3)=D1),$B$1:$B$3)/SUMPRODUCT(--(LEFT($A$1:$A$3,3)=D1))
Copy down to E12
Plot chart

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"DCHenry" wrote in message
...
I have a spreadsheet that has month & year in column A and values (KWH) in
column B like:

Jun-00 1185
Jul-00 2636
Aug-00 3009
etc.

I would like to create a chart (and/or spreadsheet) that is grouped on the
months and shows the average value for that month and where each year is
in
relation to that average. I envision a chart/speadsheet something like:

3000

2000

1000

Jan Feb Mar Apr May Jun Jul Aug Sep Oct
Nov
Dec

with bars on each month for that months data and a line/curve showing the
average for each month.

Thanks.
DCH



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
Hide one month in a chart [email protected] Charts and Charting in Excel 2 February 3rd 07 01:19 AM
Excel Chart which updates every month - how? Victor Delta Excel Discussion (Misc queries) 2 January 28th 07 11:24 PM
Loosing 1 month on my chart Aurora Charts and Charting in Excel 1 February 8th 06 10:33 PM
3 month rolling chart Shanin Charts and Charting in Excel 4 September 2nd 05 06:40 PM
adding new month to chart BB Charts and Charting in Excel 1 April 5th 05 12:18 AM


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