+ Reply to Thread
Results 1 to 5 of 5

Combine VLOOKUP and IF with specific values (and IFERROR)

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016, 32-bit
    Posts
    92

    Combine VLOOKUP and IF with specific values (and IFERROR)

    Simple VLOOKUP takes the ID# and checks against Table1 (named range $B$2:$C$31) to get a name. But what I really need is whether or not there IS a name.

    I figured out how to do this in two steps - by using VLOOKUP for the name,and then in the next column, testing whether it's "(blank)" - gets a 1 if it is not "(blank)"

    However, when I use it against a set where the ID# doesn't exist in Table1, I still get a 1, even though it's not "(blank)" and it's not a name.
    formulas in cells G5, H5, and I5:
    Please Login or Register  to view this content.
    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Combine VLOOKUP and IF with specific values (and IFERROR)

    If you just want to know if a value is present in a list, use COUNTIF.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016, 32-bit
    Posts
    92

    Re: Combine VLOOKUP and IF with specific values (and IFERROR)

    I'm not looking for a specific name, just if there is a name attached to that ID#

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Combine VLOOKUP and IF with specific values (and IFERROR)

    L5=IFERROR(IF(VLOOKUP(K5,$B$3:$C$31,2,0)<>$C$3,1,""),"")

    Copy down

  5. #5
    Registered User
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016, 32-bit
    Posts
    92

    Re: Combine VLOOKUP and IF with specific values (and IFERROR)

    Thank you!

+ 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. Combine Vlookup with iferror and sums it up
    By gill123 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-13-2018, 01:49 PM
  2. How to combine IF, IFerror and Vlookup formula?
    By jgomez in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2016, 04:10 AM
  3. [SOLVED] combine IF and IFERROR
    By johnandrews in forum Excel General
    Replies: 8
    Last Post: 12-15-2014, 02:27 PM
  4. Vlookup with Match and Iferror for confirming is values exist in a column
    By Mr.Magoo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2014, 06:57 AM
  5. Replies: 10
    Last Post: 11-06-2012, 08:31 AM
  6. [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
  7. combine IFAND with IFERROR?
    By simplify in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-08-2009, 02:31 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