+ Reply to Thread
Results 1 to 14 of 14

Frequency Distribution Formulas

  1. #1
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Frequency Distribution Formulas

    I don't understand the formula (especially INDIRECT part) which create 10 frequency range from the data on the G Column.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by zanshin777; 12-13-2015 at 05:16 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Frequency Distribution Formulas

    Suppose you have data ranging from some min to some max that you want to distrubute in 10 equal-size bins. What number should be the top of the first bin? How would you calculate it?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Frequency Distribution Formulas

    The formula on G column looks like unfamiliar to me. ">="&D2 is used rather than ">=&D2"

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Frequency Distribution Formulas

    ">=&D2" matches the literal string ">=&D2"

    It doesn't contain a cell reference at all.

  5. #5
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Frequency Distribution Formulas

    Quote Originally Posted by shg View Post
    Suppose you have data ranging from some min to some max that you want to distrubute in 10 equal-size bins. What number should be the top of the first bin? How would you calculate it?
    I don't know.

  6. #6
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Frequency Distribution Formulas

    Quote Originally Posted by shg View Post
    ">=&D2" matches the literal string ">=&D2"

    It doesn't contain a cell reference at all.
    What about >=&D2 ?

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Frequency Distribution Formulas

    That would be invalid syntax. The criteria expression needs to evaluate to a string.
    Last edited by shg; 12-13-2015 at 05:27 PM.

  8. #8
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Frequency Distribution Formulas

    Normally we don't put " " around mathematical signs like "+, - , =, >=, <=" but here we've put. Why?

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Frequency Distribution Formulas

    Because in a CountIf function, they are not operators -- they are used to build a string that is the right half of a Boolean expression evaluated for each element of the range.

    In =if(a1 > 1, "a", "b"), > is an operator

    In =countif(a1:a10, ">1"), ">1" is a string, and a1 & ">1" is evaluated as a Boolean expression, then a2 & ">1", then ...

    In a Boolean expression, you can have a value:

    if a then

    or an expression that included two or more values separated by a comparison operator

    if a > b then

    >1 is not an expression; there's nothing on the left.

    That's a gross simplification of an expression, but correct as far as it goes.
    Last edited by shg; 12-13-2015 at 05:50 PM.

  10. #10
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Frequency Distribution Formulas

    Quote Originally Posted by zanshin777 View Post
    I don't understand the formula (especially INDIRECT part) which create 10 frequency range from the data on the G Column.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Could anybody explain how the formula works?

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Frequency Distribution Formulas

    Okay, I'll give it a try. The formula is dividing your range up into 10 even segments. This is done by dividing the quantity of Max value - min value plus 1 by 10 to give you the "size" of each division. Then this value is added to the starting point which is your minimum data point (minus 1 so it ends up exactly at the max value and not max value +1).

    So, this formula could have been written
    =MIN(data)+(MAX(data)-MIN(data)+1)/10-1
    Then in G3 copied down
    =G2+(MAX(data)-MIN(data)+1)/10

    It was meant to be entered as an Arrayed formula in G2:G11.
    Select G2:G11 and then, in the formula bar, input and enter as an array

    =MIN(data)+(ROW(INDIRECT("1:10"))*(MAX(data)-MIN(data)+1)/10)-1

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    About The use of ROW(INDIRECT("1:10") )
    1:10 is seen as text in this formula until INDIRECT tells Excel that it refers to a Range (rows 1 to 10)
    Then ROW(1:10) returns an array of {1,2,3,4,5,6,7,8,9,10} and populates the cells G2:G11 sequentially with these values. So, for example, in G8, the formula would simplify to

    =MIN(data)+(7*(MAX(data)-MIN(data)+1)/10)-1

    The Frequency Column (H) should also be entered as an array in H2:H11

    =FREQUENCY(data,G2:G11)
    Questions?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  12. #12
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Frequency Distribution Formulas

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    By this formula the frequency range is added to the minimum value then 1 is subtracted on the first row. What does happen on the second row?

  13. #13
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Frequency Distribution Formulas

    They are manual entries.

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Frequency Distribution Formulas

    As SHG said, in your worksheet, they are manual entries. if you reread post #11, it tells how to enter that formula as an array and also how it calculates in each cell (I used G8 as an example).

    I believe, it was meant to be entered as an array, otherwise, there's no sense in using the INDIRECT("1:10")

+ 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. [SOLVED] Frequency Distribution Example Question
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2015, 04:22 PM
  2. Creating a Frequency Distribution
    By kk269 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2015, 10:43 AM
  3. Frequency Distribution Graph
    By kavin in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-26-2013, 01:31 PM
  4. Distribution of a value according to method and frequency
    By m1zz13 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2013, 03:30 PM
  5. Frequency distribution plot
    By mmmd_yaseen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2010, 07:35 AM
  6. Graph help (frequency distribution)
    By burnsie in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-14-2009, 06:00 AM
  7. [SOLVED] Frequency distribution
    By Ms MIS in forum Excel General
    Replies: 1
    Last Post: 04-06-2005, 01: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