: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

comparative

ฟอรัมถาม-ตอบปัญหาการใช้งานสูตรและฟังก์ชัน Excel
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: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

comparative

#1

Post by sna »

Hi Dear,
I need your help to do comparation items in ReconcileTxn Sheet.The data retrieved from the internal system and some values in some columns contain some values and texts that's hard to reconcile.i need to reconcile LD type, Currency,Loan amount,rate,term,charge amount, repay type and customer.
Could you help provide a solution for this query?
I want to show OK if it matches otherwise check in column AB.
(NoteThe data in ReconcileTxn comes from Intranet and T24Intra Sheets)

Thank in Advance

Best wishes,
You do not have the required permissions to view the files attached to this post.
User avatar
snasui
Site Admin
Site Admin
Posts: 31253
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: comparative

#2

Post by snasui »

:D Could you please give some result and explain what condition to get it?
sna
Silver
Silver
Posts: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: comparative

#3

Post by sna »

Thanks .I want to return OK in Col.AB if SERIAL NUMBER,LDTYPE,CCY,LOAN AMOUNT,RATE,TERM,CHARGE AMT and REPAY
From Intranet and T24 data matching otherwise return Check.

I also need your help regarding macro in the three modules.I just learn vba

Best wishes,
User avatar
snasui
Site Admin
Site Admin
Posts: 31253
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: comparative

#4

Post by snasui »

:D I can't help you with your infomation in post #3 because it not enough for me to understand your requirement.

The better description when you reference to your data is column reference such as A, B, Z, etc. not just value in cell.

I need to know what the column address in three sheets is that you want to compare together.
sna
Silver
Silver
Posts: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: comparative

#5

Post by sna »

In ReconcileTxn needs to compare col F with Col Q,G with R,H with S,I with T,J with U,K with V,L with W and M with X.
Col C thru M got from Intranet Sheet
Col O thru X got from T24 intra

Best wishes
User avatar
snasui
Site Admin
Site Admin
Posts: 31253
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: comparative

#6

Post by snasui »

:D Try this,

AB13

=AND(F13&""=Q13&"",G13=R13,H13=S13,I13=T13,SUBSTITUTE(J13,"M","")=SUBSTITUTE(U13,"M",""),K13=V13,L13=W13,LEFT(M13,10)=LEFT(X13,10))

Enter > Copy down.

If the result is TRUE its means that all are equal.
sna
Silver
Silver
Posts: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: comparative

#7

Post by sna »

Thank you so much
sna
Silver
Silver
Posts: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: comparative

#8

Post by sna »

I also need your help related back up code in this workbook why it is not working fine?also clear data code located in the workbook?

Thanks
User avatar
snasui
Site Admin
Site Admin
Posts: 31253
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: comparative

#9

Post by snasui »

:D What the code that you refer to?

Please tell me about the result that you expected from that code.
sna
Silver
Silver
Posts: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: comparative

#10

Post by sna »

In the module,I need to copy from Reconcile Txn to back up but only data and the other two is to clear old data for intranet and t24 intra
User avatar
snasui
Site Admin
Site Admin
Posts: 31253
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: comparative

#11

Post by snasui »

:D Please give me a module name and procedure name that cause your problem.
sna
Silver
Silver
Posts: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: comparative

#12

Post by sna »

Module 1,2,3.
Once more in sheet T24 intra column K I want to return in ReconcileTxn col U only 60M etc not leading zero like in sheet T24...


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

Re: comparative

#13

Post by sna »

Any solution???
User avatar
snasui
Site Admin
Site Admin
Posts: 31253
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: comparative

#14

Post by snasui »

:D What is the problem of Module 1 and Module 2?
sna
Silver
Silver
Posts: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: comparative

#15

Post by sna »

When run macro it is slow
User avatar
snasui
Site Admin
Site Admin
Posts: 31253
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: comparative

#16

Post by snasui »

:D In my machine it's not slow when run these codes.

You can set calculation to manual before run code and set to default after finished your task as below:

Code: Select all

Sub RCL2Clr()
    Dim rg As Range
    Application.Calculation = xlCalculationManual
    'Other code
    Application.Calculation = xlCalculationAutomatic
End Sub
sna
Silver
Silver
Posts: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: comparative

#17

Post by sna »

Thank you for your Input.
Now once more column J and U,Column K and V not agreement.How to fix this?
Note exchange rate
1USD=4,000 KHR
1THB=129.155 KHR

Best Regards,
I also attached a revised template
You do not have the required permissions to view the files attached to this post.
User avatar
snasui
Site Admin
Site Admin
Posts: 31253
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: comparative

#18

Post by snasui »

:D Adjust your formulas as below:
  1. F13
    =IFERROR(INDEX(INTRANET!AI:AI,MATCH(ROW()-12,INTRANET!$AG:$AG,0))+0,"")
    Enter > Copy down
  2. J13
    =IFERROR(SUBSTITUTE(INDEX(INTRANET!L:L,MATCH(ROW()-12,INTRANET!$AG:$AG,0)),"M","")+0,"")
    Enter > Copy down
  3. Q13
    =IFERROR(INDEX('T24 INTRA'!N:N,MATCH(E13,'T24 INTRA'!$G:$G,0))+0,"")
    Enter > Copy down
  4. U13
    =IFERROR(SUBSTITUTE(INDEX('T24 INTRA'!K:K,MATCH(E13,'T24 INTRA'!$G:$G,0)),"M","")+0,"")
    Enter > Copy down
  5. AB13
    =AND(F13=Q13,G13=R13,H13=S13,I13=T13,J13=U13,ISNUMBER(SEARCH(V13*IF(R13="USD",4000,1),K13)),L13=W13,LEFT(M13,10)=LEFT(X13,10))
    Enter > Copy down
sna
Silver
Silver
Posts: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: comparative

#19

Post by sna »

Thanks this looks better but RATE and Charge Amt not matching.rate is annum and charge amount should be in KHR.
Exchange rate 1USD=4000 KHR,1THB=129.55 KHR.charge any in column V should follow column K.and rate in column I should follow column T.i mean column k is exchanged already and column T rate is in annum.

Hope you see and may help.

Best Wishes 🙏
sna
Silver
Silver
Posts: 721
Joined: Tue May 05, 2020 8:18 am
Excel Ver: Excel 365

Re: comparative

#20

Post by sna »

Note charge amt comes from charge code 7&8 added together but they sometimes mixed with column with charge code 2 if no charge code 2 so it is hard to trace
Post Reply