L
Lori
I need a function that will return a value depending on
whether the value in a cell is greater or less than 24. If
it is greater than 24, and the value of the previous cell
is equal to or greater than 24, then the value returned
should be zero; if the value is greater than 24, and the
value of the previous is less than 24, the the value
should be 20.63 times 24 minus the value of the previous
cell; if the value is less than 24 (and therefore the
value of the previous cell will also be less than 24, as
these are cumulative numbers, then the value returned
should be 20.63 x the value of the cell.
I tried it this way:
=if(c7>24ANDc6>24),0,(if(c7>24ANDc6<=24),20.63*(24-
c6),20.63*c7
This didn't work. It's probably a mess several ways.
Can anyone help me out?
TIA
Lori
whether the value in a cell is greater or less than 24. If
it is greater than 24, and the value of the previous cell
is equal to or greater than 24, then the value returned
should be zero; if the value is greater than 24, and the
value of the previous is less than 24, the the value
should be 20.63 times 24 minus the value of the previous
cell; if the value is less than 24 (and therefore the
value of the previous cell will also be less than 24, as
these are cumulative numbers, then the value returned
should be 20.63 x the value of the cell.
I tried it this way:
=if(c7>24ANDc6>24),0,(if(c7>24ANDc6<=24),20.63*(24-
c6),20.63*c7
This didn't work. It's probably a mess several ways.
Can anyone help me out?
TIA
Lori