Results 1 to 2 of 2

Thread: Excel file checker

  1. #1

    Excel file checker



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi,

    Does anyone know if there is a formula that will create a hyperlink in excel, only if a file exists?

    I am working on a business inventory list where the products are listed in column A and i have a hyperlink in column B so that I can easily see a picture of the item as needed. However, as new items come in and the product list changes I am having a difficult time keeping track of what I have or don't have a picture of. The current hyperlink formula i am using =HYPERLINK(....\11217-00068.jpg,"Picture") shows picture whether or not there is actually a picture. I would love for it to say "No Pic" if there is no picture. All the pictures are located in one big folder on my computer

    Any help is greatly appreciated!

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,225
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Hi there,

    You need to resort to VBA to do this, but yes, I have a Use Defined Function for that. You can find it here: http://www.excelguru.ca/content.php?...Folder)-Exists

    Drop that code in a standard VBA module, then you can call it from the worksheet as =IF(FileFolderExists(A1),"","No Pic!)

    Let us know if you need help implementing it at all.
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training) or with my book M is for Data Monkey!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •