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.

Help with a formula

Could anyone help with a formula? I want to be able to calculate a total based on a column row. If the number is less than 100 it should calculate @ 50 cents, if between 100 and 299 it should calculate @ 75 cents and anything over is calculated at $1. My formula is coming up with unparseable

=IF(AND([Total Attendance]@row<100*"0.5",IF[Total Attendance]@row<100<299*"0.75",IF[Total Attendance]@row>299*"1")))


Any suggestions would be greatly appreciated

Best Answer

  • ✭✭✭
    edited 08/03/23 Answer ✓

    =IF([Total Attendance]@row <= 99, 0.5, IF([Total Attendance]@row <= 299, 0.75, 1)) will provide you with the multiplier.

    I think what you are asking is that you then want it to apply that amount to the Total Attendance. Am I right?

    In that case, the formula would be

    =IF([Total Attendance]@row <= 99, 0.5*[Total Attendance]@row, IF([Total Attendance]@row <= 299, 0.75*[Total Attendance]@row, 1*[Total Attendance]@row))

    or

    =IF([Total Attendance]@row <= 99, 0.5*[Data]@row, IF([Total Attendance]@row <= 299, 0.75*[Data]@row, 1*[Data]@row))

    Where "Data" is the row that contains the Data you want to multiply

    Note: I do not have to have the AND Case as the If statement reads left to right. I have already checked for Less than 100 so the next check of less than 299 will not include the 99 or lower as it has already been captured by the first statement.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions