• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Display a blank cell if Vlookup is repeating

sagarsangani

New Member
Hello,


I have a table in the following format:


ABC 123

XYZ 456

ABC =vlookup


I want excel to display a blank cell after a specific vlookup value has already been displayed.


My formula right now displays #value: =IF(VLOOKUP(A5,A3:B4,2,0)=B$3:B4,"",VLOOKUP(A5,A3:B4,2,0))


What am I missing?
 
This is not correct:

VLOOKUP(A5,A3:B4,2,0)=B$3:B4


A better method would be to simply count, like this:

=IF(COUNTIF(A$2:A2,A2)>1,"",VLOOKUP(A2,YourTable,2,0))
 
In your table, I was assuming the first "123" is a formula result. This formula should be the one I posted, hence why the COUNTIF reference only a single row to adjust. If this is not the case, you may need to make the formula:

=IF(COUNTIF(A$2:A5,A5)>1,"",VLOOKUP(A5,YourTable,2,0))
 
Back
Top