+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP Return Value based on 2 Columns, One may be blank

  1. #1
    Registered User
    Join Date
    08-01-2016
    Location
    Southern California
    MS-Off Ver
    2016
    Posts
    4

    Post VLOOKUP Return Value based on 2 Columns, One may be blank

    Hi,

    I'm trying to do a simple VLOOKUP on 2 different Columns. If it finds the value in the 2nd column, return the value in the 3rd column. If 2nd column is blank, go to 1st column LOOKUP & return value in 3rd column.

    See attached file.

    Mac
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: VLOOKUP Return Value based on 2 Columns, One may be blank

    =IFNA(VLOOKUP('Raw Data'!B2,'Contract Type Table'!B:C,2,FALSE),VLOOKUP('Raw Data'!A2,'Contract Type Table'!A:C,3,FALSE))
    Frob first, tweak later

  3. #3
    Registered User
    Join Date
    08-01-2016
    Location
    Southern California
    MS-Off Ver
    2016
    Posts
    4

    Re: VLOOKUP Return Value based on 2 Columns, One may be blank

    That worked like a charm, thanks! I did get some #N/A values but, that's because my Reference Table is incomplete. Easy fix. Thank you!

  4. #4
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: VLOOKUP Return Value based on 2 Columns, One may be blank

    You're welcome!
    Please mark the thread 'Solved' using the thread tools link above your first post. Don't forget to add rep if you are happy with the solution!

+ 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. [SOLVED] VLOOKUP - If table array is blank, need it to return blank
    By bxk006 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2014, 11:36 AM
  2. [SOLVED] Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP
    By TMB1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 07:16 PM
  3. Replies: 2
    Last Post: 08-17-2010, 10:08 PM
  4. How do I return a blank for VLOOKUP instead of #N/A?
    By ExcelBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  5. [SOLVED] How do I return a blank for VLOOKUP instead of #N/A?
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 05:05 PM
  6. How do I return a blank for VLOOKUP instead of #N/A?
    By ExcelBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. How do I return a blank for VLOOKUP instead of #N/A?
    By ExcelBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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