Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

How to Convert Dropdown text into number of days

How do I calculate & convert dropdown text (Daily, Weekly, Monthly....) where Day = 1, Week = 7..... into number of days so it can be calculated into my sheet's 'Recurrence' filed (Re attached)

Best Answer

  • ✭✭✭✭✭✭
    Answer ✓

    There is no label value concept in the dropdown so you cannot do that in the same column (Reference), however if you want to populate the next submission date column then you can use the IF formula and add days based on Recurrence value; something like,

    IF(Recurrence@row = "Daily", Recurrence@row + 1, IF(Recurrence@row = "Weekly", Recurrence@row + 7, Recurrence@row + 30))

Answers

  • ✭✭✭✭✭✭
    Answer ✓

    There is no label value concept in the dropdown so you cannot do that in the same column (Reference), however if you want to populate the next submission date column then you can use the IF formula and add days based on Recurrence value; something like,

    IF(Recurrence@row = "Daily", Recurrence@row + 1, IF(Recurrence@row = "Weekly", Recurrence@row + 7, Recurrence@row + 30))

  • ✭✭

    Thanks Sameer! that works like a charm :)

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions