+ Reply to Thread
Results 1 to 2 of 2

Multiple rows to bring back 1 value

  1. #1
    Registered User
    Join Date
    09-01-2010
    Location
    High Wycombe, UK
    MS-Off Ver
    Excel 2007
    Posts
    1

    Multiple rows to bring back 1 value

    Can anyone help me with this one.

    Column A holds customer numbers, they can have multiple products so they may be on more than one row.
    Column C holds a Y/N as to whether they have the product

    I need to compare all entries for one customer number and return an answer so that if a Y appears the Y wins, if no Y, it brings back N.

    965050551 Global 150 N
    965050551 Global Other N
    965340778 Global AFF Y
    965340778 Global INV N

    So in the scenario above customer 965050551 would return N but 965340778 would return Y.

    It would be a look up of all entries under one number, looking at all answers in Column C and returning a unique value.

    Thank you
    Kate

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

    Re: Multiple rows to bring back 1 value

    something like:

    =IF(COUNTIFS(A:A,A2,C:C,"Y")>=1,"Y","N")

    copied down.

    Where A2 is first customer number to compare. If you have a separate unique listing of customers, then replace A2 with the first entry and copy down.
    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.

+ 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