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.

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]

Want to read more?

Check out the full article on the original site

View original article

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