2 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Combine data from multiple columns into one, separated by commas but without duplicates.

Our take

If you're managing a large email audience list and struggling with duplicate entries in your "Department" and "Major" columns, there's a way to streamline your data. By consolidating these fields into a single column without duplicates, you can enhance clarity and organization. The goal is to create a formula that merges entries while intelligently avoiding repetition, ensuring that each department or major is listed only once and separated by commas.

Hello! I currently have a very messy email audience list of nearly 14,000 that somehow has multiple duplicate fields. Basically, I need to consolidate the "Department" and "Major" columns into 1 of each. I've been toying with this issue for a while with some IF/THEN functions, but it gets tricky (for me, at least) when there are multiple departments/majors. I don't want duplicates in the Department/Major columns, but I do want non-duplicates pulled from the subsequent fields to be separated by commas. For example, in the 2nd row shown in the SS I would want the department cell to say "Library Studies, Interior Design" (rather than "Library Studies, Library Studies, Interior Design).

I essentially want Excel to do the following: if I is not blank and J+K are blank, don't mess with it. If I is not blank and does not contain the text in J+K, add the text from J/K to I, separated by a comma. If I is blank, fill with text from J (and from K, separated by a comma, if K does not contain the text in J). If I and J are blank, fill with column K.

Thanks in advance to anyone who can help out with this!

https://preview.redd.it/0duvqkbav8og1.png?width=1804&format=png&auto=webp&s=9fdfe7bad846c94f04d5b59bc9c4970fe2addee5

submitted by /u/the_black_mamba3
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles

Tagged with

#financial modeling with spreadsheets#Excel alternatives for data analysis#generative AI for data analysis#natural language processing for spreadsheets#Excel compatibility#Excel alternatives#rows.com#row zero#big data management in spreadsheets#conversational data analysis#real-time data collaboration#intelligent data visualization#data visualization tools#enterprise data management#big data performance#data analysis tools#data cleaning solutions#Excel#duplicate fields#Department