+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Where all conditions are true then return the contents of the adjecent cell

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    MA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Where all conditions are true then return the contents of the adjecent cell

    Hello all, I am having an issue I need assistance please.

    I am looking for a formul set that I can enter a range that looks for a list of ID #'s in the cells contained in that range.

    The formula will result only where all of the ID's listed are present to match a name column adjecent to it.

    So essentially where ID # 1, 2, and 3 are all present and have the same exact name listed in the adjecent column

    if ID 2 and 3 show "Mary" but 1 does not, it will not produce a result, but

    if ID 1 and 2 and 3 show "Albert" and "George" as they do in the attached spreadsheet example, then it will produce Albert, George as the result.

    One sheet carries the data set and the other carries the formula and result.

    Thanks For the assistance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    341

    Re: Where all conditions are true then return the contents of the adjecent cell

    Replace =3 with the number of TRUE you expect
    =IF(COUNTIF(O17:Q17,TRUE)=3,N17,"")

    O17:Q17 is the range of cells in that given row you are checking.
    N17 is the cell with the name of your person.

  3. #3
    Registered User
    Join Date
    10-04-2011
    Location
    MA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Where all conditions are true then return the contents of the adjecent cell

    dip11,
    Thanks for the response. I tried the formula in various combination but sorry to say it wouldn't work.
    Could you formulize it using the sample spreadsheet, so the columns and rows are the same to produce "Albert, George" as the result.
    Maybe I am missing something but tried several variations and no luck.

    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    341

    Re: Where all conditions are true then return the contents of the adjecent cell

    Ah sorry I didn't see the spreadsheet.

    Can I ask if the names will always be from the same pool or will you have a lot of different names?
    If you have a limited pool of names you can duplicate this formula for each name:
    =IF(AND(COUNTIFS(A:A,1,B:B,"George")>0,COUNTIFS(A:A,2,B:B,"George")>0,COUNTIFS(A:A,3,B:B,"George")>0),"George","")

    I think there's a better way of doing it using INDEX but I don't know how to use that function properly, sorry
    Last edited by dip11; 12-06-2011 at 09:29 AM.

  5. #5
    Registered User
    Join Date
    10-04-2011
    Location
    MA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Where all conditions are true then return the contents of the adjecent cell

    Hi,
    No the names are constantly changing, they will actually be merchant names, and constanly changing.
    They numbers will be the only constant in any search.

+ 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