+ Reply to Thread
Results 1 to 5 of 5

Lookup & output of multiple values related to ID in column

  1. #1
    Registered User
    Join Date
    09-23-2008
    Location
    Vienna
    Posts
    3

    Question Lookup & output of multiple values related to ID in column

    Hi folks!

    I would really appreciate your help for solving the following excel
    problem, as it is quite urgent:


    I have a table like this:
    A B C D E
    |CustomerID|Product |Product X |Product Y |Product Z |
    |1 |X | | | |
    |1 |Y | | | |
    |2 |Z | | | |
    |3 |X | | | |
    |3 |Y | | | |
    |3 |Z | | | |


    If a customer uses multiple products, there are multiple rows with the
    respective product.


    I would need the aggregated information about the used products per
    Customer in one Row, so that the sheet looks like that:
    A B C D E
    |CustomerID|Product |Product X |Product Y |Product Z |
    |1 |X |1 |1 |0 |
    |1 |Y |1 |1 |0 |
    |2 |Z |0 |0 |1 |
    |3 |X |1 |1 |1 |
    |3 |Y |1 |1 |1 |
    |3 |Z |1 |1 |1 |


    Does anybody know a solution for this (preferable no VBA)?


    Thank you so much in advance!!!!!!


    kr,
    Stefan

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    See attached ....

    Formula used in C2:

    =SUMPRODUCT(($B$2:$B$7=C$1)*($A$2:$A$7=$A2))

    copied down and across.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-23-2008
    Location
    Vienna
    Posts
    3
    Thanks a lot, you are a star!!! The formula works well, but an other problem occured now.

    As I have about 50.000 rows, the calculation of the cells causes an system error, due to running out of memory, when copying the formulas to all cells.

    I guess, the only solution for this will be a macro to set only the values and to avoid running out of memory. Unfortunately I don't know vba coding that well.

    Do you know a solution for that?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You can perhaps use a Pivot Table...

    see attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-23-2008
    Location
    Vienna
    Posts
    3
    that worked now...

    thx a lot for your quick help!!!!

+ 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. Lookup Function for Range of Values
    By sdfontanini in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2008, 03:41 PM
  2. Checking column for duplicate values and appending
    By Elmer in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-11-2008, 07:25 PM
  3. lookup table with 2 lookup values????
    By girth69 in forum Excel General
    Replies: 2
    Last Post: 02-13-2008, 08:00 AM
  4. Massive Sorting question.
    By Rgaherty in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 11-07-2007, 02:15 PM
  5. Single Column output required
    By bhaggs73 in forum Excel General
    Replies: 4
    Last Post: 03-30-2007, 09:42 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