G
Guest
i trying to use this forumla:
=VLOOKUP
if unable to find out the values, can the data cells auto set to blank?
=VLOOKUP
if unable to find out the values, can the data cells auto set to blank?
currently if i search a valid data, it will shows the result.
But if i search again with an invalid data, the cells cant reflect blank or
look blank.
i mean when i have this:
MsgBox "Invalid Data Entered"
it will gives user a error msg when invalid search is entered.
Can that MsgBox "Invalid Data Entered" be used inside VLOOKUP togther?
Coz right now, i do no use any "Search" button to activate the code.
Hi Dave,
i trying that on formula in a worksheet.
I get what you trying to help me.
It works when i seach a valid or invalid data in the search cell.
But is it possible if i make another search inside the cell, if the data
cannnot be found, it will auto clear the first search results. Coz right now,
the old serch result will be still there. Do i need to use marco?
I wan do a 2nd check but if result not found, the searchResult should return
empty.
In short i mean if search is unable to find, the cells should set to
empty/clear.
kyoshirou said:Hi Dave,
Why do i need to have 2 vlookup? i only need to retrieve the data from 1
database sheet.
I mean if i search it will returns the output. And then another search
(invalid data), the output will be empty.
I think my understanding is kind of mess.. Sry..
My search field is at B18.
And search results will be at B13,B14,B15
So if there is valid return result, it will show on B13, B14.
And user have to re-enter the searching at B18, and if invalid, it will
return blank at B13, B14.