+ Reply to Thread
Results 1 to 4 of 4

If one column cell contains "y", return corresponding column word

  1. #1
    Registered User
    Join Date
    02-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2008 Mac
    Posts
    21

    If one column cell contains "y", return corresponding column word

    Hey all, just wondering if this was possibly via formulae...?

    So basically, in cells B2-B300 I have names, and D2-D300 I have blank cells.

    But, I'd like to start inserting a "y" into the blank cells.

    When I insert a "y" into the D column, I'd like for the corresponding B column name to be placed into A25. Then after inserting the next "y", for the next corresponding name to be put into A26. And so on.

    eg: if B2 has "Daniel" and I put a "y" into D2, I'd like Daniel to appear in A25. Then, if I put a "y" into D13, and B13 has "Jack", I'd like Jack to appear in A26. etc

    If possible, I'd like the order of the names being put into the A25,26,27 etc to be in the order that the "y"'s are manually inserted.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: If one column cell contains "y", return corresponding column word

    hi JKK123, try this array formula in A25 & drag down & as many cells as you like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER. When done correctly, you should see curly brackets surrounding it

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If one column cell contains "y", return corresponding column word

    Try.

    In A25 and copy down, this ARRAY formula.

    =IFERROR(INDEX($B$2:$B$300,SMALL(IF($D$2:$D$300="yes",ROW($B$2:$B$300)-1),ROW(B1))),"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    02-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2008 Mac
    Posts
    21

    Re: If one column cell contains "y", return corresponding column word

    Thanks so much guys! Benishiryo's formula seems to nail it but both were incredibly helpful. thanks for that!

+ 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