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

Excel में कक्षों की श्रेणी में बोल्ड संख्याओं का योग/गिनती कैसे करें?

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

जब आपके पास एक डेटा रेंज होती है जिसमें वर्कशीट में कुछ बोल्ड नंबर होते हैं, और अब आप केवल बोल्ड सेल को जोड़ना या गिनना चाहते हैं, तो बेशक आप उन्हें एक-एक करके मैन्युअल रूप से जोड़ सकते हैं, लेकिन इसमें समय लगेगा। आप एक्सेल में केवल बोल्ड सेल को आसान और त्वरित तरीके से कैसे जोड़ या गिन सकते हैं?

उपयोगकर्ता परिभाषित फ़ंक्शन (VBA और सूत्र) के साथ एक श्रेणी में बोल्ड संख्याओं की गणना करें
उपयोगकर्ता परिभाषित फ़ंक्शन (VBA और सूत्र) के साथ एक श्रेणी में बोल्ड संख्याओं का योग
एक्सेल के लिए कुटूल के साथ एक श्रेणी में बोल्ड सेल को गिनने और उनका योग करने के लिए कई क्लिक करें


उपयोगकर्ता परिभाषित फ़ंक्शन के साथ एक श्रेणी में बोल्ड संख्याओं की गणना करें

निम्नलिखित उपयोगकर्ता परिभाषित फ़ंक्शन बोल्ड कोशिकाओं की संख्या शीघ्र प्राप्त करने में आपकी सहायता कर सकता है। कृपया इस प्रकार करें:

1. दबाए रखें ALT + F11 कुंजियाँ, और यह खुल जाती है एप्लीकेशन विंडो के लिए माइक्रोसॉफ्ट विज़ुअल बेसिक.

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

VBA कोड: कक्षों की श्रेणी में बोल्ड संख्याएँ गिनें

Function CountBold(WorkRng As Range)
'Update 20220516
Dim Rng As Range
Dim xCount As Double
For Each Rng In WorkRng
    If Rng.Font.Bold Then
        xCount = xCount + 1
    End If
Next
CountBold = xCount
End Function

3. फिर इस कोड को सेव करें और इस फॉर्मूले को टाइप करें =काउंटबोल्ड(A1:C9) एक रिक्त कक्ष में, स्क्रीनशॉट देखें:

दस्तावेज़-गिनती-बोल्ड-सेल1

4। फिर दबायें दर्ज कुंजी, और आप A1:C9 श्रेणी में बोल्ड सेल की गिनती करेंगे।

दस्तावेज़-गिनती-बोल्ड-सेल2

नोट:ए 1: सी 9 सूत्र में उस श्रेणी को इंगित किया गया है जिसे आप बोल्ड कोशिकाओं को गिनने के लिए फ़ंक्शन का उपयोग करना चाहते हैं, आप इसे अपनी आवश्यकता के अनुसार बदल सकते हैं।


उपयोगकर्ता परिभाषित फ़ंक्शन के साथ एक श्रेणी में बोल्ड संख्याओं का योग करें

और यदि आप किसी डेटा श्रेणी में केवल बोल्ड संख्याओं का योग करना चाहते हैं, तो मैं इसे हल करने के लिए आपके लिए एक उपयोगकर्ता परिभाषित फ़ंक्शन भी बना सकता हूं।

1. नीचे पकड़ो ALT + F11 कुंजियाँ, और यह खुल जाती है एप्लीकेशन विंडो के लिए माइक्रोसॉफ्ट विज़ुअल बेसिक.

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

वीबीए कोड: कोशिकाओं की एक श्रृंखला में बोल्ड संख्याओं का योग

Function SumBold(WorkRng As Range)
'Update 20220516
Dim Rng As Range
Dim xSum As Double
For Each Rng In WorkRng
    If Rng.Font.Bold Then
        xSum = xSum + Rng.Value
    End If
Next
SumBold = xSum
End Function

3. फिर इस कोड को सेव करें और इस फॉर्मूले को टाइप करें =सम्बोल्ड(A1:C9) एक रिक्त कक्ष में, स्क्रीनशॉट देखें:

दस्तावेज़-गिनती-बोल्ड-सेल3

4. और फिर दबाएँ दर्ज कुंजी, A1:C9 श्रेणी के सभी बोल्ड नंबर जोड़ दिए गए हैं। स्क्रीनशॉट देखें:

दस्तावेज़-गिनती-बोल्ड-सेल4

नोट:ए 1: सी 9 सूत्र में वह सीमा इंगित की गई है जिसका उपयोग आप बोल्ड कोशिकाओं को जोड़ने के लिए फ़ंक्शन का उपयोग करना चाहते हैं, आप इसे अपनी आवश्यकता के अनुसार बदल सकते हैं।


एक्सेल के लिए कुटूल के साथ एक श्रेणी में बोल्ड सेल को गिनने और उनका योग करने के लिए कई क्लिक करें

Yआप जटिल वीबीए कोड को संभाले बिना और सूत्रों को याद किए बिना कई क्लिक के साथ किसी श्रेणी में सभी बोल्ड सेल को आसानी से गिन या जोड़ सकते हैं।

आवेदन करने से पहले एक्सेल के लिए कुटूल, कृपया सबसे पहले इसे डाउनलोड करें और इंस्टॉल करें.

