lookup/ concatenate/ filter combo for mailing list

Jaybeerex

New Member
Joined
Aug 11, 2021
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I've been a lurker on this forum for so long and its truly amazing, but I've hit a bit of a wall on this one in excel i'm guessing due to me not being too sure what to look for!

I've a data set of customers along with identifiers, email addresses, reference numbers and a cohort group for a mail send based on various factors

many of these customers email addresses exist multiple times across the same cohort due to having different reference numbers as they have more than 1 service registered under the same email address.

What i wanted ideally is a comma separated output which i can do with concatenate to match 2 reference numbers to 1 email address, but due to the data set 7k+ lines 2.5k unique email addresses, its how best to use a function to get the correct output on a bulk basis?

This way a single email address can reference multiple lines in a single cohort specific email instead of sending multiple emails for each service registered....
 

Attachments

  • excel issue.JPG
    excel issue.JPG
    78.2 KB · Views: 6

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Well that is certainly a far simpler way of sorting it that I've been trying to!

That's perfect for building the mailing list and if i need other line elements lost when it users the helper column and unaligns with the original data i can just vlookup back from the email address for contact name etc. thank you!

the only thing i seem to be losing is the leading zero when it does the join into a new column, i need this for telephone number formatting to look correct, i've tried text formatting etc but i keep losing the leading 0 when it moves, any thoughts?
 
Upvote 0
Use the 'text' function. I noticed that one of your sample data is 10 digits instead of 11. This is set up for 11 digits. If you have variable digit-length, I'm wondering how you format your second column - but otherwise you might need to store the numbers as text if they are variable length with a leading single-quote. However, since they are phone numbers, I suspect that that shorter number was an error of some kind.

Mr Excel Playground 3.xlsm
ABCDE
1EmailServiceemailservice
2a@b.com00000000011a@b.com00000000011, 00000000022
3a@b.com00000000022c@b.com00000000033
4c@b.com00000000033d@e.com00000000044, 00000000055, 00000000066
5d@e.com00000000044
6d@e.com00000000055
7d@e.com00000000066
Sheet10
Cell Formulas
RangeFormula
D2:D4D2=UNIQUE(A2:A7)
E2:E4E2=TEXTJOIN(", ",TRUE,IF($A$2:$A$7=D2,TEXT($B$2:$B$7,"00000000000"),""))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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