+ Reply to Thread
Results 1 to 4 of 4

Vlookup + Hyperlink + IFERROR

  1. #1
    Registered User
    Join Date
    11-29-2017
    Location
    Delaware
    MS-Off Ver
    2013
    Posts
    13

    Post Vlookup + Hyperlink + IFERROR

    As of a day or two ago, I've never used excel but my company needed a program to keep track of who enters and exits the building. Our ID badges have barcodes that store our ID # and so far I've made a spreadsheet that displays our Name, ID and position when the barcode is scanned, however I also want to display a image of each employee. I haven't been able to figure out how to make our picture appear in a cell next to our information but I have managed to get it to display a link to the image on our network drive. The problem is, when no ID # is loaded in the first cell, the link column is littered with #N/A. I'm trying to add IFERROR into the formula but it's not working. Here is the formula.

    =HYPERLINK(VLOOKUP(B7,Information!$A$1:$F$101,6,0),"Click for Photo")

    Can someone please assist in keeping that code from displaying #N/A before the ID # is scanned in?

    If anybody know's how to add pictures so they would appear in a cell once the ID is scanned, that would even better. Thanks.

    I'll attach the spreadsheet if it helps.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: Vlookup + Hyperlink + IFERROR

    You could do it this way:

    =IF(B7="","",HYPERLINK(VLOOKUP(B7,Information!$A$1:$F$99,6,0),"Click for Photo"))

    or like this:

    =IFERROR(HYPERLINK(VLOOKUP(B7,Information!$A$1:$F$99,6,0),"Click for Photo"),"")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-29-2017
    Location
    Delaware
    MS-Off Ver
    2013
    Posts
    13

    Re: Vlookup + Hyperlink + IFERROR

    Wow, thanks.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: Vlookup + Hyperlink + IFERROR

    You're welcome - glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. iferror with vlookup
    By cape in forum Excel General
    Replies: 4
    Last Post: 01-11-2015, 01:19 PM
  2. [SOLVED] IFERROR w/vlookup in VBA
    By cp41 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-03-2013, 03:59 PM
  3. [SOLVED] Using Iferror(vlookup..) in VBA
    By sn79 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2013, 02:40 PM
  4. [SOLVED] Iferror vlookup
    By chris.slater in forum Excel General
    Replies: 2
    Last Post: 04-20-2012, 03:37 AM
  5. Vlookup with iferror in vba
    By arlu1201 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2012, 11:48 AM
  6. IFERROR With VLOOKUP
    By Badvgood in forum Excel General
    Replies: 2
    Last Post: 05-11-2011, 09:27 AM
  7. Excel 2007 : Vlookup and iferror help soon...
    By MRKINGSTON1976 in forum Excel General
    Replies: 1
    Last Post: 10-28-2009, 03:21 PM

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