+ Reply to Thread
Results 1 to 4 of 4

Populate data according to interval

  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Populate data according to interval

    Hi there,

    Good day!

    I have a set of data which look something like this:

    Interval
    No. >=Start <=Stop
    1 10 20
    2 10 30
    3 40 50
    4 20 30

    Is it possible to populate the data according to each respective intervals? I would like to get the total no. (counting, not the sum) for each interval.
    For example, 2 for the intervals of 20-30, 3 for the intervals of 20-30.

    I used countifs, but it gave me 1-1-1-1-1... it doesn't give me the total....

    I attached a sample showing my intended result.
    Not sure if it can be done without using VBA.

    Appreciate if anyone can assist.

    Thank you!!
    Attached Files Attached Files
    Last edited by hcyeap; 05-05-2015 at 08:46 AM. Reason: typo

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Populate data according to interval

    G7=COUNTIFS($B$4:$B$7,"<="&G2,$C$4:$C$7,">="&G2)
    Try this and copy towards right
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Re: Populate data according to interval

    Hi Siva,

    Thank you for your prompt reply.
    I never thought the solution was so easy.

    Previously I use >= on G2 and < on cell H2.... no wonder I can't get the answer

    Thank you very much

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Populate data according to interval

    You are welcome and thanks for your feedback

+ 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: 1
    Last Post: 04-29-2014, 04:42 AM
  2. Looking to convert 10 minute interval data to 15 minute interval data
    By rsporseen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-03-2013, 01:01 PM
  3. [SOLVED] How to make an interval and search for values within that interval?
    By gamoerma in forum Excel General
    Replies: 12
    Last Post: 10-13-2013, 10:33 AM
  4. Avg numbers in specified interval from non-interval data
    By weeble33 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2013, 07:27 PM
  5. Replies: 0
    Last Post: 11-17-2011, 02:20 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