Hyperlink to unknown file types (Pictures)

MarkCBB

Active Member
Joined
Apr 12, 2010
Messages
497
Hi there,

I am using the following formula to Hyperlink to a picture:
Code:
=HYPERLINK($A$1&"\"&B1&".PNG",C1)

However not all; the pictures are the same file type, I tried the following formula but it didn't work:

Code:
=HYPERLINK($A$1&"\"&B1&".*",C1)

A1 =
Code:
C:\Users\user\Desktop\TEST
B1 = "Pic1"
C1 = Friendly name

is there a way to make this formula more robust to include all picture file types?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Is there a way to list the different file types? i.e. PNG and JPEG in the formula?
 
Upvote 0
But there is no reason why your cell B1 could not contain the file name including the extension. If this is impossible for some reason as long as you know which files are which type you have you could make a lookup table of filename and extension somewhere else and include a lookup reference to that in your hyperlink.
 
Upvote 0
The challenge is that I will not know the file type, and there are 1500 pictures.

What I have done is created 3 different columns with Hyper-links, to different file types, so one of them will work.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top