How to "get" a worksheet name based on a common value found in two different worksheets

jael36

New Member
Joined
Jan 19, 2016
Messages
6
Hi Everyone,

I know a little about the INDIRECT function and am using it to pull data and it works like a charm!

Context:
  • There's a "Summary" worksheet pulling data from "Detailed Info" worksheets in the same workbook using the INDIRECT function
  • The "Summary" worksheet has an "ID" column (Column A).
  • Each "Detailed Info" worksheet is named in this pattern: [StreetName-StreetType-City]
  • Each "Detailed Info" worksheet has a field with an ID that is found in the "Summary" worksheet "ID" Column A
  • Each "Detailed Info" worksheet has its worksheet name in cell A1 using this formula:
    • =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

I hope that makes sense so far.

Question:
Is it possible, without a macro, to get the worksheet name based on matching ID values from the "Summary" and "Detailed Info" worksheets?

What I am trying to do is cross-reference the Summary and Detailed worksheets using IDs and supplementing the current use of the INDIRECT implementation already in place.

So, my INDIRECT formula goes from looking like this:

=INDIRECT("'"&$H4&"'!"&"e27")

to looking something like this:

=INDIRECT([this is where the dynamic ID based worksheet reference would be]!"&"a1")

Man.. re-reading this.. sorry if its confusing..

John
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Sounds like you want to get a list of WS names? (could be wrong, Im a bit tired lol)
 
Upvote 0
Hi @FDibbins,

I thought about going down that road, but thought it might be overkill.


I've attached the link to my google drive folder where you can download the example file... i tried the Mr.ExcelHtml generator... without success.
https://drive.google.com/open?id=0B_ypyEjzfat2ZUNpcVJydWlWM3c


I'd like to enter an "Evaluation ID" not in use in the SummarySheet and enter it in the DetailSheet3.
This would then take the worksheet name "DetailSheet3" and place it in the SummarySheet.

If you type "3" into DetailSheet3!B4 "Evaluation ID" (in yellow), you'll see it populates the "URL" in cell DetailSheet3!B5

What I'd like to happen now is that in the SummarySheet!C4, the worksheet name "DetailSheet3" populates.

Is this possible?
 
Upvote 0
I am at work atm and am not allowed to access file hosting sites :(

Its not a big deal to generate a list of sheet names.
1st create a range name (I called mine Sheetnanes
Then put this in the Refers To box: =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")

To get a list of sheet names, put this in a cell and copy down (started in A2)...
=IFERROR(INDEX(Sheetnames,ROWS($A$2:A2)),"")

If you want to be able to click the cell and go to that worksheet, change that formula to this...
=IFERROR(HYPERLINK("#"&"'"&INDEX(Sheetnames,ROWS($A$2:A2))&"'!A1",INDEX(Sheetnames,ROWS($A$2:A2))),"")
 
Upvote 0
Hi,
I implemented your suggestion and it works great to get the clickable list of sheet names. Thanks!
What I've noticed as a behavior is if I change the sheet name or move the sheet order, the list does not auto-recalculate (the option to do so is "on").

Although a GREAT solution to get a list of sheet names, I was really hoping to do this via Index number referencing via the column/field "Eval Id".

Are you able to get the file from the file share?
I've tried the Mr.Excel html generator again so you can reference my previous post explanations a little easier.:p


Excel 2012
ABC
1Eval. IDURLWorksheet
21www.google.comDetailSheet1
32www.yahoo.comDetailSheet2
43www.gmail.com
54www.hotmail.com
65www.aol.com
76www.cnn.com
87www.fox.com
98www.cbc.ca
109www.ctv.ca
1110www.tinyurl.com

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
SummarySheet




Excel 2012
AB
1DetailSheet1
2
3
4Evaluation ID1
5URLwww.google.com

<tbody>
</tbody>
DetailSheet1







Excel 2012
AB
1DetailSheet2
2
3
4Evaluation ID2
5URLwww.yahoo.com

<tbody>
</tbody>
DetailSheet2




Excel 2012
AB
1DetailSheet3
2
3
4Evaluation ID
5URL#N/A

<tbody>
</tbody>
DetailSheet3



(hope all that worked)
 
Upvote 0
Yes, 1 of the shortcomings of that method is that it does not auto-update. A quick work-around is to F2 Enter on any of the formulas there
 
Upvote 0
Yes, and ctrl+shift+alth+f9 also works as a quick google search said!

I dont mean to be a bother, but is the original request simply not possible in excel?

or simply too complicated without VBA?
If so, then how would I implement VBA if that is the only method that is feasible?

Regards,
John
 
Upvote 0

Forum statistics

Threads
1,215,883
Messages
6,127,544
Members
449,385
Latest member
KMGLarson

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