+ Reply to Thread
Results 1 to 6 of 6

VLookup from two cells instead of one

  1. #1
    Registered User
    Join Date
    08-14-2022
    Location
    Vejle, Denmark
    MS-Off Ver
    Office 365
    Posts
    3

    VLookup from two cells instead of one

    Hi

    I need to lookup data from two cells in a row and find a similar row with same data in a different sheet, in order to return the data from a specific cell in that row.

    Can this be done using Vlookup or do I need another formula?

    Rgds
    Mikael
    Attached Files Attached Files
    Last edited by mlinde; 08-14-2022 at 07:40 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: VLookup from two cells instead of one

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-14-2022
    Location
    Vejle, Denmark
    MS-Off Ver
    Office 365
    Posts
    3

    Re: VLookup from two cells instead of one

    thanks - its done :-)

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: VLookup from two cells instead of one

    One way:

    =IF(A4="","",IFERROR(INDEX(Data!$D$4:$D$100,MATCH(1,(Data!$B$4:$B$100=A4)*(Data!$C$4:$C$100=B4),0)),""))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-14-2022
    Location
    Vejle, Denmark
    MS-Off Ver
    Office 365
    Posts
    3

    Re: VLookup from two cells instead of one

    Thank you VERY much for a fast reply and solution :-)

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: VLookup from two cells instead of one

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vlookup and other cells
    By hiswillbedun in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-01-2016, 11:31 AM
  2. [SOLVED] Sum of multiple VLOOKUP cells in the row with some cells are blank
    By thup_98 in forum Excel General
    Replies: 3
    Last Post: 12-23-2015, 04:23 AM
  3. [SOLVED] How to use VLOOKUP to look at 2 seperate cells and compare the same cells in the datarange
    By Shannon561 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-19-2014, 05:59 AM
  4. add cells with vlookup
    By kcube17 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2014, 01:55 AM
  5. [SOLVED] vlookup to convert row of cells into column of cells (transpose)
    By kosherboy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-13-2014, 06:07 PM
  6. VLOOKUp (Within the Cells)
    By Sumit Chopra in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2007, 05:20 AM
  7. [SOLVED] Vlookup value between 2 cells
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2006, 11:35 AM

Tags for this Thread

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