Cell Hyperlink by Partial file name

Kiloelectronvolt

Board Regular
Joined
Oct 5, 2015
Messages
81
Office Version
  1. 365
Platform
  1. Windows
Hi All!

This is hard for me to explain, but is there a way to hyperlink a cell to a specific file only using a prefix of the filename?

All of our files start with PO 100-, PO 101-, PO 102- but then there's random employee descriptions typed after the prefix.

If the PO # is listed in B2, Can you hyper link to C:/Filepath/&B2 and have it pull the file with that prefix in it

Example:
So, if it's C:/Filepath/PO 101-Staples for office.pdf Can excel hyperlink to the file based of the "C:/Filepath/PO 101-"
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Sure can. Just use function HYPERLINK and concatenate the contents of other cells that contain the folder path and the file names. Like this:

MrExcel posts18.xlsx
ABC
5folder location
6D:\OneDrive\Documents\X L\
7
8files in folderhyperlinkhyperlink with friendly name
9dates1.xlsxD:\OneDrive\Documents\X L\dates1.xlsxdates1.xlsx
10dates2.xlsxD:\OneDrive\Documents\X L\dates2.xlsxdates2.xlsx
11dates3.xlsxD:\OneDrive\Documents\X L\dates3.xlsxdates3.xlsx
Sheet41
Cell Formulas
RangeFormula
B9:B11B9=HYPERLINK($A$6&A9)
C9:C11C9=HYPERLINK($A$6&A9,A9)
 
Upvote 0
EDIT- I realize my question is confusing. sorry about that. It's about the file names being somewhat out of pattern in our file path.

PO 101-Staples for office.pdf
PO 102-Tires for truck.pdf
PO 103-Cleaning Supplies for conference room.pdf

I was wondering if you can have excel hyperlink grab the file by just the beginning prefix because the descriptions after the PO # are wild.
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,183
Members
449,071
Latest member
cdnMech

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