We help IT Professionals succeed at work.
Get Started

Excel function to create string from unique values in a range of cells

Rich
Rich asked
on
177 Views
Last Modified: 2015-02-25
Hi,
Trying to figure out how to create a text value in a cell that consists of a pipe (|) separated list of unique values from a range of cells in column. I have a cell in one sheet that I would like to look like this:
apple|banana|orange

from a range of cells that looks like this:
apple
banana
banana
apple
orange
apple
banana

I need a function or macro that takes the start and end cell of a range and returns a single string value with the pipe separator. Any ideas or pointers to examples would be great!
Thanks,
Rich
Comment
Watch Question
Analyst Assistant
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE