+ Reply to Thread
Results 1 to 3 of 3

Flat one line per customer

  1. #1
    Registered User
    Join Date
    02-01-2005
    Posts
    2

    Flat one line per customer

    I have an Excel spreadsheet that displays Customer and Product Info like this example:

    CustID...Product
    123.......Apples
    123.......Oranges
    345.......Kiwi
    567.......Oranges
    567.......Bananas
    567.......Apples

    Is there a way in Excel to have the data appear so that each CustID only appears in one row with the product listed in the adjacent columns like this:

    CustID..Prod1.......Prod2..........Prod3
    123.......Apples......Oranges
    345.......Kiwi
    567.......Oranges....Bananas.....Apples


    Let me know if you have any ideas on how to do this. Thanks

  2. #2
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    You have to use macro for that

  3. #3
    Registered User
    Join Date
    02-02-2005
    Posts
    35

    Alternative to VBA

    One option if you want to avoid VBA is to use a pivot table
    Won't be exactly as you required but may do the job

    Count of ProducProduct
    CustID.........Apples....Bananas........Kiwi.......Oranges
    123.............1................................................1
    345...................................................1
    567.............1..............1.................................1

    run a pivot wizard putting the CustID in the Row Field and
    Product in both the Column Field and the Data
    Also then remove Totals

    Hope this gives you the idea.

+ 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