A
Andy Roberts
I have a spreadsheet which lists clients by first name, last name, postcode
and phone number - all in separate columns e.g.
Andy Roberts M56 7HN 0161 428 3856
I have these all in one worksheets and in a named range called "Clients"
On a separate worksheet (within the same workbook) I log all my enquiries.
What I want to be able to do is type in to a cell the first name then in the
next cell the last name and the following cells get populated with postcode
and phone number based on BOTH of the first two cells by looking up the
"Clients" range.
I can get it to work using one column i.e. the first name or the last name
but not with both. I thought of combining the names into one cell but I
moved away from this in the past as it didn't work with a mail merge as i
needed to separate first and last names. It needs to be both cells in order
to be unique.
It works on one cell using:-
=IF($A1="","",VLOOKUP($A1,Admin.xlsx!Clients,3,0))
This gives me the postcode based on the first name only but I need it to
return a value from the lookup based on both first name and last name (i.e.
A1 & A2 cells)
Regards
Andy Roberts
Win XP
Office 2010
and phone number - all in separate columns e.g.
Andy Roberts M56 7HN 0161 428 3856
I have these all in one worksheets and in a named range called "Clients"
On a separate worksheet (within the same workbook) I log all my enquiries.
What I want to be able to do is type in to a cell the first name then in the
next cell the last name and the following cells get populated with postcode
and phone number based on BOTH of the first two cells by looking up the
"Clients" range.
I can get it to work using one column i.e. the first name or the last name
but not with both. I thought of combining the names into one cell but I
moved away from this in the past as it didn't work with a mail merge as i
needed to separate first and last names. It needs to be both cells in order
to be unique.
It works on one cell using:-
=IF($A1="","",VLOOKUP($A1,Admin.xlsx!Clients,3,0))
This gives me the postcode based on the first name only but I need it to
return a value from the lookup based on both first name and last name (i.e.
A1 & A2 cells)
Regards
Andy Roberts
Win XP
Office 2010