A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Drop down box issue



 
 
Thread Tools Display Modes
  #1  
Old February 10th, 2010, 07:59 PM posted to microsoft.public.excel.worksheet.functions
- pat
external usenet poster
 
Posts: 2
Default Drop down box issue

Hey all,

I am using excel 2007 on XP Professional SP2. I am using a drop down
box on a worksheet that selects from a column of designated data
elsewhere on the worksheet. The data I have is 1 row of codes, with 1
row of descriptions for that code. I would like to select a code in the
drop down box and have the corresponding description fill in an adjacent
cell to the drop down box. Is this possible?


Example


Codes Description
1 One
2 Two
3 Three
4 Four
etc...


When code '1' is selected in the drop down box for cell A1, I want cell
A2 to populate with 'One'. A2's data of course is based on what is
selected in A1.


Thanks.

-psnell
  #2  
Old February 10th, 2010, 08:58 PM posted to microsoft.public.excel.worksheet.functions
Luke M
external usenet poster
 
Posts: 2,672
Default Drop down box issue

You can either use a lookup table with to had the dropdown box's value
translated,

Example:
=LOOKUP(A2,$D$2:$E$5)

or if you want to be more flexible and use any number, you could see this:
http://www.ozgrid.com/VBA/ValueToWords.htm
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"- pat" wrote:

Hey all,

I am using excel 2007 on XP Professional SP2. I am using a drop down
box on a worksheet that selects from a column of designated data
elsewhere on the worksheet. The data I have is 1 row of codes, with 1
row of descriptions for that code. I would like to select a code in the
drop down box and have the corresponding description fill in an adjacent
cell to the drop down box. Is this possible?


Example


Codes Description
1 One
2 Two
3 Three
4 Four
etc...


When code '1' is selected in the drop down box for cell A1, I want cell
A2 to populate with 'One'. A2's data of course is based on what is
selected in A1.


Thanks.

-psnell
.

  #3  
Old February 11th, 2010, 12:18 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default Drop down box issue

Hi,

You may use the VLOOKUP() formula

=vlookup(A2,sheet2!B2:C10,2,0)

A2 is the drop down cell. B2:C10 on sheet2 has the range of data

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"- pat" wrote in message
...
Hey all,

I am using excel 2007 on XP Professional SP2. I am using a drop down box
on a worksheet that selects from a column of designated data elsewhere on
the worksheet. The data I have is 1 row of codes, with 1 row of
descriptions for that code. I would like to select a code in the drop
down box and have the corresponding description fill in an adjacent cell
to the drop down box. Is this possible?


Example


Codes Description
1 One
2 Two
3 Three
4 Four
etc...


When code '1' is selected in the drop down box for cell A1, I want cell A2
to populate with 'One'. A2's data of course is based on what is selected
in A1.


Thanks.

-psnell


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:12 PM.


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