Hi,
Could anybody help me with this by using formula?
Basically I would like to remove duplicates from a list, but using formula only.
Input:
Red
Red
Blue
White
White
Red
Black
Result:
Red
Blue
White
Red
Black
Hi,
Could anybody help me with this by using formula?
Basically I would like to remove duplicates from a list, but using formula only.
Input:
Red
Red
Blue
White
White
Red
Black
Result:
Red
Blue
White
Red
Black
Assum your list in A2:A8
In B2 draging down
![]()
Please Login or Register to view this content.
Quang PT
Please try this formula pattern
=IFERROR(INDEX($D$5:$D$12,AGGREGATE(15,6,(ROW($D$5:$D$12)-ROW($D$4))/(1/(COUNTIF(E$5:E5,$D$5:$D$12)=0)),1)),"")
Regards.
My English is very poor, so please be patient >_<"
My Dynamic Related Dropdown post:
https://www.excelforum.com/excel-for...ml#post5657376
https://www.excelforum.com/excel-for...ml#post5655711
https://www.excelforum.com/excel-for...ml#post5655762
Hi Menem,
Thanks for the solution.
For some reason the formula doesnt work.
Any idea why?
Attachment 802592
Last edited by AliGW; 10-28-2022 at 03:07 AM. Reason: Please DON'T quote unnecessarily!
@bebo021999
Hi,
I notice that the formula using ROWS($1:1).
Unfortunately, my actual data between input and output are located in separated column and row (not side by side).
Is there any other solution?
Last edited by AliGW; 10-28-2022 at 03:10 AM. Reason: Please DON'T quote unnecessarily!
Menem's formula goes into D6, not D5.
Provide a sample workbook instead of leaving us guessing. Do this NOW.Unfortunately, my actual data between input and output are located in separated column and row (not side by side).
Last edited by AliGW; 10-28-2022 at 03:11 AM.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Thanks all.
Sorry for the confusion
Pls refer to attached sample file.
Your new sample quite different with 1st post ("Red" repeat twice) that why my solution in #2 did not work for new sample.
Try again:
In D5:
Drag down![]()
Please Login or Register to view this content.
In D5 copied down:
=IFERROR(1/(1/INDEX($A$5:$A$16,MATCH(0,INDEX(COUNTIF($D$4:D4,$A$5:$A$16),0,0),0))),"")
@AliGW
Thanks alot!
This could do the trick.
Last edited by AliGW; 10-28-2022 at 05:52 AM.
Glad to have helped.
If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks