+ Reply to Thread
Results 1 to 4 of 4

Help in Groupings

  1. #1
    Registered User
    Join Date
    03-18-2009
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    5

    Help in Groupings

    Hi guys,

    I have a table with 2 columns as per table below:

    Country Count
    -------------------
    AUSTRIA--------- 1
    BAHAMAS-------- 3
    BARBADOS-------- 2
    CANARY ISLANDS- 6
    COLOMBIA-------- 9
    GUATEMALA-------11
    LUXEMBOURG----- 15
    MACEDONIA------ 6
    PAKISTAN-------- 8
    RUSSIA----------- 13
    TAIWAN---------- 3
    KENYA----------- 5
    ANDORRA-------- 15
    BELGIUM--------- 1
    CHILE----------- 3
    CYPRUS--------- 6
    FINLAND-------- 14

    How can I count them by using these groupings 1-5,6-10,11-15? So I will have now a table like this:

    Group Count
    -------------
    1-5----- 6
    6-10---- 5
    11-15--- 5

    Please help.thanks
    Last edited by arvi; 04-28-2009 at 08:30 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Help in Groupings

    Hi,

    You can use a FREQUENCY array to give you this result.

    Using your example above, in the same sheet, enter 5, 10 and 15 into cells I1,I2 and I3.

    Select cells J1,J2 and J3, press F2 and type =FREQUENCY($F$1:$F$17,$I$1:$I$3)

    Instead of just pressing enter to confirm, hold CTRL & SHIFT and press enter.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Help in Groupings

    Or this...
    1--5 =SUMPRODUCT(1*($B$1:$B$18<6))
    6--10 =SUMPRODUCT(1*($B$1:$B$18>5);1*($B$1:$B$18<11))
    11--15 =SUMPRODUCT(1*($B$1:$B$18>10))
    Never use Merged Cells in Excel

  4. #4
    Registered User
    Join Date
    03-18-2009
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Help in Groupings

    hi guys, thanks for the help!

+ 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