+ Reply to Thread
Results 1 to 5 of 5

Vlookup formula for two Columns

  1. #1
    Registered User
    Join Date
    02-13-2014
    Location
    Newcastle upon Tyne, United Kingdom
    MS-Off Ver
    Excel 365
    Posts
    77

    Vlookup formula for two Columns

    Hi,
    Not sure if i can do this with a VLookup or if i need a Match/Index formula, either way i'll need some help with the syntax.
    I want to check the value in two columns on one row from a table within the workbook.
    I'm currently using this formula to check one column:
    =IFERROR(VLOOKUP(AI2,Consultant!$A$2:$B$117,2,FALSE),"No Consultant")
    But i need it to check column AJ too. If it finds a value within the lookup table (from either column) then i want it to display the value in the B column of the lookup table.
    Does that make sense?
    Thanks,
    Peter

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Vlookup formula for two Columns

    Maybe
    =IFERROR(VLOOKUP(AI2,Consultant!$A$2:$B$117,2,FALSE),IFERROR(VLOOKUP(AJ2,Consultant!$A$2:$B$117,2,FALSE),"No Consultant"))

  3. #3
    Registered User
    Join Date
    02-13-2014
    Location
    Newcastle upon Tyne, United Kingdom
    MS-Off Ver
    Excel 365
    Posts
    77

    Re: Vlookup formula for two Columns

    This seems to be the one, thank you for this, much appreciated

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Vlookup formula for two Columns

    You're welcome & thanks for the feedback.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Vlookup formula for two Columns

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Variable columns possible in Sumproduct (vlookup) formula?
    By bob33 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-03-2017, 03:33 PM
  2. [SOLVED] Complex Vlookup formula on 2 columns
    By Air^Canada in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2015, 08:47 AM
  3. [SOLVED] VLOOKUP formula to look at 2 columns
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-06-2014, 03:01 PM
  4. [SOLVED] Need a VLookup formula for Multiple Columns
    By dyeager01 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-04-2013, 01:07 PM
  5. [SOLVED] Vlookup (or other formula) that will combine 2 columns into 1
    By Marcel Coetzee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-04-2013, 06:20 PM
  6. Vlookup formula that adds two columns possible?
    By Dopey1956 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2013, 08:16 PM
  7. Copy Vlookup Formula to alternate columns
    By Brilar in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-09-2011, 04:24 AM

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