Let's see if either of these styles will get what you're looking for. I am a big fan of the INDEX(MATCH()) combo to find a value, but return back to me an associated value to that found value like you're needing (find the page number, but send back the link).
I have Sheet1 set up like you did:
And then I have two styles set up on Sheet2. Columns A & B would be what I suspect you will eventually move to, and columns D & E are what your sample was set up like.
Style A:
=INDEX(Sheet1!$B$1:$B$5,MATCH($A2,Sheet1!$A$1:$A$5,0))
You could copy this formula down the column and it will reference the static ranges from Sheet1, but look up the value from column A for each different row you copy the formula to.
Style B:
=INDEX(Sheet1!B1:B5,MATCH(E1,Sheet1!A1:A5,0))
This style will simply grab the link for a single value that you enter in cell E1.
Reference info here - http://www.contextures.com/xlFunctions03.html
EDIT: From comments; and I hope I understand the follow-up question correctly, but you can use the result of one of the Sheet2 formulas to concatenate stuff to the URL result, like the following example of adding "/index.htm" to one of them.
Best Answer
This sounds like a job for a PivotTable but you're going to need row headers.
First, setup a dynamic named range that will capture your list in
A:C
and grow along with it. To do this, click on theName Manager
in theFormulas
ribbon. ClickNew
, give it some name (I called minerngPivotData
) and use this for its "Refers to:" formula:Next, add a PivotTable by clicking in cell
E1
and then clickingPivot Table
on theInsert
riboon.When it asks you the table or range to use, type the name you chose for the dynamic named range.
Right-click somewhere in the PivotTable and click on "PivotTable Options...". In the
Display
tab, check "Classic PivotTable layout". This will help give the look you want.Drag all three headers into the
Row Labels
section of the PivotTable pane and then filter theYes/No
field for just those that areNo
.Here's the final product. Anytime you make changes, you can just right-click anywhere in the PivotTable and click
Refresh
.