INDEX MATCH with a COUNTIF for duplicates & CONCAT Function?

pvtjoker77

New Member
Joined
Aug 31, 2015
Messages
13
Office Version
  1. 2016
Platform
  1. Windows


R
S
T
51
HNL@internet.com
HNL
HNL@internet.com
52
SJC
53
OGG@internet.com
OGG
OGG@internet.com
54
HNL@internet.com
HNL

<tbody>
</tbody>










I get the above results using the following formulas in U51:U56 And it removes the duplicate but how can I combine the non duplicate results from U51:U54 to have them them to look like
HNL@internet.com;OGG@internet.com? I know I have to use CONCAT function somehow.

End result is I would like to get them combined in any cell since I use it in a VBA that gets the email addresses from that cell to send and email



U51 =R51
U52 {=INDEX($R$51:$R$54, MATCH(0, COUNTIF($U$51:U51, $R$51:$R$54), 0))}
U53 {=INDEX($R$51:$R$54, MATCH(0, COUNTIF($U$51:U52, $R$51:$R$54), 0))}
U54 {=INDEX($R$51:$R$54, MATCH(0, COUNTIF($U$51:U53, $R$51:$R$54), 0))}

<tbody>
</tbody>
 
Last edited:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

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