+ Reply to Thread
Results 1 to 7 of 7

If cell A = X then put text ..., if not see cell B and arrange try the same

  1. #1
    Registered User
    Join Date
    06-11-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    81

    If cell A = X then put text ..., if not see cell B and arrange try the same

    Hopefully somebody can help me. I have been searching all of the net, but couldn't find it.

    I have multiple cells where some one can write a X.

    Now I want a certain cell to show at which cell the other person put the X

    For example in cell A2 it needs to show what has been filled in at either cell A2, A3, A4. Now if A2 has X I want it to showin cell A1 "CAT", if A3 has X then I want it to show "DOG" in cell A1, etc. etc.
    Last edited by dutchmaste; 02-07-2011 at 09:22 AM.

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

    Re: If cell A = X then put text ..., if not see cell B and arrange try the same

    Does only one of those three cells have an X at any time, or could more than 1 have an X? And if so, which X is processed?
    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
    06-11-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: If cell A = X then put text ..., if not see cell B and arrange try the same

    In this case only 1 X should be filled in. But if you could help me with multiple as well that would be great as I know I will get there further down the road.

    So incase of multi it should have a outcome like CAT, DOG

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

    Re: If cell A = X then put text ..., if not see cell B and arrange try the same

    So we are only dealing with at most 3 cells occupied with an "X"?

  5. #5
    Registered User
    Join Date
    06-11-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: If cell A = X then put text ..., if not see cell B and arrange try the same

    For now it is just one X, but if you could provide me with both that would be really great.

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

    Re: If cell A = X then put text ..., if not see cell B and arrange try the same

    Well this will work with either case of one, two or three "X"'s


    =SUBSTITUTE(TRIM(IF(A2="x","cat","")&" "&IF(A3="x","dog","")&" "&IF(A4="x","mouse",""))," ",",")

    An alternative, if, for sure only one "x" is entered (or you want the first "x" only)....

    =CHOOSE(MATCH("x",A2:A4,0),"cat","dog","mouse")

  7. #7
    Registered User
    Join Date
    06-11-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: If cell A = X then put text ..., if not see cell B and arrange try the same

    Awesome, thnx so much

+ 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