Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim Jim is offline
external usenet poster
 
Posts: 615
Default How do I pick value A from a list and have excel return value B?

I have a list of 30 names that have coded values. Since nobody has memorized
the coded values, I'd like the list to have the names and when you select the
name it displays the coded value. Example:

Column 1

A 'Monkey' (is on the list, but monkey is really 185.54)

When you pick Monkey from the list I would like the display to look like this:

Column 1

A 185.54

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default How do I pick value A from a list and have excel return value B?

How about creating a list on a different sheet (say sheet2), then use an
adjacent cell to return the numeric value for that name:

In B1:
=if(a1="","Pick a name",vlookup(a1,sheet2!a:b,2,false))
or
=if(a1="","",vlookup(a1,sheet2!a:b,2,false))

You could even hide the column with this formula, but still use that cell in any
subsequent calculations.

Jim wrote:

I have a list of 30 names that have coded values. Since nobody has memorized
the coded values, I'd like the list to have the names and when you select the
name it displays the coded value. Example:

Column 1

A 'Monkey' (is on the list, but monkey is really 185.54)

When you pick Monkey from the list I would like the display to look like this:

Column 1

A 185.54

Any ideas?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim Jim is offline
external usenet poster
 
Posts: 615
Default How do I pick value A from a list and have excel return value

Briliant, thank you Dave.

"Dave Peterson" wrote:

How about creating a list on a different sheet (say sheet2), then use an
adjacent cell to return the numeric value for that name:

In B1:
=if(a1="","Pick a name",vlookup(a1,sheet2!a:b,2,false))
or
=if(a1="","",vlookup(a1,sheet2!a:b,2,false))

You could even hide the column with this formula, but still use that cell in any
subsequent calculations.

Jim wrote:

I have a list of 30 names that have coded values. Since nobody has memorized
the coded values, I'd like the list to have the names and when you select the
name it displays the coded value. Example:

Column 1

A 'Monkey' (is on the list, but monkey is really 185.54)

When you pick Monkey from the list I would like the display to look like this:

Column 1

A 185.54

Any ideas?


--

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
Making pick list conditional on selection from previous pick list Stewart Excel Discussion (Misc queries) 1 June 27th 05 11:30 AM
Create a pick list to use to go to a text cell in Excel Pegita Excel Worksheet Functions 1 June 23rd 05 07:24 PM
How do I make a drop down list to pick from for a cell in Excel bbiernbaum Excel Discussion (Misc queries) 2 June 15th 05 02:32 PM
In which menu can I find the "pick from list" feature in Excel? Mags13 Excel Discussion (Misc queries) 1 March 10th 05 11:37 AM
How do I pick a number from a list in Excel? pugsly8422 Excel Worksheet Functions 4 January 3rd 05 06:07 PM


All times are GMT +1. The time now is 07:22 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"