+ Reply to Thread
Results 1 to 11 of 11

VLOOKUP to return value found in 1 of 4 columns to a different column in same row

  1. #1
    Registered User
    Join Date
    05-03-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    6

    VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    Hello,

    I am trying to use VLOOKUP to return a value found in one of four columns to the "end" column where I want the data to display. The table array is matching one corresponding value from one column to the adjacent column. I am able to get the value to display if I only reference one cell, like this:

    =VLOOKUP(C9,$A$2:$B$4,2,FALSE)

    However, you'll see in the attached worksheet that I essentially want the VLOOKUP to search across four columns, like this:

    =VLOOKUP(C9:F9,$A$2:$B$4,2,FALSE)

    But the error in the cell is: #VALUE!

    Additionally, I want to be able to drag the formula down multiple rows, only displaying one corresponding value. Perhaps VLOOKUP isn't the correct formula? I would appreciate any and all help. Thank you!
    Attached Files Attached Files

  2. #2
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    Hi,

    Welcome to the forum

    I hope this solves your issue -

    try this - (You can change the red text to what you expect if no value is entered in all 4 columns


    Please Login or Register  to view this content.
    Drag the formula upto your requirement.

    Thanks,

    Bonny Tycoon



    Please consider:

    1. Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    2. Mark your thread [SOLVED] if you received your answer.
    Last edited by bonny24tycoon; 05-03-2012 at 01:49 PM.

  3. #3
    Registered User
    Join Date
    05-03-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    Thank you! Your solution was excellent!

  4. #4
    Registered User
    Join Date
    05-03-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    Hey there, I realize this thread has been marked "solved" but here's another (a bit more simple) solution if you like.

    Thanks

    RVUs v2.xlsx

  5. #5
    Registered User
    Join Date
    05-03-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    Thank you.

  6. #6
    Registered User
    Join Date
    05-03-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    Hello,
    I just went back to use this formula and for some reason it is not working anymore. I'm using Excel 2003. Is there some reason to explain why this has happened?
    Thank you!

  7. #7
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    Hi There,

    Which formula are you referrring to. Can I help?
    Thanks,

    Bonny Tycoon


  8. #8
    Registered User
    Join Date
    05-03-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    This one:

    =IF(C8<>"",VLOOKUP(C8,$A$2:$B$4,2,FALSE),IF(D8<>"",VLOOKUP(D8,$A$2:$B$4,2,FALSE),IF(E8<>"",VLOOKUP(E8,$A$2:$B$4,2,FALSE),IF(F8<>"",VLOOKUP(F8,$A$2:$B$4,2,FALSE),"No Value in all 4 columns"))))

    I'll also attach the spreadsheet I have... Maybe the formatting is interfering with the formula? As you can see in the spreadsheet, after inputting the formula and trying to put the code into one of the columns, the number doesn't change in the appropriate column like it was doing before. Thanks for your help!
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-27-2012
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    Hi

    you put the cursor omn the cell and press f2 key then press ctrl, shift and entr keys simultanuously. You will get the result.

    Hope it will satisfy you.

    Regards

    desikan

  10. #10
    Registered User
    Join Date
    05-03-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    Here's the other lookup function in this new file...thanks.

    Test sheet_RVUs.xls

  11. #11
    Registered User
    Join Date
    05-03-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUP to return value found in 1 of 4 columns to a different column in same row

    Thanks to everyone for all of 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