Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 77
Default LOOKUP a phone number?

Is this possible?
I would like to create a LOOKUP formula that would tell me the phone number
if I put in the name.

For instance, I have one worksheet that looks like this:

Name Home Cell
Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222

On another worksheet, I want to set-up a formula so that if I enter a name
in A2, the home # will be generated in B2 and the cell # will be generated in
C2.

Any ideas?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default LOOKUP a phone number?

Hi!

Try this:

This table is on Sheet2 in the range A2:C4 -

Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222


Sheet1:

A2 = Ann

Enter this formula in B2 and copy across to C2:

=IF($A2="","",VLOOKUP($A2,Sheet2!$A2:$C4,COLUMNS($ A:B),0))

Biff

"Laura" wrote in message
...
Is this possible?
I would like to create a LOOKUP formula that would tell me the phone
number
if I put in the name.

For instance, I have one worksheet that looks like this:

Name Home Cell
Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222

On another worksheet, I want to set-up a formula so that if I enter a name
in A2, the home # will be generated in B2 and the cell # will be generated
in
C2.

Any ideas?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 77
Default LOOKUP a phone number?

that is SO AWESOME! THANK YOU!

Now, one more thing.... can you tell me what I can add to the formula so if
one of the phone number cells is blank on the lookup table the other one will
be blank also instead of showing a "0"?

thanks again.

"Biff" wrote:

Hi!

Try this:

This table is on Sheet2 in the range A2:C4 -

Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222


Sheet1:

A2 = Ann

Enter this formula in B2 and copy across to C2:

=IF($A2="","",VLOOKUP($A2,Sheet2!$A2:$C4,COLUMNS($ A:B),0))

Biff

"Laura" wrote in message
...
Is this possible?
I would like to create a LOOKUP formula that would tell me the phone
number
if I put in the name.

For instance, I have one worksheet that looks like this:

Name Home Cell
Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222

On another worksheet, I want to set-up a formula so that if I enter a name
in A2, the home # will be generated in B2 and the cell # will be generated
in
C2.

Any ideas?

Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default LOOKUP a phone number?

Enter in B2 and copy across to C2:

=IF($A2="","",IF(VLOOKUP($A2,Sheet2!$A2:$C4,COLUMN S($A:B),0)="","",VLOOKUP($A2,Sheet2!$A2:$C4,COLUMN S($A:B),0)))

Biff

"Laura" wrote in message
...
that is SO AWESOME! THANK YOU!

Now, one more thing.... can you tell me what I can add to the formula so
if
one of the phone number cells is blank on the lookup table the other one
will
be blank also instead of showing a "0"?

thanks again.

"Biff" wrote:

Hi!

Try this:

This table is on Sheet2 in the range A2:C4 -

Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222


Sheet1:

A2 = Ann

Enter this formula in B2 and copy across to C2:

=IF($A2="","",VLOOKUP($A2,Sheet2!$A2:$C4,COLUMNS($ A:B),0))

Biff

"Laura" wrote in message
...
Is this possible?
I would like to create a LOOKUP formula that would tell me the phone
number
if I put in the name.

For instance, I have one worksheet that looks like this:

Name Home Cell
Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222

On another worksheet, I want to set-up a formula so that if I enter a
name
in A2, the home # will be generated in B2 and the cell # will be
generated
in
C2.

Any ideas?

Thanks.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 77
Default LOOKUP a phone number?

THANK YOU once again!

OK, so I am going to try and complicate the situation. Let's say that the
lookup table belongs to a syncronized list in SharePoint. If the contact
information increases, then the lookup table range will increase also. In
this case, is there any way to designate the look-up table as the entire list
rather than by a specific cell range? Or if I decide to leave it as a cell
range, will it automatically update the lookup range in the formula?

"Biff" wrote:

Enter in B2 and copy across to C2:

=IF($A2="","",IF(VLOOKUP($A2,Sheet2!$A2:$C4,COLUMN S($A:B),0)="","",VLOOKUP($A2,Sheet2!$A2:$C4,COLUMN S($A:B),0)))

Biff

"Laura" wrote in message
...
that is SO AWESOME! THANK YOU!

Now, one more thing.... can you tell me what I can add to the formula so
if
one of the phone number cells is blank on the lookup table the other one
will
be blank also instead of showing a "0"?

thanks again.

"Biff" wrote:

Hi!

