O
onedaywhen
I want to increment a value used an array formula when it is copied to
the cell below it. In a non-array formula I'd use ROW(A1) but in the
following array formula it causes an error:
=SUM((OFFSET(RefIDs,0,0,1)<>"P")*(OFFSET(Balances,0,0,1)))
In case it isn't obvious, RefIDs and Balances are defined names that
each refer to a range.
Say this is entered in cell H9. When I copy it down to cell H10 I want
it to be:
=SUM((OFFSET(RefIDs,1,0,1)<>"P")*(OFFSET(Balances,1,0,1)))
Here is my attempt that doesn't work:
=SUM((OFFSET(RefIDs,ROW(A1)-1,0,1)<>"P")*(OFFSET(Balances,ROW(A1)-1,0,1)))
Can anyone point me in the direction of the solution, please?
the cell below it. In a non-array formula I'd use ROW(A1) but in the
following array formula it causes an error:
=SUM((OFFSET(RefIDs,0,0,1)<>"P")*(OFFSET(Balances,0,0,1)))
In case it isn't obvious, RefIDs and Balances are defined names that
each refer to a range.
Say this is entered in cell H9. When I copy it down to cell H10 I want
it to be:
=SUM((OFFSET(RefIDs,1,0,1)<>"P")*(OFFSET(Balances,1,0,1)))
Here is my attempt that doesn't work:
=SUM((OFFSET(RefIDs,ROW(A1)-1,0,1)<>"P")*(OFFSET(Balances,ROW(A1)-1,0,1)))
Can anyone point me in the direction of the solution, please?