Consolidating duplicates

jsiason

Board Regular
Joined
Nov 9, 2005
Messages
72
Hello,

whats the function/formula to copy to column D the values in column C, and when duplicates are encountered, only 1 of each type of duplicates will turn out in D, such that everything in C is in D, but list D contains unique values.

was that confusing?
thanks!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Why not try Data>Advanced filter...?
 
Upvote 0
jsiason said:
Hello,

whats the function/formula to copy to column D the values in column C, and when duplicates are encountered, only 1 of each type of duplicates will turn out in D, such that everything in C is in D, but list D contains unique values.

was that confusing?
thanks!
Book5
CDEF
104
2ItemIdxD-List
3Vda1Vda
4Fda2Fda
5Fra3Fra
6Vda Tfa
7Fda  
8Tfa4 
9
Sheet1


D1 must house a 0.

D3, copied down:

=IF(C3<>"",IF(ISNA(MATCH(C3,$C$2:C2,0)),LOOKUP(9.99999999999999E+307,$D$1:D2)+1,""),"")

E1:

=LOOKUP(9.99999999999999E+307,D1:D8)

E3, copy down:

=IF(ROW()-ROW($E$3)+1<=$E$1,LOOKUP(ROW()-ROW($E$3)+1,$D$3:$D$8,$C$3:$C$8),"")
 
Upvote 0
if i use advanced filter, what shoulde be my list and criteria range (C has 500 rows).

sorry, newbie here...
 
Upvote 0
You don't need a criteria range if you just want the unique values.

The list range should just be however many entries are in C.
 
Upvote 0
thank you for that!

how about if column C has corresponding values in A and i'd like to capture this value in column E?
assuming
column A=age
column C=name

all the unique values that appeared in C must have corresponding "A" value in column D.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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