Hello, I tried posting this question before, but didn't get any hits on it. I have an IF ROUND statement in a spreadsheet and I'm trying to extend it to four possible scenarios. I have one cell (on Tolerances!$B$27) that I update based on a length of time. The problem is that I might have 4 possible lengths of time (1, 5, 10, or 15). See my current formula below for a reference based on a 10 minute time span. If I change that tolerance cell to a 15, I'd like the formula to read that and calculate based on that amount of time (so it would run the second scenario I have below). And, as I said, I also need to incorporate a 1 and 5 minute span possibility. I've tried many combinations of this and can't get it to work once nested. Anyone have an idea of how to do this?
This is my current formula:
=IF(Tolerances!$D$37=10,IF(ISBLANK(T_Data!F12),NA(),IF(T_Data!F52<T_Data!F2,NA(),ROUND(IF(AND(T_Data!F12>=Tolerances!$B$27,T_Data!F12<Tolerances!$C$27),(T_Data!F12-T_Data!F2)/Tolerances!$D$37,NA()),1))))
This is an example I'd like to add for a second scenario:
=IF(Tolerances!$D$37=15,IF(ISBLANK(T_Data!F17),NA(),IF(T_Data!F52<T_Data!F2,NA(),ROUND(IF(AND(T_Data!F17>=Tolerances!$B$27,T_Data!F17<Tolerances!$C$27),(T_Data!F17-T_Data!F2)/Tolerances!$D$37,NA()),1))))
This is my current formula:
=IF(Tolerances!$D$37=10,IF(ISBLANK(T_Data!F12),NA(),IF(T_Data!F52<T_Data!F2,NA(),ROUND(IF(AND(T_Data!F12>=Tolerances!$B$27,T_Data!F12<Tolerances!$C$27),(T_Data!F12-T_Data!F2)/Tolerances!$D$37,NA()),1))))
This is an example I'd like to add for a second scenario:
=IF(Tolerances!$D$37=15,IF(ISBLANK(T_Data!F17),NA(),IF(T_Data!F52<T_Data!F2,NA(),ROUND(IF(AND(T_Data!F17>=Tolerances!$B$27,T_Data!F17<Tolerances!$C$27),(T_Data!F17-T_Data!F2)/Tolerances!$D$37,NA()),1))))