Unique list without removing Rows (VBA or Formula)

MichaelLindsay

New Member
Joined
Aug 7, 2014
Messages
6
Hi All,

Following scenario, I need to have a unique values list BUT I want to clear the duplicates but preserve the positions...

VBA code or formula or even GUI workaround would be greatly appreciated. Might be a very obvious answer, but I've been scratching my head about it.

Row1 (what I have)Row2 (what I want)
aa
a
bb
b
b
cc
dd
d
d
d

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi!

AB
1LettersAnswer
2aa
3a
4bb
5b
6b
7cc
8dd
9d
10d
11d

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Hoja1

Worksheet Formulas
CellFormula
B2=IF(A2<>A1,A2,"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

You must copy this formula down.

Please comment!
I hope it helps. Blessings!
 
Upvote 0
I think that With your formula if you type an A for example in cell A5 you get an wrong result...
 
Upvote 0
I think that With your formula if you type an A for example in cell A5 you get an wrong result...

Yeah! you're right... my formula only works with a sort data (like the example). Your formula works in any time. Blessings!
 
Upvote 0

Forum statistics

Threads
1,203,460
Messages
6,055,557
Members
444,797
Latest member
18ecooley

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