1. बोल्ड सेल की गिनती के लिए, परिणाम जानने के लिए कृपया एक रिक्त सेल का चयन करें और फिर क्लिक करें कुटूल > कुटूल्स फ़ंक्शंस > सांख्यिकी एवं गणित > काउंटबायफ़ॉन्टबोल्ड.

और बोल्ड सेल्स के योग के लिए क्लिक करें कुटूल > कुटूल्स फ़ंक्शंस > सांख्यिकी एवं गणित > SUMBYFONTBOLD. स्क्रीनशॉट देखें:

2. एफ मेंकार्य तर्क संवाद बॉक्स में, बोल्ड कोशिकाओं के साथ वह सीमा निर्दिष्ट करें जिसे आपको संदर्भ बॉक्स में गिनना या जोड़ना है, और फिर क्लिक करें OK बटन.

अब निर्दिष्ट सीमा में सभी बोल्ड सेल की गिनती या योग तुरंत चयनित सेल में पॉप्युलेट हो जाता है। स्क्रीनशॉट देखें:

  यदि आप इस उपयोगिता का निःशुल्क परीक्षण (30-दिन) चाहते हैं, कृपया इसे डाउनलोड करने के लिए क्लिक करें, और फिर उपरोक्त चरणों के अनुसार ऑपरेशन लागू करने के लिए जाएं।


एक्सेल के लिए कुटूल के साथ फॉर्मूला सेल संदर्भ को स्थिर रखें


संबंधित लेख:

एक्सेल में सभी बोल्ड सेल या टेक्स्ट को कैसे पहचानें और चुनें?

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

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

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

Description


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

  • Word, Excel, PowerPoint में टैब्ड संपादन और रीडिंग सक्षम करें, प्रकाशक, एक्सेस, विसियो और प्रोजेक्ट।
  • नई विंडो के बजाय एक ही विंडो के नए टैब में एकाधिक दस्तावेज़ खोलें और बनाएं।
  • आपकी उत्पादकता 50% बढ़ जाती है, और आपके लिए हर दिन सैकड़ों माउस क्लिक कम हो जाते हैं!
Comments (22)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hello Anthony,
I was struggling with the same problem. For me, the solution ended up being very simple. I noticed I had 4 Modules listed. I removed all of them and then started over with the above instructions. Now it works perfectly.
This comment was minimized by the moderator on the site
I use the function and keep getting the #NAME? error. I am using Excel 365 and Windows11.
This comment was minimized by the moderator on the site
Hello, Anthony

Have you copied and pasted the code into the Module of Microsoft Visual Basic for Applications window in your worksheet? Afetr pasting the code, then, you should enter the formula as you need.

Or you can upload your file here, we can check where the problem is.

Thank you!
This comment was minimized by the moderator on the site
Ma se metto in grassetto nuove celle, la somma non si aggiorna !!!
This comment was minimized by the moderator on the site
Hello Carlo,

Gald to help. After you bold new cells, the sum won't update automatically. But when you double-click the formula cell, then press Enter, the sum will update. Please have a try.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
Hi Mandy,
thanks for your reply,
Yes I know that after double click the sum will uograde.
Is there any way to upgrade automatically the sum ?

Regards
Carlo
This comment was minimized by the moderator on the site
Hello Carlo,

Sorry that I don't have the solution for automatically upgrading the sum. The easiest way I can think of is to press Ctrl + Alt + F9 to recalculate all worksheets in all open workbooks. Have a nice day.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
А если в ячейках числа и текст? надо просуммировать только ячейки с числами жирным шрифтом.
This comment was minimized by the moderator on the site
RE: CountBold formula This formula does not appear to be dynamic. While it works at first pass, if i change the bolded cells the counters do not update unless i re-enter the formula again. Any tips?
This comment was minimized by the moderator on the site
Yea this is the same for me, otherwise it works great. But if this could be solved so it refreshes the count after each cell deselect like other basic counts it would be perfect!
This comment was minimized by the moderator on the site
Dear guys,
The formula won't update if you just change the format of the number cells.
It updates only when you change the cell content.
This comment was minimized by the moderator on the site
I'm using excel for mac 2011. How can I run the code on my system? thanks!
This comment was minimized by the moderator on the site
I copied and pasted code into excel but get #NAME? error. I made sure to enable macros and using excel 2010 version (don't know if that changes anything). Can anyone please help?!
This comment was minimized by the moderator on the site
[quote]I copied and pasted code into excel but get #NAME? error. I made sure to enable macros and using excel 2010 version (don't know if that changes anything). Can anyone please help?!By Maey[/quote] You have to follow the instruction. It says: "Click Insert > Module, and paste the following code in the Module Window", and you have to do exactly so. Make sure you paste the code in the Module Window, not in the Sheet code Window.
This comment was minimized by the moderator on the site
Thank you.. it's working...
This comment was minimized by the moderator on the site
This works a treat. I only have one issue...it doesn't seem to be adding anything after a decimal point. Any help would be greatly appreciated.
This comment was minimized by the moderator on the site
This works perfectly except it doesn't seem to add my decimal places, only adds the whole dollar. If you have a fix for this I would be very grateful.
This comment was minimized by the moderator on the site
Hi Katie, Use the below code, as the sum shows decimal places. Function SumBold(rng As Range) Dim rCell As Range Application.Volatile SumBold = 0 For Each rCell In rng If rCell.Font.Bold Then _ SumBold = SumBold + rCell Next End Function
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations