IF function

Options

Hi,

I have the below formula but it is not working. Can you see where I'm going wrong?

=IF([(Fuel Expense) Fuel Type]@row="Unleaded Petrol (£0.25 per mile)","0.25",IF([(Fuel Expense) Fuel Type]@row="Diesel (£0.45 per mile)",0.45",IF([(Fuel Expense) Fuel Type]@row="Electricity (£0.10 per mile)","0.10")))

Column B needs to show a decimal version of the value that is presented in Column A ((Fuel Expense) Fuel Type)


Thanks,

Ahmet

Best Answer

  • David Tutwiler
    David Tutwiler Overachievers Alumni
    Answer ✓
    Options

    I think you're just missing one set of " before the 0.45. Try this:

    =IF([(Fuel Expense) Fuel Type]@row="Unleaded Petrol (£0.25 per mile)","0.25",IF([(Fuel Expense) Fuel Type]@row="Diesel (£0.45 per mile)","0.45",IF([(Fuel Expense) Fuel Type]@row="Electricity (£0.10 per mile)","0.10")))

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!