+ Reply to Thread
Results 1 to 8 of 8

Excel illiterate: frequency for intervals

Hybrid View

  1. #1
    Registered User
    Join Date
    03-02-2014
    Location
    London
    MS-Off Ver
    excel2013
    Posts
    3

    Excel illiterate: frequency for intervals

    I am illiterate in excel, sorry if my question seems stupid:

    I am dealing with intervals: A1 = max value of set interval; B1 = min value of set interval

    A B
    1 7051 6770
    2 6654 6462
    3 6459 6253
    4 6684 6469
    5 6439 6253
    6 5720 5513
    7 5838 5623

    I am looking for a formula to calculate the frequency of intervals that fall within a 500-mark range; In effect, the same interval would count more than once:

    The frequency in this case would be (if my calculations are right)
    7500-7000: 1

    7000-6500: 3

    6500-6000: 4

    6000-5500: 2



    Thank you in advance for any suggestion!

    xi
    Last edited by xim78; 03-02-2014 at 06:04 PM.

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

    Re: Excel illiterate: frequency for intervals

    Can you explain how you arrived at those answers?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    07-29-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    365
    Posts
    255

    Re: Excel illiterate: frequency for intervals

    MAX MIN Interval Count
    7051 6770 5000 =FREQUENCY($A$2:$B$9,D2) =E2
    6654 6462 =D2+500 =FREQUENCY($A$2:$B$9,D3) =E3-E2
    6459 6253 =D3+500 =FREQUENCY($A$2:$B$9,D4) =E4-E3
    6684 6469 =D4+500 =FREQUENCY($A$2:$B$9,D5) =E5-E4
    6439 6253 =D5+500 =FREQUENCY($A$2:$B$9,D6) =E6-E5
    5720 5513 =D6+500 =FREQUENCY($A$2:$B$9,D7) =E7-E6
    5838 5623 =D7+500 =FREQUENCY($A$2:$B$9,D8) =E8-E7
    5838 5623 =D8+500 =FREQUENCY($A$2:$B$9,D9) =E9-E8
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

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

    Re: Excel illiterate: frequency for intervals

    Ah, that's what he meant.

    A
    B
    C
    D
    E
    F
    1
    7051
    6770
    5500
    0
    E1:E6: {=FREQUENCY(A1:B7, D1:D5)}
    2
    6654
    6462
    6000
    4
    3
    6459
    6253
    6500
    6
    4
    6684
    6469
    7000
    3
    5
    6439
    6253
    7500
    1
    6
    5720
    5513
    0
    7
    5838
    5623


    Enter the values shown in D1:D5. Then select E1:E6, paste

    =FREQUENCY(A1:B7, D1:D5)

    ... in the formula bar, then press and hold the Ctrl and Shift keys, then press Enter.

  5. #5
    Registered User
    Join Date
    03-02-2014
    Location
    London
    MS-Off Ver
    excel2013
    Posts
    3

    Re: Excel illiterate: frequency for intervals

    Thank you for your replies

    I need to clarify the problem:

    Name Max Min
    [Interval 1] 7051 6770
    [Interval 2] 6654 6462
    [Interval 3] 6459 6253
    [Interval 4] 6684 6469
    [Interval 5] 6439 6253
    [Interval 6] 5720 5513
    {interval 7] 5838 5623

    What I mean is that only 1 of the above intervals overlaps with/falls into the range 7500-7000 (i.e. Interval 1)
    3 intervals fall into range 7000-6500 (i.e. Intervals 1, 2 and 4)
    4 intervals fall into range 6500-6000 (i.e. Intervals 2, 3, 4 and 5)
    2 intervals falls into range 6000-5500 (i.e. Intervals 6 and 7)

    Hence the result:
    7500-7000: 1
    7000-6500: 3
    6500-6000: 4
    6000-5500: 2

    It sounds easy enough on paper, but I need to do the same for a dataset of c. 900 entries.

    Thank you again for your reply.

    xi

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

    Re: Excel illiterate: frequency for intervals

    A
    B
    C
    D
    E
    F
    G
    1
    Max
    Min
    Max
    Min
    Overlaps
    2
    7051
    6770
    6000
    5500
    2
    F2: =COUNTIFS($A$2:$A$8, ">=" & E2, $B$2:$B$8, "<=" & D2)
    3
    6654
    6462
    6500
    6000
    4
    4
    6459
    6253
    7000
    6500
    3
    5
    6684
    6469
    7500
    7000
    1
    6
    6439
    6253
    7
    5720
    5513
    8
    5838
    5623


    You may want to get rid of one or both of the equals signs, depending on how you define "overlap"

  7. #7
    Registered User
    Join Date
    03-02-2014
    Location
    London
    MS-Off Ver
    excel2013
    Posts
    3

    Re: Excel illiterate: frequency for intervals

    The last formula worked for me!

    Thank you so much!

    xi

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

    Re: Excel illiterate: frequency for intervals

    You're welcome.

+ 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] Copy With Intervals Paste With No Intervals.
    By gorinw10 in forum Excel General
    Replies: 12
    Last Post: 07-20-2013, 12:23 PM
  2. Count Frequency of Intervals
    By banjogabano in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-11-2013, 04:52 AM
  3. Converting Data in Irregular Time Intervals into Regular Time Intervals
    By AlexJT in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2011, 02:42 AM
  4. Need to Transpose Irregular Time Intervals into Regular Time Intervals
    By AlexJT in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2011, 08:30 PM
  5. excel macro illiterate - need to copy information out of sheets
    By darknature in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2011, 11:57 AM

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