मुख्य सामग्री पर जाएं

एक्सेल में चेकबॉक्स को एकाधिक सेल से कैसे लिंक करें?

लेखक: ज़ियाओयांग अंतिम संशोधित: 2022-07-07

चेकबॉक्स को कई सापेक्ष सेल से लिंक करने से आपको कुछ गणनाएँ जल्दी और आसानी से करने में मदद मिल सकती है, जब आपको केवल चेक किए गए या अनचेक किए गए सेल का योग, गिनती या औसत करने की आवश्यकता होती है। लेकिन, क्या आपने कभी वर्कशीट में चेकबॉक्स को एक साथ कई सेल से लिंक करने का प्रयास किया है?

चेकबॉक्स को एक-एक करके सूत्र के साथ एकाधिक कक्षों से लिंक करें

वीबीए कोड के साथ चेकबॉक्स को एक साथ कई सेल से लिंक करें


तीर नीला दायां बुलबुला चेकबॉक्स को एक-एक करके सूत्र के साथ एकाधिक कक्षों से लिंक करें

चेकबॉक्स को किसी विशिष्ट सेल से लिंक करने के लिए, वास्तव में, आप उन्हें मैन्युअल रूप से लिंक करने के लिए एक सरल सूत्र लागू कर सकते हैं।

1. अपनी वर्कशीट में चेकबॉक्स डालने के बाद, चेकबॉक्स का चयन करने के लिए कृपया दबाएँ कंट्रोल कुंजी और फिर पहले चेकबॉक्स पर क्लिक करें जिसे आप अन्य सेल से लिंक करना चाहते हैं।

2. फिर फॉर्मूला बार में बराबर का चिह्न टाइप करें =, और फिर उस सेल पर क्लिक करें जिससे आप चेकबॉक्स को लिंक करना चाहते हैं, उदाहरण के लिए बी2, स्क्रीनशॉट देखें:

दस्तावेज़-लिंक-एकाधिक-चेकबॉक्स-1

3. और फिर दबाएं दर्ज कीबोर्ड पर कुंजी, अब, जब आप इस चेकबॉक्स को चेक करेंगे, तो लिंक किया गया सेल प्रदर्शित होगा जब सही है, यदि इसे अनचेक करें, तो यह प्रदर्शित होगा असत्य, स्क्रीनशॉट देखें:

दस्तावेज़-लिंक-एकाधिक-चेकबॉक्स-2

4. अन्य चेकबॉक्स को एक-एक करके लिंक करने के लिए उपरोक्त चरणों को दोहराया।


तीर नीला दायां बुलबुला वीबीए कोड के साथ चेकबॉक्स को एक साथ कई सेल से लिंक करें

यदि सैकड़ों और हजारों चेकबॉक्स को अन्य कोशिकाओं से जोड़ने की आवश्यकता है, तो पहली विधि प्रभावी ढंग से काम नहीं करेगी, उन्हें एक साथ कई कोशिकाओं से जोड़ने के लिए, आप निम्नलिखित वीबीए कोड लागू कर सकते हैं। कृपया इस प्रकार करें:

1. चेकबॉक्स की सूची के साथ अपनी वर्कशीट पर जाएँ।

2. दबाए रखें ALT + F11 कुंजी को खोलने के लिए एप्लीकेशन विंडो के लिए माइक्रोसॉफ्ट विज़ुअल बेसिक.

3। क्लिक करें सम्मिलित करें > मॉड्यूल, और निम्नलिखित कोड को इसमें पेस्ट करें मॉड्यूल विंडो.

वीबीए कोड: चेकबॉक्स को एक साथ कई सेल से लिंक करें

Sub LinkChecks()
'Update by Extendoffice
Dim xCB
Dim xCChar
i = 2
xCChar = "B"
For Each xCB In ActiveSheet.CheckBoxes
If xCB.Value = 1 Then
    Cells(i, xCChar).Value = True
Else
    Cells(i, xCChar).Value = False
End If
xCB.LinkedCell = Cells(i, xCChar).Address
i = i + 1
Next xCB
End Sub

