A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Range of ages shown in bar graph



 
 
Thread Tools Display Modes
  #1  
Old March 9th, 2006, 09:46 PM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default Range of ages shown in bar graph

I have a range of 60 different ages and would like to know how to make a
graph (bar and line) that dipicts them in 5 or 10 year increments rather than
individually. How can I do this?
  #2  
Old March 10th, 2006, 01:49 AM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default Range of ages shown in bar graph

Let's assume your ages are in A1:A60. In B2:B11, enter the numbers 10, 20,
.... 100 (that should be enough, eh?), and put "Older" into B12. Select
C2:C12 with C2 as the active cell, type this formula

=FREQUENCY(A1:A60,B2:B11)

and hold CTRL+SHIFT when you press Enter, so you enter it as an array
formula. The resulting values show C2: number of values less than or equal
to 10, C3: number of values greater than 10 and less than or equal to 20,
etc.

Now you can make a column chart (i.e., histogram) with the data in columns B
and C.

This is covered in these web pages:

http://peltiertech.com/Excel/Charts/Histograms.html
http://peltiertech.com/Excel/Charts/Histogram.html

and Mike Middleton shows how to make nice histograms without too much work
he

http://www.treeplan.com/better.htm

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services - Tutorials and Custom Solutions -
http://PeltierTech.com/
2006 Excel User Conference, 19-21 April, Atlantic City, NJ
http://peltiertech.com/Excel/ExcelUserConf06.html
_______

"Lindsay" wrote in message
...
I have a range of 60 different ages and would like to know how to make a
graph (bar and line) that dipicts them in 5 or 10 year increments rather
than
individually. How can I do this?



  #3  
Old March 10th, 2006, 01:40 PM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default Range of ages shown in bar graph

Thank you that was helpful!

Can I change the X axis to reflect the range I selected (10-20, 20-30,
etc.)? Right now it just numbered the categories 1-7. Thank you!

"Jon Peltier" wrote:

Let's assume your ages are in A1:A60. In B2:B11, enter the numbers 10, 20,
.... 100 (that should be enough, eh?), and put "Older" into B12. Select
C2:C12 with C2 as the active cell, type this formula

=FREQUENCY(A1:A60,B2:B11)

and hold CTRL+SHIFT when you press Enter, so you enter it as an array
formula. The resulting values show C2: number of values less than or equal
to 10, C3: number of values greater than 10 and less than or equal to 20,
etc.

Now you can make a column chart (i.e., histogram) with the data in columns B
and C.

This is covered in these web pages:

http://peltiertech.com/Excel/Charts/Histograms.html
http://peltiertech.com/Excel/Charts/Histogram.html

and Mike Middleton shows how to make nice histograms without too much work
he

http://www.treeplan.com/better.htm

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services - Tutorials and Custom Solutions -
http://PeltierTech.com/
2006 Excel User Conference, 19-21 April, Atlantic City, NJ
http://peltiertech.com/Excel/ExcelUserConf06.html
_______

"Lindsay" wrote in message
...
I have a range of 60 different ages and would like to know how to make a
graph (bar and line) that dipicts them in 5 or 10 year increments rather
than
individually. How can I do this?




  #4  
Old March 10th, 2006, 09:02 PM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default Range of ages shown in bar graph

In another range, say D212 (or rearrange this to put it to the left of the
FREQ formulas), enter the labels you want. For the first and last, use 10
and 100. For the ones in between you can use something like this in D3:

=B2&"-"&B3

and drag this down to fill D311.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services - Tutorials and Custom Solutions -
http://PeltierTech.com/
2006 Excel User Conference, 19-21 April, Atlantic City, NJ
http://peltiertech.com/Excel/ExcelUserConf06.html
_______

"Lindsay" wrote in message
...
Thank you that was helpful!

Can I change the X axis to reflect the range I selected (10-20, 20-30,
etc.)? Right now it just numbered the categories 1-7. Thank you!

"Jon Peltier" wrote:

Let's assume your ages are in A1:A60. In B2:B11, enter the numbers 10,
20,
.... 100 (that should be enough, eh?), and put "Older" into B12. Select
C2:C12 with C2 as the active cell, type this formula

=FREQUENCY(A1:A60,B2:B11)

and hold CTRL+SHIFT when you press Enter, so you enter it as an array
formula. The resulting values show C2: number of values less than or
equal
to 10, C3: number of values greater than 10 and less than or equal to 20,
etc.

Now you can make a column chart (i.e., histogram) with the data in
columns B
and C.

This is covered in these web pages:

http://peltiertech.com/Excel/Charts/Histograms.html
http://peltiertech.com/Excel/Charts/Histogram.html

and Mike Middleton shows how to make nice histograms without too much
work
he

http://www.treeplan.com/better.htm

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services - Tutorials and Custom Solutions -
http://PeltierTech.com/
2006 Excel User Conference, 19-21 April, Atlantic City, NJ
http://peltiertech.com/Excel/ExcelUserConf06.html
_______

"Lindsay" wrote in message
...
I have a range of 60 different ages and would like to know how to make a
graph (bar and line) that dipicts them in 5 or 10 year increments
rather
than
individually. How can I do this?






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
checking that cells have a value before the workbook will close kcdonaldson Worksheet Functions 8 December 5th, 2005 04:57 PM
How can I vary graph color by range value pcover Charts and Charting 3 June 6th, 2005 01:14 AM
Exporting a range of cells in Excel to Outlook 2003 DennisF Contacts 8 July 22nd, 2004 08:36 AM
is there a formula that can count a range of cells with text? Frank Kabel Worksheet Functions 0 March 11th, 2004 08:04 PM
Change Range of Graph Joe Charts and Charting 2 September 23rd, 2003 09:00 PM


All times are GMT +1. The time now is 05:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.