How to search and concatenate across multiple sheets

jonjonjonjon

New Member
Joined
Apr 26, 2017
Messages
12
Hi guys,

I'm looking to search down specific columns which are separated equally within a sheet. Once the data is found in that column, i would like to return the column title (and concatenate the titles if there is data in multiple columns).

The search needs to be done across multiple sheets. The structure (location of each column) in each sheet is the same.

Eg:

Problem:

[TABLE="width: 491"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Car[/TD]
[TD](3 columns in between)[/TD]
[TD]Bike[/TD]
[TD](3 columns in between)[/TD]
[TD]Boat[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD][/TD]
[TD]Red[/TD]
[TD][/TD]
[TD]Orange [/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD][/TD]
[TD]Purple [/TD]
[TD][/TD]
[TD]White[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD][/TD]
[TD]Blue[/TD]
[TD][/TD]
[TD]Black[/TD]
[/TR]
</tbody>[/TABLE]


Solution: (I have a list of Col A so just need to return Col B)
Col A Col B
[TABLE="width: 214"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Red[/TD]
[TD]Car, Bike[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]Car[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]Car, Bike,[/TD]
[/TR]
[TR]
[TD]Purple[/TD]
[TD]Bike[/TD]
[/TR]
[TR]
[TD]Orange [/TD]
[TD]Boat[/TD]
[/TR]
[TR]
[TD]White[/TD]
[TD]Boat[/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]Boat [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
jonjonjonjon,

We can not tell where your raw data is located, sheet name(s), cells, cell formatting, cell formulae, rows, columns, and, we can not tell where the results should be, sheet name, cells, cell formatting, cell formulae, rows, columns.


We would like more information. Please see the Forum Use Guidelines in the following link:

http://www.mrexcel.com/forum/board-announcements/127080-guidelines-forum-use.html


See reply #2 at the next link, if you want to show small screenshots, of the raw data worksheets, and, what the results (manually formatted by you), should look like.

http://www.mrexcel.com/forum/about-board/508133-attachments.html#post2507729
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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