If you look at the example sheet I have, it will return the address for the name entered into A2. What I would like is to be able to just type in the first name and have it return the address as if I had typed in the whole name. Is this possible?
If you look at the example sheet I have, it will return the address for the name entered into A2. What I would like is to be able to just type in the first name and have it return the address as if I had typed in the whole name. Is this possible?
What if there are multiple people with the same first name?
Have you considered using a data validation drop down list so that the user can just pick a name from the list: Data Validation Intro
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
There will no be duplicate names as this is just a mock up of what I'm doing. The first word in the "name" field will be unique to that entry. I was originally going to go with the Data Val List, but found it take more time sorting through 300 unique "names" than just typing it the first part of the entry. If there is no other way to do it I may have to use the data validation list.
Well you can use a wildcard in the Vlookup, i.e. VLOOKUP(A2&"*",Ref!$A$1:$C$5,2,FALSE)
this will look to see if anything in column A of the Ref! table starts with name in A2...
Ok great that is a start to what I want....the problem is if I leave it blank it pulls in the first address off the list. I am assuming I can remedy this by taking by list worksheet and putting a blank entry at the top.
EDIT*
Ok adding a blank line didnt work. How can I get it to show blanks on the address line if the entry line is also blank?
Last edited by liverebel; 06-08-2011 at 02:21 PM.
You could do:
=IF(A2="","",VLOOKUP(A2&"*",Ref!$A$1:$C$5,2,FALSE))
you could also nest your error trap formula in place of the simple VLOOKUP
Please see attached.
Also, try
main sheet A3, copy down
=LOOKUP(REPT("Z",255),CHOOSE({1,2},"",VLOOKUP(A$2&"*",Ref!$A:$C,ROWS(A$3:A3)+1,0)))
Regards,
Haseeb Avarakkan
__________________________________
"Feedback is the breakfast of champions"
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks