remove duplicates and also left out blank rows formula

pepablock

New Member
Joined
Mar 27, 2019
Messages
3
Hello,

Is there a way to make this formula a bit more efficient? I'm trying to remove duplicates and remove blanks, but not sure how to do it. I have this basic formula which removes duplicates, but it leaves blank spaces, I think there's a way using IFFERROR, INDEX and ROW.

Here is a simple formula for removing duplicates which as shown on screen leaves blank spaces. Data are in the column A, formula below is in the column B.

Code:
=IF(COUNTIF(A$1:A1,A1)=1,A1,"")

Od3N5Ej.jpg


I would like to achieve something like this:

ZL6HIk8.jpg
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Welcome to the Board!

How about just using Excel's built-in "Remove Duplicates" functionality?
It will comletely remove them, and will not leave any blank spaces behind where the duplicates were.
 
Upvote 0
Welcome to the Board!

How about just using Excel's built-in "Remove Duplicates" functionality?
It will comletely remove them, and will not leave any blank spaces behind where the duplicates were.

Thanks :).

Yea, I know there is a built-in remove duplicates function, Im trying to basically replicate this with a formula, so I can somewhat automate my excel sheet. That is why Im looking for a formula solution.
 
Upvote 0
I think I found what I need in this >>thread<<. But I dont need them to be sorted and also I need to start from row A1. Anyone know how to simplify the formula? Im not that skilled with these advanced formulas. Thanks
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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