Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ajay
 
Posts: n/a
Default Cell value dependent on another cell entry

Afternoon all
Having a senior moment in need of help.
I have created a list of names using data validation that works fine what I
need to do next is once a name is chosen automatically have their phone
number appear in the next cell. I am sure its possible so if you have any
ideas they would be much appreciated.
TIA
Ajay
  #2   Report Post  
bj
 
Posts: n/a
Default

I assume you have a table with names and telephone numbers
in the cell where you want the number to appear try
=vlookup(name,Name-number-range,2,False)
Assuming the number is next to the name. In not the 2 needs to be adjusted.

"Ajay" wrote:

Afternoon all
Having a senior moment in need of help.
I have created a list of names using data validation that works fine what I
need to do next is once a name is chosen automatically have their phone
number appear in the next cell. I am sure its possible so if you have any
ideas they would be much appreciated.
TIA
Ajay

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

I'd put the phone numbers in the column to the right of the list of names.

Then you could use an =vlookup() formula to return what you want.

Say your data|validation cell is A1.
Your list of names/phone numbers is in sheet2!a1:B99.

Then you could use:

=if(a1="","",vlookup(a1,sheet2!$a$1:$b$99,2,false) )

Visit Debra Dalgleish's site:
http://www.contextures.com/xlFunctions02.html
for nice instructions.

Ajay wrote:

Afternoon all
Having a senior moment in need of help.
I have created a list of names using data validation that works fine what I
need to do next is once a name is chosen automatically have their phone
number appear in the next cell. I am sure its possible so if you have any
ideas they would be much appreciated.
TIA
Ajay


--

Dave Peterson
  #4   Report Post  
Ajay
 
Posts: n/a
Default

Just the job Excellent!
many thanks bj and Dave
Ajay

"Dave Peterson" wrote:

I'd put the phone numbers in the column to the right of the list of names.

Then you could use an =vlookup() formula to return what you want.

Say your data|validation cell is A1.
Your list of names/phone numbers is in sheet2!a1:B99.

Then you could use:

=if(a1="","",vlookup(a1,sheet2!$a$1:$b$99,2,false) )

Visit Debra Dalgleish's site:
http://www.contextures.com/xlFunctions02.html
for nice instructions.

Ajay wrote:

Afternoon all
Having a senior moment in need of help.
I have created a list of names using data validation that works fine what I
need to do next is once a name is chosen automatically have their phone
number appear in the next cell. I am sure its possible so if you have any
ideas they would be much appreciated.
TIA
Ajay


--

Dave Peterson

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
Using a ComboBox for Data Entry into a Cell Jon Turner Excel Worksheet Functions 4 May 27th 05 09:53 PM
Manual or Formula entry in cell. Naz Excel Discussion (Misc queries) 0 May 24th 05 10:44 PM
Data Validation / Cell Entry Steve Jones Excel Discussion (Misc queries) 4 March 23rd 05 03:23 PM
Formula based on a cell entry Fat Bastard Excel Discussion (Misc queries) 10 March 13th 05 05:32 AM
resolving a numeric cell entry for its meaning vtcrob Excel Worksheet Functions 0 February 4th 05 02:23 AM


All times are GMT +1. The time now is 08:38 PM.

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

About Us

"It's about Microsoft Excel"