Help needed...VLOOKUP - Unless a value has been seen before

adamdc20

New Member
Joined
Apr 10, 2006
Messages
18
Hi all - thanks to anyone in advance who can help me with this question.

I have a list which has been created using VLOOKUP...

I need to create this list without duplicating any values....

e.g - My list:

Column A

Customer Advisors (Formula - =VLOOKUP(Z8,'Change Capacity Details'!B8:H19,7,True)
Bank Clerks (Formula as above)

In the underlying data - it is possible that Customer Advisors will appear again - I need to avoid this being returned in my high-level list (I only want one entry per group).

Is there a way this can be done?
 

venkat1926

Well-known Member
Joined
Aug 21, 2005
Messages
4,824
not clear. vlookup will find out ONLY THE FIRST reference value in the data. It will not go to duplicates down.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
42,211
Office Version
365
Platform
Windows
Adam

I think I understand what you are saying. I am assuming you have a heading in A1 and that your first VLOOKUP formula is in A2. If that is the case then try this formula in A2 (copied down).

If your setup is different and you cannot adapt this, or it simply doesn't do what you want, then please provide more details. Maybe even some screen shots (small samples) of the two sheets and give an explanation with reference to the screen shots. For screen shots, you can use:
Excel jeanie
or
Colo's HTML Maker

Anyway, here is a formula to try:
Code:
=IF(ISNUMBER(MATCH(VLOOKUP(Z2,'Change capacity details'!$B$8:$H$19,7,TRUE),A$1:A1,0)),"",VLOOKUP(Z2,'Change capacity details'!$B$8:$H$19,7,TRUE))
 

Forum statistics

Threads
1,081,708
Messages
5,360,781
Members
400,595
Latest member
T_Dubs

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top