Results 1 to 9 of 9

Combine VLOOKUP with OR Function with three options

Threaded View

kibbles Combine VLOOKUP with OR... 05-19-2020, 02:00 PM
oeldere Re: Combine VLOOKUP with OR... 05-19-2020, 02:04 PM
kibbles Re: Combine VLOOKUP with OR... 05-19-2020, 02:19 PM
Fluff13 Re: Combine VLOOKUP with OR... 05-19-2020, 02:30 PM
oeldere Re: Combine VLOOKUP with OR... 05-19-2020, 02:35 PM
bebo021999 Re: Combine VLOOKUP with OR... 05-19-2020, 10:16 PM
kibbles Re: Combine VLOOKUP with OR... 05-22-2020, 01:16 AM
AliGW Re: Combine VLOOKUP with OR... 05-22-2020, 01:42 AM
Fluff13 Re: Combine VLOOKUP with OR... 05-22-2020, 08:00 AM
  1. #1
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Combine VLOOKUP with OR Function with three options

    Hello! I'm frustrated because I cannot figure out how to do the following:
    I want my VLOOKUP to bring back a value if it exists; if it doesn't, look in the same table for a different combination; if that doesn't exist, look on another tab; if it doesn't exist there, bring back #N/A
    My formula is:
    =IFERROR(OR(VLOOKUP(LEFT(A2,12),'SLIN rev'!A:B,2,FALSE),VLOOKUP(A2,'SLIN rev'!A:B,2,FALSE)),VLOOKUP(LEFT(A2,12),'UB SLINs'!A:B,2,FALSE))

    It's not working....here's the breakdown of what I'm ATTEMPTING to accomplish:
    VLOOKUP(LEFT(A2,12),'SLIN rev'!A:B,2,FALSE) = Lookup against this cell through 12 characters
    IF it doesn't exist
    VLOOKUP(A2,'SLIN rev'!A:B,2,FALSE)) = Lookup against this cell through the entire character field
    If it doesn't exist
    VLOOKUP(LEFT(A2,12),'UB SLINs'!$A:B,2,FALSE) = Lookup against a different tab (UB SLINs) and bring that value back

    Any help would be greatly appreciated

    EDIT:
    I've attached a spreadsheet example
    Attached Files Attached Files
    Last edited by kibbles; 05-19-2020 at 02:19 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Combine VLOOKUP and IF Function
    By dwisetyo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2017, 12:53 PM
  2. How do i combine a vlookup function with a countif function?
    By charris58 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-08-2016, 06:15 PM
  3. [SOLVED] how to combine vlookup with ifcount function
    By rizwan32 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-24-2014, 01:49 PM
  4. [SOLVED] Combine Vlookup and Sumif function
    By HaroonSid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-24-2014, 01:14 AM
  5. [SOLVED] Writing code for a function to combine iferror and vlookup
    By tommyko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-31-2012, 05:39 PM
  6. How do I combine If and VLookup function?
    By Felicia Pickett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2005, 08:10 PM
  7. How to combine a vlookup with a sumif function!!!
    By Mark the Shark in forum Excel General
    Replies: 2
    Last Post: 04-06-2005, 07:06 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