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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,367
Office Version
  1. 365
Platform
  1. Windows
Why not try Data>Advanced filter...?
 
Upvote 0

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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

jsiason

Board Regular
Joined
Nov 9, 2005
Messages
72
if i use advanced filter, what shoulde be my list and criteria range (C has 500 rows).

sorry, newbie here...
 
Upvote 0

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,367
Office Version
  1. 365
Platform
  1. Windows
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

jsiason

Board Regular
Joined
Nov 9, 2005
Messages
72
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,195,906
Messages
6,012,234
Members
441,685
Latest member
12345695959

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
Top