When an employee works overtime for a client, we allocate those hours to the client's most recent shift (farthest row down for that employee), and then allocate the remaining OT up the rows. Column D lists total hours to allocate. Column E is a formula for OT hours available; I am trying to convert Col E to an array, but am running into a circular dependency error:
Formula that works
=IF(D2>0,D2,E3-C3)
Array formula that results in a circular dependency error:
=ARRAYFORMULA(IF(D2:D>0,D2:D,E3:E-C3:C))
I do not want to enable iterative calculations, as my sheet is about two thousand rows. I have read cumulative sum posts that incorporate MMULT and ROW, or SUMIF and ROW into the ARRAYFORMULA function, but I cannot figure out how to cumulatively decrease a number as it moves up rows.
Here is a link to the sheet Thank you.
=ARRAYFORMULA(IF(D2:D>0,D2:D,E3:E-C3:C))
is working fine and it outputs the same as column E. What is exaclty the problem you are having? – Raserhin