Address of unique values

Svgmassive

Board Regular
Joined
Nov 2, 2010
Messages
113
Can i get the address on the unique records in a column to use in a range? thanks
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Ruddles

Well-known Member
Joined
Aug 24, 2010
Messages
5,786
Yes. If your value is in C1 and your lookup table is in column D starting at D1, this will do it:-

Code:
="D"&MATCH(C1,D:D,FALSE)
 

Svgmassive

Board Regular
Joined
Nov 2, 2010
Messages
113
Ruddles
That's not what i am looking for.what I need it to get the address of the unique values in a column.It should the first item of the unique values.
 

Svgmassive

Board Regular
Joined
Nov 2, 2010
Messages
113
ok i am half way there i am trying to get the address of the unique value i have done an advance filter and added a formula to columns that has the address no how do i get put the addresses(values) in Range("Z5:Z6") in to a range without looping through the cells.Thanks
this is a copy of where i am at.i have not included all of the cells.i
Sub Macro2()

Range("F4:F7").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range( _
"X4:X7"), Unique:=True

With Range("Z5:Z6")
.FormulaR1C1 = "=ADDRESS(MATCH(RC[-2],C[-20],0),6)"
End With
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,122,187
Messages
5,594,753
Members
413,930
Latest member
Nela817

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