एक्सेल से संबंधित एक प्रश्न

2 views
Skip to first unread message

Narayan Prasad

unread,
Dec 16, 2025, 7:09:04 AM (7 days ago) Dec 16
to Scientific and Technical Hindi (वैज्ञानिक तथा तकनीकी हिन्दी)
नमस्ते।

यह चर्चा समूह लंबी अवधि से निष्क्रिय है। चर्चा के लिए मेरा एक्सेल संबंधित एक प्रश्न है।

कोई आठ संख्याएँ अलग-अलग कॉलम में दी हुई हैं। हमें यह मालूम करना है कि इनमें से कम से कम चार संख्याएँ बराबर हैं, या नहीं। यदि हैं, तो उत्तर में 1 लिखना है, नहीं तो शून्य। क्या कोई इन-बिल्ट सूत्र से यह मालूम किया जा सकता है?

इसका अनुप्रयोग: मान लीजिए कि आठ कॉलम में चंद्र को छोड़कर बाकी आठ ग्रह किस-किस राशि में बैठे हैं, उन राशियों की संख्या (मेष = 1, वृषभ = 2, ..., मीन = 12) दी हुई हो और हमें यह मालूम करना है कि चार या अधिक ग्रहों की युति हुई है या नहीं।

सादर
नारायण प्रसाद

Anunad Singh

unread,
Dec 17, 2025, 9:27:49 AM (6 days ago) Dec 17
to technic...@googlegroups.com
नमस्ते नारायण प्रसाद जी,
हम लोग इस समस्या पर माथापच्ची करके एक काम करने वाला हल सुझा सकते हैं , किन्तु मैं  इससे बिलकुल अलग सुझाव देना चाहता हूँ।  मेरा सुझाव है कि  आप अपनी समस्या का हल चैटजीपीटी , गूगल जेमिनी या  किसी अन्य ए आई  औजार से पूछें।  आजकल ये इतने स्मार्ट हो गए हैं कि  प्रोग्रामर लोग भी अपने से अधिक इन पर भरोसा करने लगे हैं।  आवश्यकता है, समय की  सुनने की, और उसके अनुरूप आचरण करने की। 

--
आपको यह मैसेज इसलिए मिला है क्योंकि आपने Google Groups के "Scientific and Technical Hindi (वैज्ञानिक तथा तकनीकी हिन्दी)" ग्रुप की सदस्यता ली है.
इस समूह की सदस्यता खत्म करने और इससे ईमेल पाना बंद करने के लिए, technical-hin...@googlegroups.com को ईमेल भेजें.
यह बातचीत देखने के लिए, https://groups.google.com/d/msgid/technical-hindi/CAKmACTkr9QFuqxN3o4j5znPcwwmWpzJgwnibQ_foA%2BMPNs3KgA%40mail.gmail.com पर जाएं.

Narayan Prasad

unread,
Dec 17, 2025, 10:14:32 AM (6 days ago) Dec 17
to technic...@googlegroups.com
सुझाव के लिए धन्यवाद अनयनाद जी।

जब मैंने गूगल-सर्च किया "How to find in excel whether out of given eight numbers at least four of them are equal?"

https://www.google.com/search?q=How+to+find+in+excel+whether+out+of+given+eight+numbers+at+least+four+of+them+are+equal%3F&oq=How+to+find+in+excel+whether+out+of+given+eight+numbers+at+least+four+of+them+are+equal%3F&gs_lcrp=EgZjaHJvbWUyBggAEEUYOdIBCjY2MTMwajBqMTWoAgCwAgE&sourceid=chrome&ie=UTF-8

उत्तर आयाः
Formula
Assuming your eight numbers are in cells A1 to H1, enter the following formula in another cell:
excel
=IF(MAX(COUNTIF(A1:H1, A1:H1))>=4, "Yes", "No")

मेरा डेटा हैः

image.png

सुझाव के अनुसार मैंने सूत्र दियाः
=IF(MAX(COUNTIF(G3:M3, G3:M3))>=4, 1, 0)

यह सूत्र उत्तर में 0 देता है।
कहाँ गलती है?


सादर
नारायण प्रसाद

यह बातचीत देखने के लिए, https://groups.google.com/d/msgid/technical-hindi/CACa%2Bt%3DMtq3pTKL918CXrBVY0zugmnfzWki3Jvo2XZFwNW_bVzA%40mail.gmail.com पर जाएं.

Anunad Singh

