# Using a Logical formula to return a numeric value

Options
✭✭✭✭

I'm trying to use a logical formula to return a numeric value based on the drop down selection in another column.

For example, if column X contains Tier 1, insert in column Y a value of 1

If Tier 2, return a value of 2

If Tier 3, Return a value of 3

This is the formula I'm trying to use and I get an unparseable error

=IF(Client Tier@row Tier 1, "1", IF(Client Tier@row Tier 2, "2", IF(Client Tier@row Tier 3, "3"))

What do I need to change?

Thank you!!

• ✭✭✭✭✭✭
Options

You are so close! I think you just need some brackets, additional quotation marks, and equal signs. 😀

Try this...

=IF([Client Tier]@row ="Tier 1", "1", IF([Client Tier]@row= "Tier 2", "2", IF([Client Tier]@row ="Tier 3", "3"))

• ✭✭✭✭✭✭
Options

You are so close! I think you just need some brackets, additional quotation marks, and equal signs. 😀

Try this...

=IF([Client Tier]@row ="Tier 1", "1", IF([Client Tier]@row= "Tier 2", "2", IF([Client Tier]@row ="Tier 3", "3"))

• ✭✭✭✭
Options

Thanks, I'll give it a try and let you know! Much appreciated!

• ✭✭✭✭
Options

Thank you! It worked. I wanted it to return as a numeric value and removed the quotes around the 1,2,3

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!