Find value in workbook and return tab name

dollarbill13

New Member
Joined
Aug 10, 2005
Messages
10
I have a workbook with several tabs. The last of them "Totals" contains a list of all the values in the first row of each other tab ("Tab 1-10"). I would like to have the last tab find each value in the work book and then return the name of the tab that the item is on...

For example

Tab 1 contains:

aaa
bbb
ccc

Tab 2:
ddd
eee
fff

Tab 3:

ggg
hhh
iii

I would like "Totals" to look like this:

aaa --- Tab 1
bbb --- Tab 1
ccc --- Tab 1
ddd --- Tab 2
eee --- Tab 2
fff --- Tab 2
ggg --- Tab 3
hhh --- Tab 3
iii --- Tab 3

Is this possible?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Assumptions:

A2:A100 on each sheet contains the data

A2 downwards on the summary sheet contains aaa, bbb, ccc, etc.

D2:D11 contains the sheet names

Formula:

On the summary sheet, B2, copied down:

=INDEX($D$2:$D$11,MATCH(TRUE,COUNTIF(INDIRECT("'"&$D$2:$D$11&"'!A2:A100"),A2)>0,0))

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

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