4. और फिर दबाएं F5 इस कोड को चलाने के लिए कुंजी, सक्रिय वर्कशीट में सभी चेकबॉक्स को सेल से लिंक किया गया है, जब आप चेकबॉक्स को चेक करते हैं, तो उसका संबंधित सेल प्रदर्शित होगा जब सही है, यदि आप चेक बॉक्स साफ़ करते हैं, तो लिंक किया गया सेल दिखना चाहिए असत्य, स्क्रीनशॉट देखें:

दस्तावेज़-लिंक-एकाधिक-चेकबॉक्स-3

नोट: उपरोक्त कोड में, मैं = 2, रेखावृत्त 2 यह आपके चेकबॉक्स की आरंभिक पंक्ति और अक्षर है B वह स्तंभ स्थान है जहां आपको चेकबॉक्स को लिंक करने की आवश्यकता है। आप इन्हें अपनी आवश्यकता के अनुसार बदल सकते हैं।


संबंधित आलेख:

Excel में एकल चेकबॉक्स का उपयोग करके सभी चेकबॉक्स का चयन कैसे करें?

एक्सेल में जल्दी से एकाधिक चेकबॉक्स कैसे डालें?

एक्सेल में एकाधिक चेकबॉक्स को तुरंत कैसे हटाएं?

सर्वोत्तम कार्यालय उत्पादकता उपकरण

🤖 कुटूल्स एआई सहयोगी: निम्न के आधार पर डेटा विश्लेषण में क्रांति लाएं: बुद्धिमान निष्पादन   |  कोड जनरेट करें  |  कस्टम फ़ॉर्मूले बनाएं  |  डेटा का विश्लेषण करें और चार्ट बनाएं  |  कुटूल फ़ंक्शंस का आह्वान करें...
लोकप्रिय सुविधाएँ: डुप्लिकेट ढूंढें, हाइलाइट करें या पहचानें   |  रिक्त पंक्तियाँ हटाएँ   |  डेटा खोए बिना कॉलम या सेल को संयोजित करें   |   फॉर्मूला के बिना गोल ...
सुपर लुकअप: एकाधिक मानदंड VLookup    मल्टीपल वैल्यू वीलुकअप  |   अनेक शीटों में VLookup   |   फजी लुकअप ....
उन्नत ड्रॉप-डाउन सूची: शीघ्रता से ड्रॉप डाउन सूची बनाएं   |  आश्रित ड्रॉप डाउन सूची   |  बहु-चयन ड्रॉप डाउन सूची ....
स्तम्भ प्रबंधक: कॉलमों की एक विशिष्ट संख्या जोड़ें  |  कॉलम ले जाएँ  |  छिपे हुए कॉलम की दृश्यता स्थिति टॉगल करें  |  रेंज और कॉलम की तुलना करें ...
फीचर्ड फीचर्स: ग्रिड फोकस   |  डिजाइन देखें   |   बड़ा फॉर्मूला बार    कार्यपुस्तिका एवं शीट प्रबंधक   |  संसाधन लाइब्रेरी (ऑटो टेक्स्ट)   |  खजूर बीनने वाला   |  कार्यपत्रकों को संयोजित करें   |  एन्क्रिप्ट/डिक्रिप्ट सेल    सूची के अनुसार ईमेल भेजें   |  सुपर फ़िल्टर   |   विशेष फ़िल्टर (फ़िल्टर बोल्ड/इटैलिक/स्ट्राइकथ्रू...) ...
शीर्ष 15 टूलसेट12 टेक्स्ट टूल्स (पाठ जोड़ें, अक्षर हटाएँ, ...)   |   50 + चार्ट प्रकार (गैन्ट चार्ट, ...)   |   40+ प्रैक्टिकल सूत्र (जन्मदिन के आधार पर आयु की गणना करें, ...)   |   19 निवेशन टूल्स (QR कोड डालें, पथ से चित्र सम्मिलित करें, ...)   |   12 रूपांतरण टूल्स (शब्दों को संख्याएँ, मुद्रा रूपांतरण, ...)   |   7 विलय और विभाजन टूल्स (उन्नत संयोजन पंक्तियाँ, विभाजन कोशिकाओं, ...)   |   ... और अधिक

एक्सेल के लिए कुटूल के साथ अपने एक्सेल कौशल को सुपरचार्ज करें, और पहले जैसी दक्षता का अनुभव करें। एक्सेल के लिए कुटूल उत्पादकता बढ़ाने और समय बचाने के लिए 300 से अधिक उन्नत सुविधाएँ प्रदान करता है।  वह सुविधा प्राप्त करने के लिए यहां क्लिक करें जिसकी आपको सबसे अधिक आवश्यकता है...

