Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Barry L
 
Posts: n/a
Default Assign values to names in a drop-down list?

Is it possible to assign values to names in a list, so that when you validate
it as a drop-down list, you can select a name from the drop-down and it's
corresponding value will be added to separate cell? Basically, I have survey
questions which have five possible responses: Excellent - Very Good - Good -
Fair - Poor. We want to assign a value to each, 5 for Excellent, 4 for Very
Good and so on, so that when a response is selected from a drop-down, it's
value appears in a separate cell (so that we can calculate a total and
average score from the selections).

Thanks
B
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Barry

a couple of choices,

1)
if you only have 5 options you can use an IF function - assuming the drop
down is in A1 the formula in B1 would be
=IF(A1="","",IF(A1="Excellent",5,IF(A1="Very
Good",4,IF(A1="Good",3,IF(A1="Fair",2,IF(A1="Poor" ,1,"Check Entry"))))))

2)
or create a table somewhere in your workbook (say sheet2 cells A2:B6) as
follows
.........A.................B
1....Grade.........Value
2.....Excellent.......5
3.....Very Good....4
4.....Good.............3
5......Fair...............2
6.....Poor...............1

and use a VLOOKUP function in cell B1
=VLOOKUP(A1,Sheet2!$A$2:$B$6,2,0)

- to trap for errors nest it in an IF(ISNA( function, e.g.
=IF(ISNA(VLOOKUP(A1,Sheet2!$A$2:$B$6,2,0)),"",VLOO KUP(A1,Sheet2!$A$2:$B$6,2,0))

3)
use the following formula in B1
=IF(ISNA(VLOOKUP(A1,{"Excellent",5;"Very
Good",4;"Good",3;"Fair",2;"Poor",1},2,0)),"",VLOOK UP(A1,{"Excellent",5;"Very
Good",4;"Good",3;"Fair",2;"Poor",1},2,0))


Hope this helps
Cheers
JulieD


"Barry L" <Barry wrote in message
...
Is it possible to assign values to names in a list, so that when you
validate
it as a drop-down list, you can select a name from the drop-down and it's
corresponding value will be added to separate cell? Basically, I have
survey
questions which have five possible responses: Excellent - Very Good -
Good -
Fair - Poor. We want to assign a value to each, 5 for Excellent, 4 for
Very
Good and so on, so that when a response is selected from a drop-down, it's
value appears in a separate cell (so that we can calculate a total and
average score from the selections).

Thanks
B



  #3   Report Post  
Barry L
 
Posts: n/a
Default

Great thanks Julie!

Barry

"JulieD" wrote:

Hi Barry

a couple of choices,

1)
if you only have 5 options you can use an IF function - assuming the drop
down is in A1 the formula in B1 would be
=IF(A1="","",IF(A1="Excellent",5,IF(A1="Very
Good",4,IF(A1="Good",3,IF(A1="Fair",2,IF(A1="Poor" ,1,"Check Entry"))))))

2)
or create a table somewhere in your workbook (say sheet2 cells A2:B6) as
follows
.........A.................B
1....Grade.........Value
2.....Excellent.......5
3.....Very Good....4
4.....Good.............3
5......Fair...............2
6.....Poor...............1

and use a VLOOKUP function in cell B1
=VLOOKUP(A1,Sheet2!$A$2:$B$6,2,0)

- to trap for errors nest it in an IF(ISNA( function, e.g.
=IF(ISNA(VLOOKUP(A1,Sheet2!$A$2:$B$6,2,0)),"",VLOO KUP(A1,Sheet2!$A$2:$B$6,2,0))

3)
use the following formula in B1
=IF(ISNA(VLOOKUP(A1,{"Excellent",5;"Very
Good",4;"Good",3;"Fair",2;"Poor",1},2,0)),"",VLOOK UP(A1,{"Excellent",5;"Very
Good",4;"Good",3;"Fair",2;"Poor",1},2,0))


Hope this helps
Cheers
JulieD


"Barry L" <Barry wrote in message
...
Is it possible to assign values to names in a list, so that when you
validate
it as a drop-down list, you can select a name from the drop-down and it's
corresponding value will be added to separate cell? Basically, I have
survey
questions which have five possible responses: Excellent - Very Good -
Good -
Fair - Poor. We want to assign a value to each, 5 for Excellent, 4 for
Very
Good and so on, so that when a response is selected from a drop-down, it's
value appears in a separate cell (so that we can calculate a total and
average score from the selections).

Thanks
B




  #4   Report Post  
JulieD
 
Posts: n/a
Default

you're welcome

"Barry L" wrote in message
...
Great thanks Julie!

Barry

"JulieD" wrote:

Hi Barry

a couple of choices,

1)
if you only have 5 options you can use an IF function - assuming the drop
down is in A1 the formula in B1 would be
=IF(A1="","",IF(A1="Excellent",5,IF(A1="Very
Good",4,IF(A1="Good",3,IF(A1="Fair",2,IF(A1="Poor" ,1,"Check Entry"))))))

2)
or create a table somewhere in your workbook (say sheet2 cells A2:B6) as
follows
.........A.................B
1....Grade.........Value
2.....Excellent.......5
3.....Very Good....4
4.....Good.............3
5......Fair...............2
6.....Poor...............1

and use a VLOOKUP function in cell B1
=VLOOKUP(A1,Sheet2!$A$2:$B$6,2,0)

- to trap for errors nest it in an IF(ISNA( function, e.g.
=IF(ISNA(VLOOKUP(A1,Sheet2!$A$2:$B$6,2,0)),"",VLOO KUP(A1,Sheet2!$A$2:$B$6,2,0))

3)
use the following formula in B1
=IF(ISNA(VLOOKUP(A1,{"Excellent",5;"Very
Good",4;"Good",3;"Fair",2;"Poor",1},2,0)),"",VLOOK UP(A1,{"Excellent",5;"Very
Good",4;"Good",3;"Fair",2;"Poor",1},2,0))


Hope this helps
Cheers
JulieD


"Barry L" <Barry wrote in message
...
Is it possible to assign values to names in a list, so that when you
validate
it as a drop-down list, you can select a name from the drop-down and
it's
corresponding value will be added to separate cell? Basically, I have
survey
questions which have five possible responses: Excellent - Very Good -
Good -
Fair - Poor. We want to assign a value to each, 5 for Excellent, 4 for
Very
Good and so on, so that when a response is selected from a drop-down,
it's
value appears in a separate cell (so that we can calculate a total and
average score from the selections).

Thanks
B






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
Pull unique names for drop down list [email protected] Excel Discussion (Misc queries) 3 February 1st 05 10:23 PM
automatic color change in cells using a drop down list kennethwt Excel Worksheet Functions 1 January 21st 05 06:37 PM
Extracting Values on one list and not another B Schwarz Excel Discussion (Misc queries) 4 January 7th 05 01:48 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
Drop List Referencing Boony Excel Worksheet Functions 2 November 11th 04 11:42 AM


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