Hello!
Can anyone help me with extracting Installment dues from a set of table.
Test Data with result required is attached herewith
Thank & regard
Vikash
Hello!
Can anyone help me with extracting Installment dues from a set of table.
Test Data with result required is attached herewith
Thank & regard
Vikash
Thanks & Regards
Vikash Dalmia
+91 8981274090
Not sure what's happening in column H as it doesn't match column B.
Can you not simply copy column B to E to another sheet?
According to the attachment a VBA demonstration as a beginner starter :
PHP Code:
Sub Demo1()
Dim V, R&, C%, M
V = Range("B3", [F2].End(xlDown))
For R = 1 To UBound(V)
For C = 1 To 4
M = Application.Min(V(R, C), V(R, 5))
V(R, C) = V(R, C) - M
V(R, 5) = V(R, 5) - M
If V(R, 5) = 0 Then Exit For
Next C, R
[H3:K3].Resize(UBound(V)) = V
End Sub
► Do you like it ? ► ► So thanks to click on bottom left star icon « ★ Add Reputation » ! ◄ ◄
Hello Sir,
with reference to attached excel sheet, Total Fees in Column A is divided into four installment in column B, C, D & E respectively.
Column F is the amount paid by the customer.
I want to identify the remaining installment amount after adjusting the amount paid by the customer in column H,I,J,K
For Example
In Row 6, Customer has paid Rs. 107500/-, that mean He has 0/- amount due in First Installment, Rs.500/- due in second Installment and Installment 3 and 4 as well.
In Row 9, Customer has paid Rs. just Rs. 5000/-, that mean He has 45000/- amount due in First Installment, and Installment 2, 3 and 4 as well.
Hope the said example will help you to understand what i am looking for
Any help in this regard will be highly appreciated
Thank & regard'
Vikash
Already helped !
Hi Marc!
Thank a ton for the solution, it worked perfectly well with VBA,
Is it possible to do with the help of formula?
Thank & regard
Vikash
As this is obviously a VBA forum section so next time create your thread on the appropriate forum section
In M3 and copied across and down.
=MIN(MAX(0,SUM($B3:B3)-$F3),B3)
Pl note
Array formula should be confirmed with Ctrl+Shift+Enter keys together.
If answere is satisfactory press * to add reputation.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks