+ Reply to Thread
Results 1 to 5 of 5

Sorting Numerical data..

  1. #1
    Registered User
    Join Date
    11-02-2006
    Posts
    46

    Sorting Numerical data..

    Hi there guys,
    I was wondering if anyone could give me any help. I'm trying to sort a column of data containing percentages into groups and then subtotal these groups.

    Basically, how would I sort the data below into groups 10-20%, 20-30%,30-40%, 40%+, without doing it manually?


    Sales Contribution %
    41.4 %
    39.1 %
    31.7 %
    28.9 %
    7.1 %
    16.6 %
    22.7 %
    30.0 %
    36.2 %
    29.3 %
    36.6 %
    25.2 %
    54.1 %
    30.0 %
    45.0 %
    31.2 %
    27.4 %
    36.5 %
    38.6 %
    30.0 %

    Thanks!
    Dave.

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Check out the FREQUENCY function.

    Mangesh
    Mangesh

  3. #3
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Sorry for the incomplete info:

    Try the following:

    Lets say your data is in column A (A1:A20)

    In column C, enter as follows:
    C1 = 0%
    C2 = 10%
    C3 = 20%
    C4 = 30%
    C5 = 40%

    In column D enter as follows
    D1 =SUMPRODUCT(--($A$1:$A$20<C2),--($A$1:$A$20>=C1),$A$1:$A$20)
    D2 =SUMPRODUCT(--($A$1:$A$20<C3),--($A$1:$A$20>=C2),$A$1:$A$20)
    D3 =SUMPRODUCT(--($A$1:$A$20<C4),--($A$1:$A$20>=C3),$A$1:$A$20)
    D4 =SUMPRODUCT(--($A$1:$A$20<C5),--($A$1:$A$20>=C4),$A$1:$A$20)
    D5 =SUMPRODUCT(--($A$1:$A$20>=C5),$A$1:$A$20)

    Note that cells D1:D4 have the same formula, so you can enter the formula in D1 and copy down till D4. D5 has a different formula

  4. #4
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394
    Also, if you are going to produce a histogram, you may like to load the Analysis Pack and then select Tools\Data Analysis\Histogram

    Matt

  5. #5
    Registered User
    Join Date
    11-02-2006
    Posts
    46
    That's great cheers guys!
    I'll give it a go but I think that's exactly what I was looking for.

    Cheers,
    Dave.

+ 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