+ Reply to Thread
Results 1 to 7 of 7

Grouping information in excel

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Milan, Italy
    MS-Off Ver
    Excel 2003
    Posts
    33

    Grouping information in excel

    Hello

    I need help with this work.

    In particular I have a list of companies and to each company could correspond several rows.
    It could happen that a company has several rows which correspond to the same location.
    My work is doing something like that:

    Starting from:

    Apple Cupertino
    Apple Cupertino
    Apple San Francisco
    Google San Francisco
    Google London
    Amazon Milan
    Amazon Milan
    Amazon Milan
    Amazon Seattle

    I should get something like this:

    Apple Cupertino 2
    Apple San Francisco 1
    Google San Francesco 1
    Google London 1
    Amazon Milan 3
    Amazon Seattle 1

    In this way I can eliminate some rows without losing the information.

  2. #2
    Registered User
    Join Date
    11-13-2006
    Posts
    87

    Re: Grouping information in excel

    Show us two worksheets, one with what you have and one with what you want. A few rows on each will be enough.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Grouping information in excel

    If your original list is in column A:

    Enter this in column B and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To get the count enter this in column C in the same row that the above formula was entered:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    05-07-2012
    Location
    Milan, Italy
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Grouping information in excel

    uhm, no... I believe that my request was not clear.
    I have a first column (A) in which there are the companies name.
    In the second column there are their locations and it could happen that several same locations correspond to the same company (ie two Cupertino locations for Apple).
    Finally I have a third column in which the number of same location for the same company are counted.

    So if I have
    Apple Cupertino
    Apple Cupertino
    Apple San Francisco
    Google London
    Google San Francisco

    The final result has to be:
    Apple Cupertino 2 %(number of times that cupertino appears ONLY REFERRED TO APPLE)
    Apple San Francisco 2 %(number of times that san francisco appears ONLY REFERRED TO APPLE)
    Google London 1
    Google San Francisco 1

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Grouping information in excel

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  6. #6
    Registered User
    Join Date
    05-07-2012
    Location
    Milan, Italy
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Grouping information in excel

    Book.xlsx

    Ok...

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Grouping information in excel

    This might be what you are looking for. I used helper columns that can be hidden
    Attached Files Attached Files

+ 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. [SOLVED] Combining/Grouping Cell/Row information
    By kguerrero in forum Excel General
    Replies: 4
    Last Post: 06-12-2012, 07:32 PM
  2. Want to get a Series with Grouping and Sub-Grouping based on 2 criterias.
    By e4excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2011, 05:46 AM
  3. Grouping information into one Row
    By rickn in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 04-21-2010, 10:16 AM
  4. Replies: 10
    Last Post: 01-14-2010, 05:45 PM
  5. Grouping information in a chart
    By DavidG in forum Excel General
    Replies: 2
    Last Post: 06-23-2006, 11:45 AM

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