Description


ऑफिस टैब ऑफिस में टैब्ड इंटरफ़ेस लाता है, और आपके काम को बहुत आसान बनाता है

  • Word, Excel, PowerPoint में टैब्ड संपादन और रीडिंग सक्षम करें, प्रकाशक, एक्सेस, विसियो और प्रोजेक्ट।
  • नई विंडो के बजाय एक ही विंडो के नए टैब में एकाधिक दस्तावेज़ खोलें और बनाएं।
  • आपकी उत्पादकता 50% बढ़ जाती है, और आपके लिए हर दिन सैकड़ों माउस क्लिक कम हो जाते हैं!
Comments (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Will this work when I try to sort Alphabetically? I've found that when I sort from A-Z, the check boxes do not follow the cells they were originally next to. Will your method help? Thank you!
This comment was minimized by the moderator on the site
My problem is: I am creating a to do list with daily habits. I want to be able to make statistics from it using the true and false from checking the box linked to a cell but do not want to individually do it, but when i use the code nothing happens?
This comment was minimized by the moderator on the site
Hello, Gregor,
The VBA code works well in my workbook.
You can upload your file here, so that we can check where the problem is.
Thank you!
This comment was minimized by the moderator on the site
Здравствуйте.
Подскажите. Возможно ли суммирование чисел в ячейках по установке флажка?

https://drive.google.com/file/d/1qmEnngPDdgWTISJETJ44IkxG-MABfqhh/view?usp=sharing[/img][/b][/u][/b

В ячейке F3 скрыто число 2 а в ячейке G3 скрыто число 0,3, можно ли сделать так чтоб при установки галочки в ячейке Q3 вычислялась сумма.
Сумма вычислений только на строку в диапазоне F3-P3
This comment was minimized by the moderator on the site
great thread and it works for me.
BUT, I need to save the TRUE/FALSE data to another sheet. What is the VBA to save it to another sheet other than the active one?
This comment was minimized by the moderator on the site
How about if you have some empty rows in ColumnA (as per your example) in between checkboxes? Using the above code it gets the linked cells wrong if there are empty rows because it does not skip them. Interested to see the solution
This comment was minimized by the moderator on the site
Did u find any solution for this? Same problem
This comment was minimized by the moderator on the site
Sub LinkCheckBoxes()

Dim chk As CheckBox

Dim lCol As Long

lCol = 1 'number of columns to the right for link



For Each chk In ActiveSheet.CheckBoxes

With chk

.LinkedCell = _

.TopLeftCell.Offset(0, lCol).Address

End With

Next chk



End Sub
This comment was minimized by the moderator on the site
Hello! Nice post about the VBA... but what if there are 3 columns that has checkboxes that needs to be linked in three other columns as well? Let's say columns B, C, and D has checkboxes and should be linked to columns H, I, and J respectively.
This comment was minimized by the moderator on the site
Hi, Having same problem - Have you found out how to get around this? Thanks, Paul
This comment was minimized by the moderator on the site
Hey,

Try this:

Sub LinkCheckBoxes()
Dim chk As CheckBox
Dim lCol As Long
lCol = 2 'number of columns to the right for link

For Each chk In ActiveSheet.CheckBoxes
With chk
.LinkedCell = _
.TopLeftCell.Offset(0, lCol).Address
End With
Next chk

End Sub



If you have for example, checkboxes in D,E,F change "Icol" to 1, so it links to G,H and I, respectively.
This comment was minimized by the moderator on the site
Hi, I have the same issue but did not work for me, can you help please.Thanks
This comment was minimized by the moderator on the site
thank you very much
This comment was minimized by the moderator on the site
Can you help me out with this same problem?
This comment was minimized by the moderator on the site
Can I do this and program the boxes to say something other than true and false?
This comment was minimized by the moderator on the site
Hi, In your VBA code: link checkboxes to multiple cells at once, the code is set up to link the cell below it. How is the code if I want to link the cell to the left of the first one? Thanks!
This comment was minimized by the moderator on the site
i have more than 40000 cell which have checkbox. when i use this code, it takes more than 5 second to process, i define different macros for different cells but i have still the problem, what can i do?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations