+ Reply to Thread
Results 1 to 12 of 12

Need help with creating histogram. Error message: Input range contains non-numeric data.

  1. #1
    Registered User
    Join Date
    10-03-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    6

    Need help with creating histogram. Error message: Input range contains non-numeric data.

    I am trying to create a histogram graph, but when I fill out the input and bill range, it has an error message that says: "Histogram-Input range contains non-numeric data" I find this message confusing since the input range does contain non-numeric data which is the "AP" before each value.

    I have tried the typing a 1 on a blank cell, paste special, values/multiply trick and it still has that error message when I am trying to create a histogram.

    How do I fix this issue?? Thank you!
    Attached Images Attached Images

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    Do you really mean histogram... or do you mean bar chart?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    10-03-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    6

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    @GlennKennedy Histogram

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    Is the picture complete? For a histogram, I would expect to see at least a bins column/range, but I do not see any indication of what bins you want to use for the counts/frequencies. The text in column A are not suitable values for bins, if that is what you are trying to use.

    My expectation for a histogram from this data:
    1) Select bin values and enter them in the spreadsheet. One will usually be looking to count how many entries in column B are less than 10, 20-30, 30-40, and so on. So 10, 20, 30, 40,... become your bins.
    2) With the bin values selected, count the number of entries in each bin. The histogram tool does this automatically after you give it input and bin ranges. Or you can use the COUNTIFS() function or FREQUENCY() function to perform these counts outside of the histogram tool.
    3) With the frequencies calculated, insert a column chart and format as desired.

    If that is not what you are trying to do, then explain what you are trying to do.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    10-03-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    6

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    @MrShorty Well, the picture has 243 values for both columns.

    I was given these instructions: Casey wants a chart representing the distribution of average hours per week that members utilized Inception Workspace in 2024. Switch to the Average Usage 2024 worksheet. Select the range A4:B243 and create a Histogram chart. (Hint: Use the Name box to select the range.) Modify the chart as described below:
    a. Resize and reposition the chart so that the upper-left corner is located within cell D4 and the lower-right corner is located within cell K18.
    b. Enter Average Weekly Usage (in Hours) in 2024 as the title of the chart.
    c. Modify the bins used in the chart by setting the Bin Width axis option to 10.


    The histogram should like look the picture I attached.
    Attached Images Attached Images

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    Could that be a typo in the text? Should it read "select the range B4:B243"? The error you are getting seems consistent with selecting column A to include in the histogram data. Perhaps someone else with a newer version (2013 in your profile) can verify the behavior of the newer version.

    I know the newer versions of Excel can auto "guess" at the bins, though I would generally not be one to let Excel auto guess at something like that. It seems like your instructions should work if you limit your selection to column B.

  7. #7
    Registered User
    Join Date
    10-03-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    6

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    @MrShorty Yeah, it might be a typo. What would be the input and bin range though?

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    Input range would be B2:B243
    Bin range -- wherever you want to put it. Assuming 5 bins, maybe E2:E6 where you might have 10, 20, 30, 40, 50 in those cells.

  9. #9
    Registered User
    Join Date
    10-03-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    6

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    I just tried it and it still has the same error message

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    Any chance there is any text anywhere in column B (including numbers stored as text)? Can you upload a copy of your spreadsheet with a description of exactly what you are doing?

    I took Glenn Kennedy's spreadsheet. Went into Data ribbon -> Data analysis -> Histogram tool. In the histogram dialog, I told it to use B2:B15 as the input range, O5:O10 as the bins range, and had the output in R5, and include the chart. I would guess that you have some non-numeric data in your input range outside of the range of your screenshots.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-03-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    6

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    @MrShorty Okay so I made some adjustments from what you told me to use. My input range was B5:B243 and bin range was D4:D8. I didn't get an error message because there wasn't any non-numeric data in the B column. However, my histogram chart doesn't look anything like the one my professor included in the instructions page.

    Here's the copy of the spreadsheet.
    Attached Files Attached Files
    Last edited by cathy0922; 10-03-2016 at 03:41 PM.

  12. #12
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Need help with creating histogram. Error message: Input range contains non-numeric dat

    Right click on the chart area and change the chart type to the one that you prefer.
    Attached Files Attached Files
    Last edited by BlindAlley; 10-03-2016 at 03:52 PM.

+ 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. Numeric Range in Pivot Table can't be used to create a Histogram
    By Viral107 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-12-2015, 07:04 AM
  2. Replies: 0
    Last Post: 07-31-2013, 06:03 AM
  3. selecting resources via an input box, and then creating a simple histogram
    By armchairandy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-02-2012, 11:11 AM
  4. [SOLVED] How do you enter input range for a histogram
    By Irishrose28 in forum Excel General
    Replies: 0
    Last Post: 08-04-2006, 09:25 AM
  5. [SOLVED] I was creating a histogram; now i have data but no histogram.
    By ShannonMills3 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-13-2006, 07:10 PM
  6. [SOLVED] histogram, wrong input range
    By Camilla in forum Excel General
    Replies: 1
    Last Post: 11-11-2005, 03:25 AM
  7. Can I run a histogram with non-numeric data in Excel?
    By QATegan in forum Excel General
    Replies: 1
    Last Post: 11-02-2005, 06:17 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