Is INDEX MATCH CONCATENATE Possible?

Alex O

Active Member
Joined
Mar 16, 2009
Messages
345
Office Version
  1. 365
Platform
  1. Windows
I'm using the array below to deliver the most recent comment from a list of accounts. However, many of the entries have multiple rows that correspond to my returned value. Is it possible to edit my array so all cells that match the most recent date are combined (CONCATENATE)?

=INDEX(Comments!$F$3:$F$5783,MATCH(1,MATCH(Comments!$A$3:$A$5783,'Report-Most Recent Comments'!D227,0),1))


ABCDEFG
5517593612368866262/10/201721:32:53SHW"01/31/17 left vm JG.1/9/17 Collection email sent by
5518593612368866272/10/201721:32:53SHWGJ
12/19/16 email sent to customer- JP
5519593612368866282/10/201721:32:53SHW12/14/16 sent invoice to
5520593612368866292/10/201721:32:53SHWJG.12/13/16 requested invoice JG."
5521593612369250622/14/201722:36:53SABCALLED #7500 - RECORDING DIAL 204 FOR ACCTG - VM LM
5522593612369250662/14/201722:37:01SABAutomatic Debtor status change from NEW to 168.
5523593612369468592/16/201720:40:55SABPER CLT (A CASTILLO) - PER PMT REPORT - PAID
5524593612369468602/16/201720:40:55SAB$3,000.00 2/6/17
5525593612369468612/16/201720:40:55SAB 383471 GREATER FT CHAMBER
5526593612369468622/16/201720:40:55SABP1453081 Check 1003 2/6/2017 3,000.00
5527593612369468632/16/201720:40:55SAB0.00 RMI1
5528593612369468692/16/201720:41:22SAB(593612-1)Principal Adjustment: MADE PMT $3,000.00 -
5529593612369468702/16/201720:41:22SABADJ DOWN TO READ $190.34

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 96px;"><col style="width: 80px;"><col style="width: 90px;"><col style="width: 87px;"><col style="width: 78px;"><col style="width: 461px;"><col style="width: 75px;"></colgroup><tbody>
</tbody>
 
hmm I must be doing something wrong, still not working.

This is the range (could be longer, just kept the sample small...
F​
G​
H​
1​
FG593612
2​
aa
3​
bb
4​
cc
5​
dd
6​
ee
7​
ff
8​
gg
9​
hhhh
10​
iihh, ii
11​
jjhh, ii, jj
12​
kkhh, ii, jj, kk
13​
llhh, ii, jj, kk, ll
14​
mmhh, ii, jj, kk, ll, mm
15​
nnhh, ii, jj, kk, ll, mm, nn
16​
17​
18​
19​
20​
F contains the data
H pulls out based on a code and a date (doesn't really matter what they are, it is only working on the results)...
H2=IF(AND(A2=$H$1,C2=$I$1),H1&IF(H1="","",", ")&F2,"")
copied down

So, based on that formula, there will be a bunch of "" at the start, then some "data", then potentially some more ""
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
The data is much longer (about 5k rows - 250+ clients). I'm still playing with Pete's suggestion. I can send the actual sheet if you think it would help?
 
Upvote 0
No, My suggestion from post #8 will work on that range, you just need to adjust the ranges as needed...
Alex, instead of the 2 helpers (1 with an ARRAY), change to this, still using my sample above...
H2=IF(AND(A2=$H$1,C2=$I$1),H1&IF(H1="","",", ")&F2,"")
regular formula, copied down

The for the answer you want...
=INDEX(H:H,LOOKUP(2,1/(H1:H10000<>""),ROW(H1:H10000)))
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,013
Members
449,204
Latest member
tungnmqn90

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