Fórmula de Excel: Asignar puntos según el retraso -

Tabla de contenido

Fórmula genérica

= IF(time

Summary

To assign penalty points based on an amount of time late, you can use a nested IF formula.In the example shown, the formula in E5 is:

= IF(D5

Note: line breaks added for readability.

Explanation

This formula is a classic example of a nested IF formula that tests threshold values in ascending order. To match the schedule shown in G5:G11, the formula first checks the late by time in D5 to see if it's less than 5 minutes. If so, zero points are assigned:

IF(D5

If the result of the logical test above is FALSE, the formula checks to see if D5 is less than the next threshold, which is 15 minutes:


IF(D5

The same pattern repeats at each threshold. Because the tests are run in order, from smallest to largest, there is no need for more complicated bracketing.

The VALUE function is used to make Excel treat time value at each threshold as a number instead of next.

Note: you can also use VLOOKUP to replace nested IFs if you like.

Articulos interesantes...