# 15.3 Stage 2 — named Tables आणि lookups

Source: https://ravindrabagale.com/mr/excel/ch15-final-project-blinkit-maharashtra-monthly-report/15-3-stage-2-tables-and-lookup-formulas.html
Language: mr (Marathi with English technical terms)

Steps

Stores, Products, Targetsला tblStores, tblProducts, tblTargets नावं द्या.

Store/Product lookup keys unique आणि योग्य typesचे आहेत का तपासा.

tblOrdersमध्ये खालील calculated columns जोडा.

=XLOOKUP([@[Store ID]],tblStores[Store ID],tblStores[Platform],"Not found")
=XLOOKUP([@Product],tblProducts[Product],tblProducts[Category],"Not found")
=XLOOKUP([@Amount],{0;99;199;499},{30;25;15;0},,-1)
=IF([@[Delivery Mins]]="","",IF([@[Delivery Mins]]<=12,"Yes","No"))

Delivery Fee rates काल्पनिक. Negative/invalid Amount आधी handle करा. Fee orderला एकदा लागू आहे; multi-line tableमध्ये प्रत्येक productवर लावून total करू नका. Product नाव unique नसेल तर Product ID वापरा.

जुन्या Excelसाठी

=IFERROR(INDEX(tblStores[Platform],MATCH([@[Store ID]],tblStores[Store ID],0)),"Not found")

IFERROR सर्व errors catch करतो; “Not found” दिसल्यास key missing आहे की दुसरी formula चूक ते पाहा. Fee checks:₹150→25,₹199→15,₹520→0,₹64→30.

Practice

Platform/Categoryमधल्या Not found values COUNTIFने मोजा. Intended masters complete असतील तर zero अपेक्षित; nonzero असल्यास data resolve करा. Blank lookup keys, duplicate master keys आणि missing Delivery Minsचे checks Notesमध्ये लिहा.

रवींद्र बागले यांची tip

Not found लपवण्यासाठी default platform/category भरू नका. Missing keyचं कारण शोधा; false classificationपेक्षा स्पष्ट exception चांगली.
