Vlookup Please Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have data in column C for several days. Some of the data is repeated. I
only need the data out of here that does not have a duplicate. I was told you
could do this with vlookup. Can someone help? Thanks
 
cbanks said:
I have data in column C for several days. Some of the data is repeated. I
only need the data out of here that does not have a duplicate. I was told you
could do this with vlookup. Can someone help? Thanks

One way to dynamically* extract the uniques into an adjacent col ..

Assuming source data in col C,
from row1 down to say, an expected max row100

In D1:
=IF(ISERROR(SMALL(E:E,ROW())),"",INDEX(C:C,MATCH(SMALL(E:E,ROW()),E:E,0)))

In E1:
=IF(C1="","",IF(COUNTIF($C$1:C1,C1)>1,"",ROW()))

Select D1:E1, copy down to E100
(cover the max expected extent of data in col C)

The unique items in col C will be auto-extracted into col D,
all results neatly bunched at the top.

(Hide away the criteria col E, if desired)

*If it's a one-off run, we could also:

Select col C
Click Data > Filter > Advanced Filter
Check: Copy to another location,
Copy to: F1 (say)
Check "Unique records only"
Click OK
(Unique items will be listed in col F)


---
 
Just another fine angle to it, focusing on your line:
The preceding methods suggested will yield the uniques list of items in col
C, which include the 1st instances of items having duplicates, i.e. repeated
elsewhere down the col.

If what you're really after is only the items in col C w/o any duplicate(s)
then we could just replace the formula in col E with

In E1:
=IF(C1="","",IF(COUNTIF(C:C,C1)=1,ROW(),""))
E1 copied down to E100, as before

(No change to the formulas in col D)

Col D will then return the desired results

Note that we can't use: Advanced Filter > Uniques
to drive out the above interp

---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Need VLOOKUP to Work Two Ways 0
Vlookups not working 2
Help With VLOOKUP 2
vlookup formatting problem 1
Dynamic col_index_num in VLOOKUP? 5
VLookup 15
VLOOKUP results in problems in comparing 3
VLOOKUP 2

Back
Top