+ Reply to Thread
Results 1 to 5 of 5

Histograms with dynamic Bins

  1. #1
    Registered User
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 2007
    Posts
    3

    Question Histograms with dynamic Bins

    Hello,

    I have scratched my head for last few days trying to figure this out but I can't. I think I need your help.

    I want to create dynamic histograms with automatically calculated number of bins, bin ranges... for some inspection measurements.
    I have problems because:

    1. Measurements have different number of decimal places.
    2. Some dimensions have more number of measurements than the others.

    A user would click on the drop-down list and then choose the dimension that they wants to see its histogram. Then, the spreadsheet will calculate itself and put up a histogram.

    I have searched on the 'Net and this forum. Please give me some help if you will. Any hint would be appreciated. No VBA please. Sample sheet attached. Feel free to change any formula if you need to.

    Thank you all.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-06-2015
    Location
    Sri Lanka
    MS-Off Ver
    2016, 2007
    Posts
    135

    Re: Histograms with dynamic Bins

    why don't you use excel analysis tool pack add-in for making histogram? it will save your tedious manual work.
    as for your decimal places problem, can't you use the =trunc() function to remove it?
    different size data sets are not a problem if you are using excel in-built add in for histograming.

  3. #3
    Registered User
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 2007
    Posts
    3

    Re: Histograms with dynamic Bins

    Thanks for your suggestion. I'm aware of the analysis toolpak but I can not use it for my spreadsheet. This is just a part of a bigger automatic spreadsheet.

    Thank you.

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

    Re: Histograms with dynamic Bins

    I'm not sure I understand the problem. You are already calculating "dynamic" bins, and your FREQUENCY() function looks like it working just fine. The histogram in your sample looks correct, except for the N/A's for the top two bins. It is not clear to me if this is the error you are seeing or if there is something else. What exactly seems to be the problem with the sample spreadsheet?
    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
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 2007
    Posts
    3

    Re: Histograms with dynamic Bins

    Quote Originally Posted by MrShorty View Post
    I'm not sure I understand the problem. You are already calculating "dynamic" bins, and your FREQUENCY() function looks like it working just fine. The histogram in your sample looks correct, except for the N/A's for the top two bins. It is not clear to me if this is the error you are seeing or if there is something else. What exactly seems to be the problem with the sample spreadsheet?
    MrShortly,

    In my code, I hard code the increment between bins of .0001" The problem is not all data is fourth decimal places.

    And I was wondering if there is any other has better idea to calculate bins besides using standard deviation.

    Thanks for your reply

    1.JPG

+ 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. Formula for bins/blanks
    By nelson5444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2013, 07:49 AM
  2. [SOLVED] Bins Size quantities
    By Aland2929 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-12-2013, 07:11 AM
  3. help with Formula to add total bins?
    By APRILM30 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2013, 05:36 PM
  4. Frequency Bins
    By John Bates in forum Excel General
    Replies: 3
    Last Post: 05-13-2010, 11:14 AM
  5. Sorting data into 10% bins
    By JimGrange in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-18-2008, 10:14 PM
  6. Graph of Bins
    By tamushrek in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-27-2008, 01:53 PM
  7. making bins in excel
    By Iewse in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2008, 02:36 AM
  8. Replies: 2
    Last Post: 01-30-2005, 11:06 PM

Tags for this Thread

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