Get Address of Cell where Match was found

McCITech

New Member
Joined
Dec 27, 2016
Messages
39
Good afternoon!

I'm attempting to create a formula that will tell me the location where specific data was found.

The issue: There are 52 worksheets, and data can be found on more than 1 sheet.

So far, I have been successful in Counting the number of times the specific data was found using
Code:
=SUMPRODUCT(COUNTIF(INDIRECT("'" & Sheets & "'!B8:F8"),"Vacation"))

Where "Sheets" is a named range containing the names for all 52 tabs.

What I can't figure out is how to get the Address for each instance where the data is found.
I have tried using INDEX, ADDRESS, INDIRECT & MATCH in various combinations.

If anyone can help me out with this that would be great!
The end result of this formula would be (hopefully): Worksheet name(s) & Cell reference (A1) if that's even possible.

If more information is needed, please let me know and I will gladly supply it!

Thank you in advance for your assistance.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Control+shift+enter, not just enter, say, in A1 of Summary...

=IFERROR(INDEX(Sheets,SMALL(IF(ISNUMBER(1/COUNTIFS(INDIRECT("'"&Sheets&"'!B8:F8"),"vacation")),ROW(INDIRECT("1:"&COUNTIFS(Sheets,"?*")))),COLUMNS($A:A))),"")

This deliver the names of the sheets where "vaction" occurs at least once.

In A2 control+shift+enter, not just enter, and copy across:

=CELL("address",INDEX(INDIRECT("'"&A$1&"'!B8:F8"),MATCH("vacation",INDIRECT("'"&A$1&"'!B8:F8"),0)))
 
Upvote 0
Solution
Aladin,

This is great thank you!

I evaluated this formula and I see that it finds all the sheets that have 'vacation' at least once, but the formula only Displays the 1st instance.

Is there any way to expand this formula to output a list of sheets?

Thanks again for helping me with this.
 
Upvote 0
Aladin,

This is great thank you!

I evaluated this formula and I see that it finds all the sheets that have 'vacation' at least once, but the formula only Displays the 1st instance.

Is there any way to expand this formula to output a list of sheets?

Thanks again for helping me with this.

You need to copy the formula across from A1 on rightwise. The same way for the formula in A2...
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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