:D snasui.com ยินดีต้อนรับ :D
ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย :thup: สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ :arrow: ระบุ Version ของ Excel
:!: โปรดทราบ :!:
  1. กรุณาอ่านกฎการใช้บอร์ด (Forum rules) ในตำแหน่งด้านบนของแต่ละบอร์ด
  2. การสมัครสมาชิก การ Login การกู้คืนรหัสผ่าน
    1. สมัครสมาชิกดูขั้นตอนได้ที่ :arrow: สมัครสมาชิก
    2. Login เข้าระบบโดยคลิกปุ่ม Login ตรงมุมขวาบนของหน้านี้ :roll:
    3. การ Login ผ่าน Facebook ดูวิธีที่ :arrow: Login ผ่าน Facebook
    4. ลืมรหัสผ่านสามารถรับรหัสใหม่ได้ที่ :arrow: Reset รหัสผ่าน
  3. มีปัญหาการใช้งาน แจ้งผู้ดูแลระบบได้ที่ :arrow: ติดต่อผู้ดูแลระบบ
  4. กำหนดการตั้งค่าส่วนตัว เช่นตั้งค่าภาษาเป็นไทยหรืออังกฤษดูได้ที่ :arrow: ตั้งค่าส่วนตัว
  5. การตั้งและตอบกระทู้ดูได้ที่ :arrow: วิธีการตั้งและตอบกระทู้
  6. การจัดรูปแบบตัวอักษรด้วย bbcode ในช่องแสดงความคิดเห็นดูได้ที่ :arrow: จัดรูปแบบตัวอักษร
  7. กำหนดขนาดตัวอักษรใน Browser ดูได้ที่ :arrow: กำหนดขนาดตัวอักษรใน Browser

Allocation of payment

ฟอรัมถาม-ตอบปัญหาการใช้งาน MS Excel and VBA
Forum rules
  1. ไม่อนุญาตให้ใช้ภาษาแชทในการถามและตอบปัญหา ไม่ใช้คำว่า "คับ" หรือ "อ่ะครับ" แทนคำว่า "ครับ" ไม่ใช้คำว่า "เด๋ว" แทนคำว่า "เดี๋ยว" เป็นต้น เนื่องจากเมื่อแปลเป็นภาษาต่างประเทศแล้วจะให้ความหมายผิดไปจากที่ควรจะเป็น
  2. ห้ามถามโดยระบุชื่อผู้ตอบและต้องตั้งชื่อกระทู้ให้สื่อถึงปัญหาที่จะถาม ไม่ตั้งชื่อว่า ช่วยด้วยครับ, มีปัญหามาปรึกษาครับ เป็นต้น
  3. กรุณาอธิบายปัญหาและระบุคำตอบที่ต้องการมาในกระทู้ด้วยเสมอถึงแม้จะอธิบายไว้ในไฟล์แนบแล้วก็ตาม ทั้งนี้เพื่ออำนวยความสะดวกแก่เพื่อนสมาชิกในการค้นหาข้อมูล
  4. กรุณาแนบไฟล์ตัวอย่างพร้อมแสดงคำตอบที่ถูกต้องมาในไฟล์ด้วยเพื่อให้ง่ายต่อการทำความเข้าใจและสะดวกต่อการตอบคำถาม (ขนาดไฟล์ไม่เกิน 500Kb ขนาดภาพไม่เกิน 800*600 Pixel) ไม่แนบเป็น Link มาจากแหล่งอื่นที่อาจจะถูกลบทิ้งไปโดยต้นทางในภายหลัง นอกจากนี้ไม่ควรแนบไฟล์ที่มีข้อมูลสำคัญอันก่อให้เกิดความเสียหายกับตนเองและผู้อื่น
  5. กรณีเป็นคำถามเกี่ยวกับ Programming เช่น VBA, VB.Net, C#, SQL ฯลฯ ต้องลองเขียนมาเองก่อนเสมอ ถามเฉพาะที่ติดปัญหา ระบุ Module, Procedure ที่ติดปัญหาให้ชัดเจน กรุณาโพสต์ Code ให้แสดงเป็น Code คือเปิดด้วย [code] และปิดด้วย [/code] ตัวอย่างเช่น [code]dim r as range[/code] เพื่อให้แตกต่างจากข้อความทั่วไป สะดวกในการอ่านและทดสอบ (คลิกเพื่อดูตัวอย่าง)
  6. กรุณาแจ้งผลการใช้งานเมื่อได้รับคำตอบว่าตรงกับความต้องการหรือไม่
sna
Silver
Silver
Posts: 699
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Allocation of payment

#1

Post by sna »

Hi there

I have got a question to ask you how to track amount due.is it possible with excel formula to handle.

For example I have amount to pay $790 (principal and interest) a client is late to pay so they have a penalty of $ 3.5.
If client comes to pay $150.i need an excel formula to track.so if he/she paid $150 so penalty is 0, interest will leave and principal as well.


Tks
sna
Silver
Silver
Posts: 699
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: Allocation of payment

#2

Post by sna »

here is a sample template.

Tks
You do not have the required permissions to view the files attached to this post.
sna
Silver
Silver
Posts: 699
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: Allocation of payment

#3

Post by sna »

principal would be $453

Interest would be $ 6

Penalty would be zero.

I can track by simple formula minus.

Is there any formula with if and ...to solve?

Tks
User avatar
norkaz
Gold
Gold
Posts: 1758
Joined: Wed Jan 12, 2011 7:59 pm
Excel Ver: 2013,365

Re: Allocation of payment

#4

Post by norkaz »

...

Hi Guy,

I have some questions to clarify related to your questions.

1. Where is $790 come from?
2. Does 3.5$ penalty means for every late payment?

3. Could you please help to provide before and after scenarios for this case?

I mean before is a question that needs to solve -- after means the right answers once the problem is solved.

Norkaz
sna
Silver
Silver
Posts: 699
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: Allocation of payment

#5

Post by sna »

1.forget it.it partially paid in last month so it left 456+153=609 only.
2.3.5$ is penalty for late of 3 days or more...
The problem is how can we can write formula in excel to track amount of principal, interest or penalty left after payment.in this case $150 it will deduct to pay penalty first $3.5 so amount left $146.5 will pay for interest .interest decreases to 146.5$ leaving amount $6.5 so money is over without any left for principal , principal amount stay the same $453.
The procedure said amount paid from client will deduct penalty first then interest and finally, principal.

Thanks
User avatar
norkaz
Gold
Gold
Posts: 1758
Joined: Wed Jan 12, 2011 7:59 pm
Excel Ver: 2013,365

Re: Allocation of payment

#6

Post by norkaz »

...

One point still isn't clear -- where leaving the amount of $6.5 come from?

However, try to follow up with this.

B5
=IF(C5=0,B2-(A2-C2-D2),B2)

C5
=MAX(0,IF(D5=0,C2-(A2-D2),C2))

D5
=MIN(0,A2-D2)

Norkaz
You do not have the required permissions to view the files attached to this post.
sna
Silver
Silver
Posts: 699
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: Allocation of payment

#7

Post by sna »

Thank you so much, really helpful
Post Reply