# 9.1 Spill range आणि # operator

Source: https://ravindrabagale.com/mr/excel/ch09-dynamic-arrays/9-1-spill-ranges-and-the-operator.html
Language: mr (Marathi with English technical terms)

Dynamic-array formula एका cellमध्ये लिहिला तरी अनेक values देऊ शकतो. त्या शेजारच्या cellsमध्ये पसरतात — याला spill म्हणतात. Formula फक्त वरच्या डाव्या anchor cellमध्ये edit करायचा.

Steps

Tableच्या बाहेर K2मध्ये =UNIQUE(tblMini[City]) द्या. Sampleमधल्या सहा Cities K2:K7मध्ये दिसतात.

पूर्ण resultला refer करायला K2#. =COUNTA(K2#) सध्या 6 देतो; result वाढला तरी reference सोबत वाढेल.

Spillच्या आतल्या K5मध्ये थेट edit करण्याचा प्रयत्न Excel रोखू शकतो. #SPILL! दाखवण्यासाठी आधी K2चा formula काढा, K5मध्ये test text ठेवा आणि मग K2मध्ये formula पुन्हा द्या.

Error menuमध्ये Select Obstructing Cells वापरा. Test text काढा; आवश्यक user data असेल तर सुरक्षित दुसरीकडे हलवा.

Spill formula Tableच्या आत न देता बाहेर ठेवा. Merged cells, sheet edge किंवा इतर कारणांनीही #SPILL! येऊ शकतो. Errorचा तपशील वाचा; प्रत्येक वेळी formula योग्यच आहे असं मानू नका.

@ म्हणजे काय?

@ implicit intersectionने arrayमधून current contextसाठी एक value निवडण्याचा संकेत देतो. Tableमध्ये [@Amount] current rowची Amount असते. जुने formulas नवीन Excelमध्ये उघडताना compatibilityसाठी @ दिसू शकतो. Spill हवा असताना @चा अर्थ समजून घ्या; आंधळेपणाने काढू नका.

Supported dynamic-array formulasना Ctrl + Shift + Enter लागत नाही. जुन्या workbooksमध्ये legacy CSE array formulas अजून असू शकतात.

Practice

Categoryची unique list spill करा, #ने count करा, controlled obstruction तयार करून #SPILL! fix करा. Sourceमध्ये नवीन category जोडल्यावर list वाढते का पाहा.

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

K2:K7 hard-code करण्याऐवजी K2# वापरा. पण spillजवळ notes लिहिण्याआधी future resultला जागा लागेल हे लक्षात ठेवा.
