+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 : Return all values from a column, based on multiple conditions

  1. #1
    Registered User
    Join Date
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    Thumbs up Return all values from a column, based on multiple conditions

    How is it possible to return all values from a column, based on 1 condition in one column and 5 conditions in the other column?

    Column A - list of people, column B - ABC, column C - XYZ. I need to return all values from the column A if column B = "C" and column C = "X" and "Y" and "Z".

    Please, advice... Thanks!
    Last edited by Alyena; 11-24-2011 at 01:57 PM.

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

    Re: Return all values from a column, based on multiple conditions

    Maybe?

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down, after adjusting ranges to suit.
    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
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Return all values from a column, based on multiple conditions

    Thanks for helping me again :-) But i can't really manage how to confirm only part of the formula with CTRL+SHIFT+ENTER? When i do it, then the whole formula is activated..

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

    Re: Return all values from a column, based on multiple conditions

    Why only part of it? Maybe I misunderstood the dilemma.

    Do you mean that column B needs to have a "C" in it, and column C needs to contain all 3 of X, Y and Z?

  5. #5
    Registered User
    Join Date
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Return all values from a column, based on multiple conditions

    Yes, you got it right. When i said only part of it, because in your suggestion seems to be activation with CTRL+SHIFT+ENTER only {"X","Y","Z"}.

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

    Re: Return all values from a column, based on multiple conditions

    Those {} brackets are part of the hard-coding, you still would need to confirm the whole formula to get the { } around the formula....

    ... but anyway, I think you might want this instead:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down.

  7. #7
    Registered User
    Join Date
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Return all values from a column, based on multiple conditions

    Sorry for my lack of knowledge here... Let me give you an example, seems i am doing something wrong... :-(
    Attached Files Attached Files

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

    Re: Return all values from a column, based on multiple conditions

    Try:

    Please Login or Register  to view this content.
    CSE confirmed and copied down.

  9. #9
    Registered User
    Join Date
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Return all values from a column, based on multiple conditions

    It's working, but not completely correctly - i am getting the same name multiple times...

  10. #10
    Registered User
    Join Date
    11-24-2011
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Return all values from a column, based on multiple conditions

    Ok, I did it now (used the last suggestion), was my fault... In my original data i don't have blanks, but text, which is invisible because of conditional formatting.

    Thanks a lot for your help!!!

+ 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