+ Reply to Thread
Results 1 to 4 of 4

Searching a column of cells and reporting results in a list

  1. #1
    Registered User
    Join Date
    12-15-2012
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    23

    Searching a column of cells and reporting results in a list

    I am trying to figure out how to search a column for matching text and then report another value depending on whether it matches. For example (if "=" just means its the next cell on the row):

    COLORS = LETTERS
    blue = A
    red = B
    green = A
    yellow = D
    blue = E
    purple = C
    blue = A

    For every cell, I'll be looking for blue. Blue can equal "A" or "E" or however many more letters. So I want to search the entire column of colors and wherever it is "blue", I want it to report, in a list, the corresponding letter on that row, such "A, E".
    This might be looking too far ahead, but I would also like to figure out a way to not duplicate letters, so if two rows were blue and both corresponded with "a", it wouldn't list that as "A, E, A" and rather just "A, E".

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Searching a column of cells and reporting results in a list

    From what you're describing, you're better off just using a pivot table. Highlight your data --> create pivot table --> make "COLORS" your first Row Label/Field and "LETTERS" your second Row Label/Field.
    Last edited by Craig K.; 06-14-2013 at 05:50 PM. Reason: grammar
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Searching a column of cells and reporting results in a list

    Try the attached file, explainations given for each part are on the sheets.
    This should give the the basic starting point for your work. Or you can use a Pivot Table (select your data and choose insert Pivot Table, use false data and give it a go if you've never used one before).

    If you need more help though let me know.
    Attached Files Attached Files
    Say thanks, click *

  4. #4
    Registered User
    Join Date
    12-15-2012
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Searching a column of cells and reporting results in a list

    Whew, pivot table is waaaaay easier. Might have to do some finagling to make it work the way I need it to elsewhere, but that's definitely a good start. Thanks!!!!

+ 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