# Assign a numerical value to a text string in a list

##### New Member
I am creating a scoring worksheet. The user selects one of 5 text statements in a list. I assign a numerical 'score" to each one. I want that score to be "returned based on the text selection so that I can incorporate into a formula. How do i go about doing that? Do I use "lookup" ? "If" or what????

Thanks for any help!

### Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

##### MrExcel MVP
=VLOOKUP(DropdownSelection,Table,2,0)

where Table is a 2-column range that associates text values and numbers.

##### New Member
That works well....
I took that and added 5 vlookups to create a single score.....

=(VLOOKUP(B11,B87:C91,2,0))+(VLOOKUP(C11,B93:C97,2,0))+(VLOOKUP(D11,B99:C103,2,0))+(VLOOKUP(E11,B105:C109,2,0))+(VLOOKUP(F11,B112:C116,2,0))

now..
how can I "easily" copy that formula down a column?

If I just "copy" I get invalid references....I need the table to be constant...)

##### MrExcel MVP
That works well....
I took that and added 5 vlookups to create a single score.....

=(VLOOKUP(B11,B87:C91,2,0))+(VLOOKUP(C11,B93:C97,2,0))+(VLOOKUP(D11,B99:C103,2,0))+(VLOOKUP(E11,B105:C109,2,0))+(VLOOKUP(F11,B112:C116,2,0))

now..
how can I "easily" copy that formula down a column?

If I just "copy" I get invalid references....I need the table to be constant...)

Would using \$B\$87:\$C\$116 as the lookup table for B11, C11, D11, E11, and F11 cause any trouble?

Replies
21
Views
335
Replies
5
Views
177
Replies
5
Views
88
Replies
1
Views
108
Replies
5
Views
156

1,181,364
Messages
5,929,544
Members
436,677
Latest member
CathalP1992

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back