• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Amount is distributed as per First in First Out Basis

sambit

Member
Sir,
Please help to resolve the issue.
The amount should be distributed as per First in First Out Basis.
Example File is attached for your reference.
 

Attachments

  • Example File.xlsx
    9.6 KB · Views: 15
Result formula put in H4

then,

In H4, formula copied down :

=IF(VLOOKUP(B4,$I:$J,2,0)<=SUMIF(B$3:B3,B4,H$3:H3),"",IF(SUMIF(B$4:B4,B4,F$4:F4)<=VLOOKUP(B4,$I:$J,2,0),F4,VLOOKUP(B4,$I:$J,2,0)-SUMIF(B$3:B3,B4,H$3:H3)))

77045
 
Back
Top