The formula =ROUND((I4-F10*7.6)/7.6,1)in J4 subtracts multiples of 7.6 from the value in I4 based on the number in F10. If F10 is zero, 0 is subtracted. If F10=2, 15.2 is subtracted, etc. The remainder of the subtraction is divided by 7.6 to convert the hours to 7.6 hour days. The number, 100 in this case, remains in I4.
An alternative:F10 = 3, you enter 100 in I4, and a VBA cell change is triggered which multiplies 7.6 by 3, subtracts 22.8 from 100 and puts 77.2 back in I4. THEN, the formula in J4, or the VBA, just divides 77.2 by 7.6 (10.16 days in J4) . Notice that the original 100 in I4 is lost. Is this what you are looking for?
Do you want the original 100 in I4 replaced by VB?
Bookmarks