Need help in solving concatenating text

Joined
Aug 28, 2014
Messages
6
For example, in workbook one, I have a column with values displaying in cells such as "22, 33, 44, etc..." I have the second column in the same workbook displaying values "Apples, Oranges, Lemons, etc.."

My goal is to only display the values only if the search in the second column is "Apples", and then take those results of multiple "Apples" matches of Column 1 values and display them in the second workbook i.e. "22 and 44" in one cell.

How do I do that?

Example Workbook 1:

Column 1 COlumn 2
---------- ----------
22 Apples
33 Oranges
44 Apples
55 Lemons

Second Workbook output in one cell for "Apple" matches:

Apple matches are: 22 and 44

How do I do that? Thanks!!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi, not sure if this is what you need:
Given the following

Excel 2010
AB
1ValName
222Apples
333Oranges
444Apples
555Lemons
666Oranges
777Lemons
888Apples
Excel Advanced Learner_1



Excel 2010
AB
1NameApples
2Vals22
344
488
Excel Advanced Learner_2

Formula in B2 is =IFERROR(INDEX('Excel Advanced Learner_1'!A$2:A$15,SMALL(IF('Excel Advanced Learner_1'!B$2:B$15=$B$1,ROW('Excel Advanced Learner_1'!B$2:B$15)-ROW('Excel Advanced Learner_1'!B$2)+1),ROWS($B$2:B2))),"") Ctrl + Shift + Enter not just Enter on a PC or Command + Return on a MAC.


Would that be what you wanted?
 
Upvote 0

Forum statistics

Threads
1,214,631
Messages
6,120,640
Members
448,974
Latest member
DumbFinanceBro

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