+ Reply to Thread
Results 1 to 10 of 10

How to make a "interval" bar chart

  1. #1
    Registered User
    Join Date
    12-27-2018
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    11

    Wink How to make a "interval" bar chart

    I tried to make a bar chart with interval value, but it turns out like this Screenshot (17).png

    and anyone know how to convert values into a range bar chart?
    For an example,
    Weight
    1.1000g
    2.1589g
    3.2091g
    4.984g

    I want to make a bar chart with value of 500-1000g ; 1001-1500g; 1501-2000g; 2001-2500g. something like this.

    Need help, Thanks!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to make a "interval" bar chart

    Set up another table with the weight range values in one column and the count of value in F that fall into each range in another column. Then build the chart around that table.

    BSB

  3. #3
    Registered User
    Join Date
    12-27-2018
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    11

    Re: How to make a "interval" bar chart

    Quote Originally Posted by BadlySpelledBuoy View Post
    Set up another table with the weight range values in one column and the count of value in F that fall into each range in another column. Then build the chart around that table.

    BSB
    What about my first question? I don't know why my title becomes like that(from screenshot there). The values should be in pie.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to make a "interval" bar chart

    I'd need to see the file to explain exactly why it's done that...

    BSB

  5. #5
    Registered User
    Join Date
    12-27-2018
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    11

    Re: How to make a "interval" bar chart

    Quote Originally Posted by BadlySpelledBuoy View Post
    I'd need to see the file to explain exactly why it's done that...

    BSB
    Here it isResearch.xlsx

  6. #6
    Registered User
    Join Date
    12-27-2018
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    11

    Re: How to make a "interval" bar chart

    Quote Originally Posted by leobuzz View Post
    Do you manage to view it? I need help

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,820

    Re: How to make a "interval" bar chart

    Your sample file does not include your attempt at creating a chart, so it is difficult for us to know exactly what is happening.

    I notice that the current selection is F1:F4. I also notice that each cell in that range is currently text (xxx-yyy is not a range of numbers to Excel but a text string).If I take the current selection (F1:F4). If I insert a pie chart based on the current selection (of all text strings), Excel "guesses" as best it can (based on an algorithm that I don't understand) what you intend to do with that range. After creating the chart, I can open up the "select data" dialog and see that Excel is choosing to assign F1:F3 as the "series name" part of the series definition, it is assigning F4 as the "values" part of the series definition, and assigning nothing to the series categories (so it is defaulting to the number 1). With only one data series in the chart, Excel decided that it should make the chart title the same as the series name (the text in F1:F3).

    That is what Excel did. I don't understand why Excel did what it did.

    Fixing this is usually about pulling up the select data dialog and telling Excel what you want to use for each part of the chart. Then you will need to enter real numbers (not number ranges as text strings) so Excel will know what value to assign to each slice of the pie (or each column of a column chart or each bar of a bar chart or...). Charts tend to assume text strings have the value 0.

    From there I am not sure exactly what you are trying to do. The generic solution that I see is to assign the correct ranges to the desired chart elements and then give the chart some real numbers to work with.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Registered User
    Join Date
    12-27-2018
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    11

    Re: How to make a "interval" bar chart

    Research.xlsx
    Actually what I want to do is to see how many people fallen into each categories of range of values. I took an example of this, and it seems like excel think that I want the proportion of weight in pie chart.

    Lets me took an example easier to say, from this screenshot there are two people fallen to category which ranges from 901-999. 1 people fall to 1001-1250 category and another people fall to 1251-1499 category. So, my desired pie chart will be 1 people(25%) in 1251-1499; 1people(25%) in 1001-1250. 2 people in 901-999(50%) category. I will have more than 1000 data, so I it will be ideal if I can put them in a range of value as I stated above. Is there any ways for me to do so, and also tell excel what I want is the number of people not proportion? Thanks, looking forward for your reply
    Attached Images Attached Images

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,820

    Re: How to make a "interval" bar chart

    Assuming I understand, you need to recognize that charts are based on the actual data you tell them to chart. If you want a chart of summary data (in this case, counts of the data), you need to generate the summary data in the spreadsheet before creating the chart. In this case, you can use a pivot table (http://www.excel-easy.com/data-analy...ot-tables.html )or a COUNTIFS() function (https://support.office.com/en-us/art...c-aa8c2a866842 ) or a FREQUENCY() function (https://support.office.com/en-us/art...7-fd9ea898fdb9 ) to generate the summary data, then base the chart on the summary data. Using a FREQUENCY() function:
    1) Enter the "bins" data (the boundary values between your weight divisions) into a column of cells (...901, 1001, 1251, 1499,...).
    2) Enter a FREQUENCY() function in the column adjacent to it (remember that the FREQUENCY() function is an array function so it must be confirmed with ctrl-shift-enter).
    3) Create pie chart from the results of the FREQUENCY() function.
    Is that close to what you want?

  10. #10
    Registered User
    Join Date
    12-27-2018
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    11

    Re: How to make a "interval" bar chart

    Thanks I successfully done it with COUNTSIFS() function. Its a great help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 10-30-2015, 08:26 PM
  2. Convert "Time Interval" in "hours : minutes : seconds" to seconds
    By deano27 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2008, 09:07 AM
  3. How to make chart ignore "zero"/FALSE values
    By BCB in forum Excel Charting & Pivots
    Replies: 15
    Last Post: 03-27-2007, 05:31 PM
  4. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM
  5. How can I make a Chart data series treat blanks as "Empty" cells
    By XLADLK in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 01-11-2006, 12:25 AM
  6. [SOLVED] how do i make a "dashboard style" chart (semi circle & pointer)
    By SamanthaGaszczak in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-16-2005, 05:35 PM
  7. Replies: 7
    Last Post: 05-08-2005, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1