+ Reply to Thread
Results 1 to 3 of 3

How to consolidate multiple like entries?

  1. #1
    Registered User
    Join Date
    10-14-2009
    Location
    Oslo Norway
    MS-Off Ver
    Excel 2004 for Mac 11.5.5
    Posts
    3

    How to consolidate multiple like entries?

    Hi. This has surely been answered hundreds of times before, but I donīt know what terms to use to search for the answer to my question. Here is my dilemma:

    I have a list of data with multiple like entries that I need to collate into a simplified list. Example:

    CATEGORY___COUNT
    =========___======
    apple__________3__
    red apple_______2__
    pear___________9__
    Bartlet pear_____1__
    Fuji apple______16__
    pineapple_______4__
    kiwi___________7__
    guava_________4__

    This list should ideally be consolidated as such:
    CATEGORY____COUNT
    ==========___======
    apple_________21__
    pear__________10__
    tropical fruit____15__

    I understand that "pineapple" requires special attention, but I donīt even know how to do the simplest circumstance either (without "pineapple" text string confusion).

    Thanks for any help!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to consolidate multiple like entries?

    If we assume your source table is in A1:B9 (row 1 being headers)

    then if

    Please Login or Register  to view this content.
    then results:

    Please Login or Register  to view this content.
    SUMIF with wildcard won't suffice here given the likes of "pineapple" etc...

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: How to consolidate multiple like entries?

    Use a pivot table! Pivot tables are designed to do more or less exactly what you've asked for.

    I can't upload an example, so please follow these steps (before dismissing the suggestion)
    Select a cell in your range
    Data -> pivot table & pivot chart report ->
    Click through (defaults will be fine)
    A pivot table pops up (blue boxes everywhere)
    From the little window, drag "CATEGORY" to the "row fields" area - this should make a list of fruit appear in that column
    Now drag "COUNT" to the data area
    This should effectively replicate your table
    Now...
    Select each apple cell - like:
    click on "apple"
    ctrl+click on "Fuji apple"
    ctrl+click on "red apple"
    right click on red apple
    group and show detail
    group
    You can rename "Group 1" by simply overwriting in the relevant cell
    follow similar steps to group pears (select cells in the "ungrouped" column)
    You shuold now have a table that looks like
    Please Login or Register  to view this content.
    Now... double-clicking on "Apples" or "Pears" will group/ungroup those groups - JAZZY!

    CC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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