Note: line breaks added for readability. 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: 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.

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.