Try this:

This table is on Sheet2 in the range A2:C4 -

Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222

Sheet1:

A2 = Ann

Enter this formula in B2 and copy across to C2:

=IF($A2="","",VLOOKUP($A2,Sheet2!$A2:$C4,COLUMNS($ A:B),0))

Biff

"Laura" wrote in message
...
Is this possible?
I would like to create a LOOKUP formula that would tell me the phone
number
if I put in the name.

For instance, I have one worksheet that looks like this:

Name Home Cell
Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222

On another worksheet, I want to set-up a formula so that if I enter a
name
in A2, the home # will be generated in B2 and the cell # will be
generated
in
C2.

Any ideas?

Thanks.









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default LOOKUP a phone number?

You can do a couple of things in that case:

Just use entire columns as the range references for the table:

=IF($A2="","",IF(VLOOKUP($A2,Sheet2!$A:$C,COLUMNS( $A:B),0)="","",VLOOKUP($A2,Sheet2!$A:$C,COLUMNS($A :B),0)))

Or, you can make the lookup table a dynamic range:

http://contextures.com/xlNames01.html#Dynamic

Then you would use the dynamic range name:

=IF($A2="","",IF(VLOOKUP($A2,Table,COLUMNS($A:B),0 )="","",VLOOKUP($A2,Table,COLUMNS($A:B),0)))

Biff

"Laura" wrote in message
...
THANK YOU once again!

OK, so I am going to try and complicate the situation. Let's say that the
lookup table belongs to a syncronized list in SharePoint. If the contact
information increases, then the lookup table range will increase also. In
this case, is there any way to designate the look-up table as the entire
list
rather than by a specific cell range? Or if I decide to leave it as a
cell
range, will it automatically update the lookup range in the formula?

"Biff" wrote:

Enter in B2 and copy across to C2:

=IF($A2="","",IF(VLOOKUP($A2,Sheet2!$A2:$C4,COLUMN S($A:B),0)="","",VLOOKUP($A2,Sheet2!$A2:$C4,COLUMN S($A:B),0)))

Biff

"Laura" wrote in message
...
that is SO AWESOME! THANK YOU!

Now, one more thing.... can you tell me what I can add to the formula
so
if
one of the phone number cells is blank on the lookup table the other
one
will
be blank also instead of showing a "0"?

thanks again.

"Biff" wrote:

Hi!

Try this:

This table is on Sheet2 in the range A2:C4 -

Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222

Sheet1:

A2 = Ann

Enter this formula in B2 and copy across to C2:

=IF($A2="","",VLOOKUP($A2,Sheet2!$A2:$C4,COLUMNS($ A:B),0))

Biff

"Laura" wrote in message
...
Is this possible?
I would like to create a LOOKUP formula that would tell me the phone
number
if I put in the name.

For instance, I have one worksheet that looks like this:

Name Home Cell
Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222

On another worksheet, I want to set-up a formula so that if I enter
a
name
in A2, the home # will be generated in B2 and the cell # will be
generated
in
C2.

Any ideas?

Thanks.









  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,939
Default LOOKUP a phone number?

You probably want a vlookup formula, something like this...

=vlookup(A2, sheet1!$A$1:$C$100, 2, false)
--
HTH...

Jim Thomlinson


"Laura" wrote:

Is this possible?
I would like to create a LOOKUP formula that would tell me the phone number
if I put in the name.

For instance, I have one worksheet that looks like this:

Name Home Cell
Ann 555-1234 555-0000
Bob 555-5678 555-1111
Claire 555-9012 555-2222

On another worksheet, I want to set-up a formula so that if I enter a name
in A2, the home # will be generated in B2 and the cell # will be generated in
C2.

Any ideas?

Thanks.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Join three columns containing phone number and format as (000) 000 Sharon Barr Excel Discussion (Misc queries) 5 March 10th 06 10:37 PM
phone number dilemma alexm999 Excel Discussion (Misc queries) 6 November 14th 05 10:41 PM
concatenating and formatting area code and phone number columns sherri Excel Worksheet Functions 4 September 1st 05 09:59 PM
Part Number Lookup Marshall2 Excel Worksheet Functions 2 July 11th 05 08:58 AM
Number Lookup in Matrix Rod Excel Worksheet Functions 12 July 2nd 05 11:24 PM


All times are GMT +1. The time now is 01:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"