Unique in column

mduntley

Board Regular
Joined
May 23, 2015
Messages
134
Office Version
  1. 365
Platform
  1. Windows
I am trying to find a solution to my problem. I just got Excel 365 at work and trying to use the unique formula. I found a post to solve this, but I want to know what I need to do to add more columns in.

Unique Formula for 2 columns


This is my table. I was putting into notepad to remove the " so I will have it line by line.


LPR.xlsx
ABCDEFGHIJKLMNOPQRSTUVW
1Field 1Field 2Field 3Field 4Field 5Field 6Field 7Field 8Field 9Field 10Field 11Field 12Field 13Field 14Field 15Field 16Field 17Field 18Field 19Field 20Field 21Field 22LPR
2100100210015 1640100100210015 1258100100210015 1640 100100210015 1258
3
4
5Paste From notepad
6100100210015 1640
7100100210015 1258
8
9Using the unique formula
10Field 1Field 2Field 3Field 4Field 5Field 6Field 7Field 8Field 9Field 10Field 11Field 12Field 13Field 14Field 15Field 16Field 17Field 18Field 19Field 20Field 21Field 22
11100100210015 1640100100210015 1258
12
13What I want
14100100210015 1640
15100100210015 1258
Sheet3
Cell Formulas
RangeFormula
W2W2=SUBSTITUTE(SUBSTITUTE(TRIM(SUBSTITUTE(A2," ","|")&" "&SUBSTITUTE(B2," ","|")&" "&SUBSTITUTE(C2," ","|")&" "&SUBSTITUTE(D2," ","|")&" "&SUBSTITUTE(E2," ","|")&" "&SUBSTITUTE(F2," ","|")&" "&SUBSTITUTE(G2," ","|")&" "&SUBSTITUTE(H2," ","|")&" "&SUBSTITUTE(I2," ","|")&" "&SUBSTITUTE(J2," ","|")&" "&SUBSTITUTE(K2," ","|")&" "&SUBSTITUTE(L2," ","|")&" "&SUBSTITUTE(M2," ","|")&" "&SUBSTITUTE(N2," ","|")&" "&SUBSTITUTE(O2," ","|")&" "&SUBSTITUTE(P2," ","|")&" "&SUBSTITUTE(Q2," ","|")&" "&SUBSTITUTE(R2," ","|")&" "&SUBSTITUTE(S2," ","|")&" "&SUBSTITUTE(T2," ","|")&" "&SUBSTITUTE(U2," ","|")&" "&SUBSTITUTE(V2," ","|"))," ",CHAR(10)),"|"," ")
A10:V11A10=UNIQUE(A1:V2)
Dynamic array formulas.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
It's not entirely clear to me, what you are trying to do, as both parts of your sheet seem to be the same.
 
Upvote 0
Row 1 and 2 are is the real sheet.

Row 9 and 10 are the one when i try to use the unique formula

Row 13-15 is what i want.
 
Last edited:
Upvote 0
Ok, how about
Excel Formula:
=TRANSPOSE(UNIQUE(FILTER(A2:V2, A2:V2<>""),1))
 
Upvote 0
You mean the entire columns?
 
Upvote 0
In that case try
Excel Formula:
=LET(Rng,A2:V1000,Rws,ROWS(Rng),Seq,SEQUENCE(Rws*COLUMNS(Rng),,0),Ary,INDEX(Rng,MOD(Seq,Rws)+1,INT(Seq/Rws)+1),UNIQUE(FILTER(Ary,Ary<>"")))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,824
Messages
6,127,092
Members
449,358
Latest member
Snowinx

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