Excel formula for Web Address

EHP

New Member
Joined
Jul 12, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi

I have a cell within a spreadsheet, that references a different spreadsheet (see bottom for examples)
Is there a way to create a formula so that I don't have to either enter each address manually or copy & paste. I tend to find errors with these two methods. Due to security restrictions I cannot use Macros.

From the example below, I am using two spreadsheets, accessing different cells within different tabs.

Cell A1 : ='https://sharepoint.location.com/folder1/subfolder/Finance/[Filename.xlsx]Sheet1'!$D$7
Cell B1 : ='https://sharepoint.location.com/folder1/subfolder/Finance/[Filename.xlsx]Sheet1'!$D$9
Cell C1 : ='https://sharepoint.location.com/folder1/subfolder/Finance/[Filename.xlsx]Sheet2'!$J$107
Cell D1 : ='https://sharepoint.location.com/folder1/subfolder/Finance/[Filename.xlsx]Sheet2'!$A$88

Cell A2 : ='https://sharepoint.location.com/folder1/subfolder/Finance/[Another_Filename.xlsx]Sheet1'!$D$7
Cell B2 : ='https://sharepoint.location.com/folder1/subfolder/Finance/[Another_Filename.xlsx]Sheet1'!$D$9
Cell C2 : ='https://sharepoint.location.com/folder1/subfolder/Finance/[Another_Filename.xlsx]Sheet2'!$J$107
Cell D2 : ='https://sharepoint.location.com/folder1/subfolder/Finance/[Another_Filename.xlsx]Sheet2'!$A$88

Hopefully this makes sense.

EHP
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I presume there are more cells to fill in that you havent mentioned?

There's no pattern to the cell references, so I doubt it.
They start off well, D7, D9...
so each cell reference would be Dn where n is 7+(column number - 1) * 2...
but then they jump to J107 and A88 so that formula wouldnt work.

You could create a list of the cell references and use INDEX() with a column number to pull out the correct reference, but this may not be feasible if you have a lot of cells
 
  • Like
Reactions: EHP
Upvote 0

Forum statistics

Threads
1,215,759
Messages
6,126,732
Members
449,333
Latest member
Adiadidas

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