I was wondering if anyone knew how to join these two formulas together so they will work and accomplish all that is needed in one cell? Both formulas work separately but I need them to work together in the same cell.=IF(M29=FALSE,(24*(H12-D12)-F12),8) <--- this formula does not consider other possibilities, so it is insufficient, however I need it for the 8 hours if the little box is ticked(see pic below).=IF(E12="","0.00",24*(E12-D12))+IF(G12="",(24*(H12-D12)-F12),(24*(H12-G12)))Please notice there is a repeat in both formulas... (24*(H12-D12)-F12) which I'm assuming is redundant and not necessary to calculate twice.Below is an snippet of what I'm trying to accomplish in cell C12. If the small box is ticked, the C12(Hours Worked) value becomes 8, shown at the end of the first formula. I have to account for all possibilities... clocking-in in the morning and leaving in the morning, clocking-in in the morning and leaving in the afternoon which brings in F12 Cell for lunch break, and clocking-in in the afternoon and leaving in the afternoon.
I tried combining the two formulas in different ways on my own, but that didn't return the correct result/value.