unread,
Dec 17, 2025, 9:46:22 PM (5 days ago) Dec 17
to technic...@googlegroups.com
 There is a small correction. After writing the formula, press Control + shift + enter , and NOT simply 'enter' . There are some minor problem in what you have written, but it will still work.

Narayan Prasad

unread,
Dec 18, 2025, 12:04:44 AM (5 days ago) Dec 18
to technic...@googlegroups.com
I tried the way you have suggested. But still it does not work. BTW, I work on Windows 10.

>
>There are some minor problem in what you have written, but it will still work
>

Please let me know about that minor problem.


यह बातचीत देखने के लिए, https://groups.google.com/d/msgid/technical-hindi/CACa%2Bt%3DM3zTxP4Zwi3iNs4ycx-hmDR33%3DE0Xj0UUdKqBcGYG8sg%40mail.gmail.com पर जाएं.

Anunad Singh

unread,
Dec 18, 2025, 12:28:19 AM (5 days ago) Dec 18
to technic...@googlegroups.com
आपने जो सूत्र लिखा  है वह =IF(MAX(COUNTIF(G3:M3, G3:M3))>=4, 1, 0)  है।   इसमें G3:M3 के बजाय G3:N3 होना चाहिए तब ८ खाने समाहित होंगे। 

जहां तक जाँचने  का प्रश्न है , मैंने इसे लिनक्स पर ओपेनआफिस के कैल्क (Calc) में जांचा और यह उन आठ अंकों के बहुत से संयोजनों के लिए काम कर रहा है।  

----------------------

मैंने प्रश्न को थोड़ा विस्तारपूर्वक और उदाहरण देकर DeepSeek पूछा था।  उत्तर यह मिला -

You can use the MODE function combined with COUNTIF to achieve this. Here's a formula that will work:

Option 1: Using MODE and COUNTIF

=IF(COUNTIF(A1:H1,MODE(A1:H1))>=4,1,0)

How it works:

  • MODE(A1:H1) finds the most frequently occurring number in the range
  • COUNTIF(A1:H1,MODE(A1:H1)) counts how many times that mode appears
  • IF(...>=4,1,0) returns 1 if the count is 4 or more, otherwise 0

Option 2: More robust formula (handles cases with multiple modes)

If you want to check ALL values (not just the most common one):

=IF(MAX(COUNTIF(A1:H1,A1:H1))>=4,1,0)

Important: This is an array formula, so you need to press Ctrl + Shift + Enter instead of just Enter (in older Excel versions). In Excel 365/2021, just press Enter.

Option 3: Without array formula

=IF(SUMPRODUCT(--(COUNTIF(A1:H1,A1:H1)>=4))>0,1,0)

Example with your data:

If your values are in cells A1 through H1:

A1: 9, B1: 8, C1: 9, D1: 5, E1: 9, F1: 9, G1: 9, H1: 2

Any of the formulas above will return 1 because the number 9 appears 5 times.

Note: The first formula (Option 1) is usually sufficient for most cases. Place it in the cell where you want the result (e.g., I1).

Adjust the range A1:H1 to match where your actual data is located.

  


यह बातचीत देखने के लिए, https://groups.google.com/d/msgid/technical-hindi/CAKmACTnvNYJ7nWn7wtbJr9VQO%2Bgg7-y8d8Z8oMGrgOjepvaETw%40mail.gmail.com पर जाएं.

Narayan Prasad

unread,
Dec 18, 2025, 1:12:33 AM (5 days ago) Dec 18
to technic...@googlegroups.com
>
>आपने जो सूत्र लिखा  है वह =IF(MAX(COUNTIF(G3:M3, G3:M3))>=4, 1, 0)  है।   इसमें G3:M3 के बजाय G3:N3 होना चाहिए तब ८ खाने समाहित होंगे
>

जी, बहुत-बहुत धन्यवाद गलती ढूँढ़ने के लिए!
सुधार के बाद अब यह काम कर रहा है। पहले मैं यह काम मैनुआली करता था।
बाकी सुझाव को जाँचने के बाद रिपोर्ट करूँगा।


सादर
नारायण प्रसाद
यह बातचीत देखने के लिए, https://groups.google.com/d/msgid/technical-hindi/CACa%2Bt%3DOzTefdNfEJWzLxUGZNXw17T_drgJ7gqG56aRbJqgBzwg%40mail.gmail.com पर जाएं.
Reply all
Reply to author
Forward
0 new messages