cell reads as label but returns a value

S

spydor

How do you have a cell read on the spread as a lable (using the label
in a drop-down list) and when selected, the cell will return a constant
value? The cell might read: "Red Widget" but it would return a value
of say: 257. Got any ideas on this one....

Thanks...
Spydor
 
K

Ken Johnson

Hi spydor,
Is this what you mean?

http://hanjohn.customer.netspace.net.au/Widget test.xls

I've named A1:A20 Work_Area and AA1:AB6 Data_Area.
Work_Area has Data Validation which is the list of Values in AA1:AA6 ie
different coloured Widgets. The required Widget constants are in
AB1:AB6.
The Sheet1 module has the Sheet_Change Sub which first checks that the
change occurred in the Work_Area and then goes on the change the Target
cell value to the appropriate widget constant via the VLookUp worksheet
function.
Ken Johnson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top