Concatenate by criteria

imported_unknown

Active Member
Joined
Jan 13, 2002
Messages
424
2002_09_30 - Simon.xls
ABCD
1ProjectsNotesSummaryReport
2Project1BuiltairplaneProject1Builtairplance;Buildboat
3Project2DrankbeerProject2Drankbeer;Wentbowling
4Project1Buildboat
5Project2Wentbowling
Sheet1

Hi All,

I'd like to know how to concatenate cells that meet a specific criteria. In the example above, I want to create report that shows the notes for each project.

Thanks for any tips,

Simon
This message was edited by sitary on 2002-10-04 15:28
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
In D2 array-enter & copy down:

=SUBSTITUTE(MCONCAT(IF($A$2:$A$5=C2,"; "&$B$2:$B$5,"")),"; ","",1)

To array-enter a formula, you need to hit control+shift+enter at the same time, not just enter.

Moreover, MCONCAT is part of the morefunc.xll add-in, which is downloadable from:

http://longre.free.fr/english/index.html

See...
aaConditionalConcat Sitary.xls
ABCD
1ProjectsNotesSummaryReport
2Project1BuiltairplaneProject1Builtairplane;Buildboat
3Project2DrankbeerProject2Drankbeer;Wentbowling
4Project1Buildboat
5Project2Wentbowling
Sheet1
 

Forum statistics

Threads
1,143,737
Messages
5,720,566
Members
422,291
Latest member
Deveshk

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
Top