Assign numerical values to text from dropdown in Numbers

Is there a way to assign numerical values to text on numbers?

I’m making a spreadsheet with a dropdown menu that has 3 options. Let’s say Bird, Cat, Dog. Each word has a different value attached. The numerical values will not be shown. Then math is to the numerical value. I know the IF function can be used for this but I’m trying to find out if there’s a faster way.

iPhone 15, iOS 26

Posted on Aug 19, 2026 2:53 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 19, 2026 5:04 PM

There are a number of ways of doing this.


The first one that comes to mind is via LOOKUP:


Assuming your values are in column C:


=LOOKUP(C2,{"Bird","Cat","Dog","None"},{1,2,3,0})


Note that the list is disconnected - that is, if you add/remove options to/from the popup menu you'll need to manually adjust the formula to account for it.

The number of keywords and scores must match, so there's one value for each key, otherwise it'll throw an error.


It's also possible to do this via a sub-table where you have a mini-list of the keywords and scores, like:



using a LOOKUP() to find the matching score:


=LOOKUP(C2,Table 3::A,Table 3::B)


which reads as 'look in Table 3::A to find the value in C2, then return the corresponding value from Table 3::B.


The subtable can be hidden or located on another sheet to keep it out of the way, and this makes it easier to adjust the list/scores (you will still need to manually keep it in synch with changes to the popup menu options)

2 replies
Question marked as Top-ranking reply

Aug 19, 2026 5:04 PM in response to christigmc

There are a number of ways of doing this.


The first one that comes to mind is via LOOKUP:


Assuming your values are in column C:


=LOOKUP(C2,{"Bird","Cat","Dog","None"},{1,2,3,0})


Note that the list is disconnected - that is, if you add/remove options to/from the popup menu you'll need to manually adjust the formula to account for it.

The number of keywords and scores must match, so there's one value for each key, otherwise it'll throw an error.


It's also possible to do this via a sub-table where you have a mini-list of the keywords and scores, like:



using a LOOKUP() to find the matching score:


=LOOKUP(C2,Table 3::A,Table 3::B)


which reads as 'look in Table 3::A to find the value in C2, then return the corresponding value from Table 3::B.


The subtable can be hidden or located on another sheet to keep it out of the way, and this makes it easier to adjust the list/scores (you will still need to manually keep it in synch with changes to the popup menu options)

Assign numerical values to text from dropdown in Numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.