hi guys
i have this formula which works well
which returns the value 0 if nothing selcted![]()
=VLOOKUP($E29,$B:$E,2,0)
how can i keep this blank if nothing is selected
thanks in advance
hi guys
i have this formula which works well
which returns the value 0 if nothing selcted![]()
=VLOOKUP($E29,$B:$E,2,0)
how can i keep this blank if nothing is selected
thanks in advance
Last edited by stevesunfold; 11-23-2008 at 10:13 AM.
dont know if im explaining well enough
but if nothing is selected in cell e29 then i want the cell with forula in to stay blank also
many thanks
Your formula makes no sense.
The item to look up is within the lookup Range.
If it does return zero you could turn off zero values. Goto Tools > options > edit tab > untick zeros
or use an if statement
http://spreadsheetpage.com/index.php...s_in_formulas/=IF(VLOOKUP($E29,$B:$E,2,0)=0,"",VLOOKUP($E29,$B:$E,2,0))
VBA Noob
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
hi vba
the cell e29 is the look up reference
it then goes further down the sheet to look up whats in e29 and cross refernces it then returns the code
Yes I know and you're look at Cols B to E at Secound column.the cell e29 is the look up reference
So surely you're look up range would be Cols B to C?
VBA Noob
HI VBA
yes yoy are right
i have ammended the code to
but it returns #na![]()
=VLOOKUP($E29,$B:$C,2,0)
or if i use your code
it returns #n/a![]()
=IF(VLOOKUP($E29,$B:$C,2,0)=0,"",VLOOKUP($E29,$B:$C,2,0))
=if(isna(vlookup(e29,b:c,2,false)),"",if(vlookup(e29,b:c,2,false)=0,"",vlookup(e29,b:c,2,false)))
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks