How to Return into Single Cell the Text from Multiple Columns Same Row.

blakeb

New Member
Joined
May 9, 2018
Messages
1
Hello,
This is my first post so please excuse me if I do something wrong.
I have a workbook that contains approximately 260 sheets, uniquely named.
Each sheet contains a row, say row 22 that is labeled in column A "Review Comments:".
Column C through Column Z "MAY" contain text comments i.e., some columns blank, some contain text.
I have an INDEX sheet that contains each of the worksheet names in column A.
In Column B, I want to return the text from Row 22, columns C through Z of each sheet. The name of each sheet is in column A of the INDEX sheet.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]MULTIPLE SHEETS[/TD]
[TD]REGION_1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[/TR]
[TR]
[TD]Hours[/TD]
[TD]1500[/TD]
[TD]1625[/TD]
[TD]800[/TD]
[/TR]
[TR]
[TD]Headcount[/TD]
[TD][/TD]
[TD]11[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Review Comments:[/TD]
[TD]02/08/2018 Contact Provider to find out why no Headcount entered.[/TD]
[TD][/TD]
[TD]04/09/2018 Check why drop in Hours[/TD]
[/TR]
</tbody>[/TABLE]














[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]INDEX WORKSHEET[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]REGION_1[/TD]
[TD]02/08/2018 Contact Provider to find out why no Headcount entered. 04/09/2015 Check why a drop in Hours[/TD]
[/TR]
[TR]
[TD]REGION_2[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]










Right now on the INDEX sheet, I am using a formula in columns C through Z: (=IF(INDIRECT("'"&$A3&"'!"&C$1&"22")=0,"",INDIRECT("'"&$A3&"'!"&C$1&"22"))
to return the data from each sheet.

$A3 = Region Name on INDEX sheet
C$1 = Region Name on Region worksheet
22 = Row number where Review Comments if found.
If no comments found, change the 0 that is returned, into a blank.

Then in column B, I am using a formula to concatenate the columns:
=SUBSTITUTE(CONCATENATE(C4," ",D4," ",E4," ",F4," ",G4," ",H4," ",I4," ",J4," ",K4," ",L4," ",M4," ",N4," ",O4," ",P4," ",Q4," ",R4," ",S4," ",T4," ",U4," ",V4," ",W4," ",X4," ",Y4," ",Z4," ",AA4),"0","")

In column B, Concatenate all the comments that are returned for the specified Region adding a space in between each one.

Is there a better way to do this?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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