: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
🪷 คำแสดงเจตนา
ขอผลแห่งการให้ความรู้นี้ จงกลับไปยังผู้ที่เป็นเจ้าของเดิม แม้ข้าพเจ้าจะไม่รู้จักท่านก็ตาม ขอให้แสงแห่งปัญญาที่ท่านเคยจุดไว้ ได้กลับไปเติมเต็มชีวิตของท่านอีกครั้ง และขอให้เจตนาของข้าพเจ้าเป็นการคืนความดีอย่างสงบ

Booking Gen Pro

ฟอรัมถาม-ตอบปัญหาการใช้งาน 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

Booking Gen Pro

#1

Post by sna »

hi Dear,

I need formula to do accounting entries for calculation general provisioning.

if current month amount >previous month amount I need to Dr value in colour cells row Gen and Global Prov and Cr Doubtful and bad debt.if current month<previous month I need Dr value in colour cells row Doubtful and bad debt and Cr Gen and Global Prov but if current month =previous month I need blank cells (no entry).

note : current month is applied 1% to balance at other bank


Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
norkaz
Gold
Gold
Posts: 1805
Joined: Wed Jan 12, 2011 7:59 pm
Excel Ver: 2013,365

Re: Booking Gen Pro

#2

Post by norkaz »

...

B6
=IF(C2<D2,B2,"")

B7
=IF(C2>D2,B2,"")

C6
=B7

C7
=B6

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

Re: Booking Gen Pro

#3

Post by sna »

sorry it is not working.
I mean if c2>d2 it would Dr amount variance between c2 and d2 to Gen and Global Prov and amount variance also will go to Cr Doubtful and bad debt as well.
if c2<d2 it would Cr amount variance between c2 and d2 to Gen and Global Prov and amount variance also will go to C
Dr Doubtful and bad debt as well.
If c2=d2 the Dr and Cr would be nothing (blank).

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

Re: Booking Gen Pro

#4

Post by norkaz »

...


B6
=IF(C2<D2,D2-C2,"")

B7
=IF(C2>D2,C2-D2,"")

C6
=B7

C7
=B6

If it's not the right solution, give us the excel sample file with the answers that it would be.

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

Re: Booking Gen Pro

#5

Post by sna »

thank you it works.but if I need acc code instead.
for example if c2>d2 I need
Dr Cr
64280 38920
If c2<d2 I need
Dr Cr
38920 64280
I need Dr to come first
Else if c2=d2 I need nothing (blank)
sna
Silver
Silver
Posts: 699
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: Booking Gen Pro

#6

Post by sna »

here's attachment
You do not have the required permissions to view the files attached to this post.
User avatar
norkaz
Gold
Gold
Posts: 1805
Joined: Wed Jan 12, 2011 7:59 pm
Excel Ver: 2013,365

Re: Booking Gen Pro

#7

Post by norkaz »

...

The sample answer is really significant to understand in the same way, please enter the answers related to C2 and D2 values.

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

Re: Booking Gen Pro

#8

Post by sna »

c2 is from balance multiplied with 1% and d2 is amount we had last month from bal last month*1% too.i want to debit Gen and global 64280 and credit to doubtful and bad debt 38920.so if c2>d2 I need
Dr Cr
64280 38920
If c2<d2 I need
Dr Cr
38920 64280
I need Dr to come first
Else if c2=d2 I need nothing (blank)
User avatar
norkaz
Gold
Gold
Posts: 1805
Joined: Wed Jan 12, 2011 7:59 pm
Excel Ver: 2013,365

Re: Booking Gen Pro

#9

Post by norkaz »

..

Hi guy,

It could come to the right solution obviously if you please provide the answers that it would be via the "EXCEL" attached.

The sample answers in the Excel attached are really important to understand in the same way together between questioner and answerer such as which cells or positions need to take the formulas or the way the formulas could be.


Otherwise, try this.

A8
=IF(C2=D2,"",IF(C2>D2,64280,38920))

B8
=IF(C2=D2,"",IF(A8=64280,38920,64280))

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

Re: Booking Gen Pro

#10

Post by sna »

Thank you 🙂
Post Reply