Need some creative insight -
Simple checkbook application:
ColA = Amount
ColB = Account
ColC = Balance (computed field = previous balance - current amount)
For a row curr (curr>1), I want to:
1.look up the previous occurrence of the account in B(curr) (i.e. where B(curr) = B(prev) where prev=Max(1 --> n-1)),
2. get the previous balance from C(prev),
3. subtract the current amount A(curr) from C(prev), and
4. store it in the current balance C(curr)
The interesting part (I think) is finding the PREVIOUS occurrence of the account in ColB, not the FIRST occurrence (e.g. by using VLOOKUP)
Anyone have any thoughts on how to do this?
Simple checkbook application:
ColA = Amount
ColB = Account
ColC = Balance (computed field = previous balance - current amount)
For a row curr (curr>1), I want to:
1.look up the previous occurrence of the account in B(curr) (i.e. where B(curr) = B(prev) where prev=Max(1 --> n-1)),
2. get the previous balance from C(prev),
3. subtract the current amount A(curr) from C(prev), and
4. store it in the current balance C(curr)
The interesting part (I think) is finding the PREVIOUS occurrence of the account in ColB, not the FIRST occurrence (e.g. by using VLOOKUP)
Anyone have any thoughts on how to do this?