Distinct Values

BILLYBOB1972

New Member
Joined
Jan 7, 2016
Messages
24
Office Version
  1. 2016
Platform
  1. Windows
Is there a way to display the distinct values from a column in a row using a formula

AAAA
AAAA
BBBB
AAAA
CCCC
AAAA
DDDD
CCCC

From this list the values would appear in a row like below

AAAABBBBCCCCDDDD

I'm using Excel 2016 and tried to find the answer but can only get the distinct values in another column format. I could remove duplicates and transpose the paste values but trying not to have to go down this route.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Fluff.xlsm
ABCDEFG
1
2AAAAAAAABBBBCCCCDDDD 
3AAAA
4BBBB
5AAAA
6CCCC
7AAAA
8DDDD
9CCCC
10
Report
Cell Formulas
RangeFormula
C2:G2C2=IFNA(INDEX($A$2:$A$9,MATCH(0,COUNTIFS($B2:B2,$A$2:$A$9),0)),"")


This may need to be confirmed with Ctrl Shift Enter.
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,479
Messages
6,125,041
Members
449,206
Latest member
Healthydogs

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