Basic Formula

S. Roach
S. Roach
edited 04/04/24 in Formulas and Functions

Two different equations are being used.

Equation 1: =IFERROR((SUM([RN Section 1 Score]@row, [RN Section 2 Score]@row, [RN Section 3 Score]@row, [RN Section 4 Score]@row)) / SUM(IF([RN Section 1 Score]@row = "-", 0, 0.3), IF([RN Section 2 Score]@row = "-", 0, 0.3), IF([RN Section 3 Score]@row = "-", 0, 0.2), IF([RN Section 4 Score]@row = "-", 0, 0.2)), "%")

Equation 2: =SUM([MD Section 1 Score]@row, [MD Section 2 Score]@row, [MD Section 3 Score]@row, [MD Section 4 Score]@row)

Equation 1 is used to obtain the average of a weighted score for 4 section. Each section is weighted differently.

Equation 2 is used to obtain the average of 4 sections of equal weights for the 4 sections of a different set of data.

Section 4 in each set of data may or may not be used depending on the type of information collected. If not relevant, the auto populated answer is "N/A". I need a formula that will populate an average, excluding section 4 if it is not used, and any N/A's throughout the data.


I have tried this formula: =COUNTIFS([MD Section 1 Score]@row, [MD Section 2 Score]@row, [MD Section 3 Score]@row, [MD Section 4 Score]@row), "Met") / COUNTIFS([MD Section 1 Score]@row, [MD Section 2 Score]@row, [MD Section 3 Score]@row, [MD Section 4 Score]@row), NOT([MD Section 1 Score]@row, [MD Section 2 Score]@row, [MD Section 3 Score]@row, [MD Section 4 Score]@row), = "N/A")), however it returns a syntax error.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!