+ Reply to Thread
Results 1 to 4 of 4

Create summary of quantities by an interval

  1. #1
    Forum Contributor
    Join Date
    01-25-2010
    Location
    Virginia
    MS-Off Ver
    Excel 2013
    Posts
    104

    Create summary of quantities by an interval

    THANK YOU!!!

    Attached is a sample data file.

    The worksheet Raw Data contains a column, Number, that is just a sequential number from 1, to a variable ending number. The column Store contains one of a variable number of possible names. I am only interested in 3 specific Store names: smith, jones, and brown.

    I'd like to be able to create the Summary Data worksheet that is shown. However, in what I've shown I listed the interval 301 - 400 as the last interval of interest; in reality, I'd like to have a formula (or macro?) to determine the last interval. I'd also like to fill each cell in that table with the number of occurrences of the specified store in the specified interval.

    I hope I'm being clear.

    What is the best way to do this?
    Last edited by SueWithQuestion; 06-20-2011 at 09:55 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Create summary of quantities by an interval

    Where are the intervals coming from and what exactly is going in the table of results?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    01-25-2010
    Location
    Virginia
    MS-Off Ver
    Excel 2013
    Posts
    104

    Re: Create summary of quantities by an interval

    Where are the intervals coming from and what exactly is going in the table of results?

    I apologize. I should have been clearer.

    The Stores are actual in a rank order. The intervals are fixed in that they are by 100.

    I want to know how many "smith" stores occur in the top 100, in the next 100 after that, in the next 100, etc., and the same for the jones and brown Store values.

    Make sense?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Create summary of quantities by an interval

    See attached to see if it suits.

    The range was divided into separate cells so that formulas could more easily reference actual numbers....

    So Summary sheet, A2, formula is:

    =IF(MAX('Raw Data'!A:A)>=0,0,"")

    in A3:

    Please Login or Register  to view this content.
    copied down as far as you want.

    in B2:

    Please Login or Register  to view this content.
    in B3:

    Please Login or Register  to view this content.
    copied down as far as adjacent column.

    in C2:

    Please Login or Register  to view this content.
    copied down and across the 3 columns

    Note: You can create a dynamic named range called: LRow with formula:

    INDEX('Raw Data'!$B:$B,MAX('Raw Data'!$A:$A) and replace occurances of that part in the formula above with Lrow

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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