hi guys
i have this formula which works well
which returns the value 0 if nothing selcted![]()
Please Login or Register to view this content.
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![]()
Please Login or Register to view this content.
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![]()
Please Login or Register to view this content.
or if i use your code
it returns #n/a![]()
Please Login or Register to view this content.
You can modify your formula like this
=IF($E29="","",VLOOKUP($E29,$B:$C,2,0))
You'll still get an #N/A error if E29 isn't found in column B
=if(isna(vlookup(e29,b:c,2,false)),"",if(vlookup(e29,b:c,2,false)=0,"",vlookup(e29,b:c,2,false)))
perfect
cheers daddylonglegs
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks