Hi, please help me.
I have SO #, RV #, RV Date and Amount (in column A, B, C and D). And copied SO #, DO #, DO Date (in column F, G and H).
Now i want to return the Voucher Amount and sum it based on SO # and DO Date into column I.
Some Amount is for several DO, thus it didn't need to add from the previous amount. Just return the same amount as the previous one. In other words: Different DO, same DO Date, same amount.
I used lookup:
Code:
=LOOKUP(2;1/(($A$2:$A$18=F4)*($C$2:$C$18<=H4));$D$2:$D$18)
But some amount didn't showed up! And i've used sumif to sum the amount, but it didn't work!
I'm sorry if it's confusing. Thank you.
And here's my worksheet with expected result.
Bookmarks