snasui.com ยินดีต้อนรับ ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ ระบุ Version ของ Excel
=IFERROR($F4*(COLUMNS($H4:H4)=1)+G4-SUM(VLOOKUP(INDEX('Uasge Part Assy'!$D:$D,N(IF(1,SMALL(IF($B4='Uasge Part Assy'!$B$4:$B$28,ROW('Uasge Part Assy'!$B$4:$B$28)),ROW(INDIRECT("1:"&COUNTIF('Uasge Part Assy'!$B$4:$B$28,$B4))))-MOD(SMALL(IF($B4='Uasge Part Assy'!$B$4:$B$28,ROW('Uasge Part Assy'!$B$4:$B$28)),ROW(INDIRECT("1:"&COUNTIF('Uasge Part Assy'!$B$4:$B$28,$B4))))+1,5)))),'Production Plan'!$B$4:$E$8,COLUMNS($G4:H4),)*INDEX('Uasge Part Assy'!$C:$C,N(IF(1,SMALL(IF($B4='Uasge Part Assy'!$B$4:$B$28,ROW('Uasge Part Assy'!$B$4:$B$28)),ROW(INDIRECT("1:"&COUNTIF('Uasge Part Assy'!$B$4:$B$28,$B4))))-MOD(SMALL(IF($B4='Uasge Part Assy'!$B$4:$B$28,ROW('Uasge Part Assy'!$B$4:$B$28)),ROW(INDIRECT("1:"&COUNTIF('Uasge Part Assy'!$B$4:$B$28,$B4))))+1,5))))),"")
ตัวอย่าง Uasge Mat.xlsx
You do not have the required permissions to view the files attached to this post.
@ Bo_ry
สอบถามเพิ่มเติมครับ ตรงหน้า Usage part Assy ตอนแรกผมสมมุติให้ Part แต่ละ Part ใช้ Material 5 รายการเท่ากัน แต่เมื่อทำไฟล์จริง Part แต่ละ Part ใช้ Material รายการไม่เท่าไร 1,7 บ้าง 1,3 บ้าง และ 1,4 บ้างเป็นต้น ในไฟล์แนบไม่แน่ใจว่าผมแก้ถูกไหมผู้รู้ช่วยตรวจสอบให้หน่อยครับ
(สูตรหน้า Material Simulation ยาวจริงครับ ถ้าได้คำอธิบายจะดีมากเลยครับ )
ขอบคุณครับ
You do not have the required permissions to view the files attached to this post.