Hi guys, so i am currently using this formula but i am baffled as to why it is returning 0 , if the cell its looking in is blank?
Thanks.Please Login or Register to view this content.
Hi guys, so i am currently using this formula but i am baffled as to why it is returning 0 , if the cell its looking in is blank?
Thanks.Please Login or Register to view this content.
It will return 0 if column Q (16th column) is blank.
Is there a way to have it return blank?
usually vlookup returns a 0 if it finds the lookup item (whatever you have in C6) in your lookup area but there is nothing in the cell across from it.
Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
Sam Capricci
maybe this...
=IF(C6="","",if(VLOOKUP(C6,INDIRECT("'"&G4&"'!$B$3:$BA$318"),16,FALSE)="","blank",VLOOKUP(C6,INDIRECT("'"&G4&"'!$B$3:$BA$318"),16,FALSE))
this is untested and I may have the number of parens off so you might have to tweak it a bit.
No: if you want blank you will have to test for return of 0
=IF(C6="","",IF(VLOOKUP(C6,INDIRECT("'"&G4&"'!$B$3:$BA$318"),16,FALSE)=0),"",VLOOKUP(C6,INDIRECT("'"&G4&"'!$B$3:$BA$318"),16,FALSE)))
OR format cells to hide zeros
What type of value does the vlookup return when it's resulting cell is NOT empty, Text or Number?
If it's usually text, try
=IF(C6="","",T(VLOOKUP(C6,INDIRECT("'"&G4&"'!$B$3:$BA$318"),16,FALSE)))
If it's a number, try
=IF(C6="","",IFERROR(1/(1/VLOOKUP(C6,INDIRECT("'"&G4&"'!$B$3:$BA$318"),16,FALSE)),""))
If it could be either, then you're stuck with the brute force method Sambo posted, if vlookup = "" then "" otherwise vlookup
That worked, thanks sambo
Yours also worked, jonmo1
glad I could help. AND thank you for the rep!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks