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

Excel में डुप्लिकेट के बिना यादृच्छिक संख्या कैसे उत्पन्न करें?

लेखक: रवि अंतिम संशोधित: 2020-04-22

कई मामलों में, आप Excel में यादृच्छिक संख्याएँ उत्पन्न करना चाह सकते हैं? लेकिन संख्याओं को यादृच्छिक बनाने के सामान्य फ़ार्मुलों के साथ, कुछ डुप्लिकेट मान भी हो सकते हैं। यहां मैं आपको एक्सेल में डुप्लिकेट के बिना रैंडम नंबर जेनरेट करने की कुछ तरकीबें बताऊंगा।

सूत्रों के साथ अद्वितीय यादृच्छिक संख्याएँ उत्पन्न करें

Excel के सम्मिलित यादृच्छिक डेटा के लिए कुटूल के साथ अद्वितीय यादृच्छिक संख्या उत्पन्न करें (आसान!) अच्छा विचार3


तीर नीला दायां बुलबुला सूत्रों के साथ अद्वितीय यादृच्छिक संख्याएँ उत्पन्न करें

एक्सेल में अद्वितीय यादृच्छिक संख्याएँ उत्पन्न करने के लिए, आपको दो सूत्रों का उपयोग करने की आवश्यकता है।

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

2. और पूरे कॉलम E को दबाकर सेलेक्ट करें कंट्रोल + अंतरिक्ष कुंजियाँ एक साथ, और फिर दबाएँ कंट्रोल + D सूत्र को लागू करने की कुंजी = रैंड () संपूर्ण कॉलम ई. स्क्रीनशॉट देखें:
दस्तावेज़-रैंडमाइज़-नो-रिपीट-2

3. फिर सेल D1 में, अपनी आवश्यक यादृच्छिक संख्या की अधिकतम संख्या टाइप करें। इस मामले में, मैं 1 और 50 के बीच बिना दोहराए यादृच्छिक संख्याएं डालना चाहता हूं, इसलिए मैं डी50 में 1 टाइप करूंगा।
दस्तावेज़-रैंडमाइज़-नो-रिपीट-3

4. अब कॉलम A पर जाएं, सेल A1 चुनें, यह फॉर्मूला टाइप करें =IF(ROW()-ROW(A$1)+1>$D$1/2,"",RANK(OFFSET($E$1,ROW()-ROW(A$1)+(COLUMN()-COLUMN($A1))*($D$1/2),),$E$1:INDEX($E$1:$E$1000,$D$1))), फिर भरण हैंडल को अगले कॉलम बी तक खींचें, और भरण हैंडल को अपनी आवश्यक सीमा तक नीचे खींचें। स्क्रीनशॉट देखें:
दस्तावेज़-रैंडमाइज़-नो-रिपीट-4

अब, इस श्रेणी में, आपको जिन यादृच्छिक संख्याओं की आवश्यकता है, उन्हें दोहराया नहीं जाएगा।

नोट:

1. उपरोक्त लंबे सूत्र में, A1 उस सेल को इंगित करता है जिसे आप लंबे सूत्र का उपयोग करते हैं, D1 यादृच्छिक संख्या की अधिकतम संख्या को इंगित करता है, E1 कॉलम का पहला सेल है जिसे आप सूत्र = RAND() लागू करते हैं, और 2 इंगित करता है कि आप सम्मिलित करना चाहते हैं दो स्तंभों में यादृच्छिक संख्या. आप इन्हें अपनी आवश्यकता के अनुसार बदल सकते हैं।

2. जब सभी अद्वितीय संख्याएँ श्रेणी में उत्पन्न हो जाती हैं, तो अनावश्यक कोशिकाओं को रिक्त के रूप में दिखाया जाएगा।

3. इस विधि से, आप केवल संख्या 1 से प्रारंभ करके यादृच्छिक संख्या उत्पन्न कर सकते हैं। लेकिन दूसरे तरीके से, आप आसानी से यादृच्छिक संख्या सीमा निर्दिष्ट कर सकते हैं।


तीर नीला दायां बुलबुला एक्सेल के इन्सर्ट रैंडम डेटा के लिए कुटूल के साथ अद्वितीय यादृच्छिक संख्या उत्पन्न करें

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

कम समय लेकिन उच्च उत्पादकता

एक्सेल 300-2019 के लिए 2003+ पेशेवर उपकरण शामिल हैं
पहला संस्करण 1.0 2011 में जारी किया गया था, अब संस्करण 18.0 है
अधिकांश एक्सेल दैनिक जटिल कार्यों को सेकंडों में हल करता है, आपका समय बचाता है
बिना किसी सीमा के 30 दिन का निःशुल्क परीक्षण

kte包装盒

स्थापित करने के बाद एक्सेल के लिए कुटूल, कृपया नीचे दिए अनुसार कार्य करें:(अब एक्सेल के लिए नि:शुल्क कुटूल डाउनलोड करें!)

1. यादृच्छिक संख्याएँ उत्पन्न करने के लिए आवश्यक श्रेणी का चयन करें और क्लिक करें कुटूल > सम्मिलित करें > यादृच्छिक डेटा डालें. स्क्रीनशॉट देखें:

2। में यादृच्छिक डेटा डालें संवाद, पर जाएँ पूर्णांक टैब में, वह संख्या श्रेणी टाइप करें जिसकी आपको आवश्यकता है से और सेवा मेरे टेक्स्ट बॉक्स, और जांचना याद रखें अद्वितीय मूल्य विकल्प। स्क्रीनशॉट देखें:

3। क्लिक करें Ok यादृच्छिक संख्याएँ उत्पन्न करने और संवाद से बाहर निकलने के लिए।

नोट:यदि आपकी चयनित कोशिकाएँ यादृच्छिक संख्याओं से अधिक हैं, तो अनावश्यक कोशिकाएँ रिक्त के रूप में प्रदर्शित होती हैं।

आप यादृच्छिक अद्वितीय तिथि, यादृच्छिक अद्वितीय समय भी सम्मिलित कर सकते हैं यादृच्छिक डेटा डालें. यदि आप इसका निःशुल्क परीक्षण करना चाहते हैं यादृच्छिक डेटा डालें, कृपया इसे अभी डाउनलोड करें!
यादृच्छिक डेटा डालें

टिप।यदि आप डेटा को यादृच्छिक रूप से चुनना या क्रमबद्ध करना चाहते हैं, तो कृपया एक्सेल के लिए कुटूल का उपयोग करने का प्रयास करें रेंज को यादृच्छिक रूप से क्रमबद्ध करें जैसा कि निम्नलिखित स्क्रीनशॉट में दिखाया गया है। यह 30 दिनों में बिना किसी सीमा के पूर्ण कार्य करता है, कृपया अभी डाउनलोड करें और निःशुल्क परीक्षण करें।

दस्तावेज़ यादृच्छिक रूप से चयन करें


तीर नीला दायां बुलबुला डुप्लिकेट के बिना रैंडम डेटा डालें




कार्यपत्रक में कक्षों की श्रेणी में त्वरित रूप से एकाधिक चेकबॉक्स या बटन डालें

एक्सेल में, आप एक सेल में केवल एक बार एक चेकबॉक्स/बटन डाल सकते हैं, यदि एक ही समय में कई सेल में चेकबॉक्स/बटन डालने की आवश्यकता हो तो यह परेशानी भरा होगा। एक्सेल के लिए कुटूल इसकी एक शक्तिशाली उपयोगिता है -- बैच इंसर्ट चेक बक्से / बैच सम्मिलित करें विकल्प बटन एक क्लिक से चयनित सेल में चेकबॉक्स/बटन डाल सकते हैं।  30 दिनों में पूर्ण-विशेषताओं वाले निःशुल्क परीक्षण के लिए क्लिक करें!
दस्तावेज़ डालें चेक बॉक्स विकल्प बटन
 
एक्सेल के लिए कुटूल: 300 से अधिक उपयोगी एक्सेल ऐड-इन्स के साथ, 30 दिनों में बिना किसी सीमा के आज़माने के लिए निःशुल्क।

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

🤖 कुटूल्स एआई सहयोगी: निम्न के आधार पर डेटा विश्लेषण में क्रांति लाएं: बुद्धिमान निष्पादन   |  कोड जनरेट करें  |  कस्टम फ़ॉर्मूले बनाएं  |  डेटा का विश्लेषण करें और चार्ट बनाएं  |  कुटूल फ़ंक्शंस का आह्वान करें...
लोकप्रिय सुविधाएँ: डुप्लिकेट ढूंढें, हाइलाइट करें या पहचानें   |  रिक्त पंक्तियाँ हटाएँ   |  डेटा खोए बिना कॉलम या सेल को संयोजित करें   |   फॉर्मूला के बिना गोल ...
सुपर लुकअप: एकाधिक मानदंड 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
En la parte Genere números aleatorios únicos con fórmulas como hago para ampliar el numero de columnas pasar de 2 a 5 sin repetir los numeros segun la formula que ud puso: =IF(ROW()-ROW(A$1)+1>$D$1/2,"",RANK(OFFSET($E$1,ROW()-ROW(A$1)+(COLUMN()-COLUMN($A1))*($D$1/2),),$E$1:INDEX($E$1:$E$1000,$D$1)))
This comment was minimized by the moderator on the site
Hello. I just found this site, and am trying to figure out best way to assign a new code to people. I'd like to assign a random code for people to use between 1000 and 65000, that does not equal any codes already assigned. I'd also like it to be formatted with 5 numbers (00000), but that's not a big deal if it doesn't take care of that. Any ideas on how to make this work? TIA :-)
This comment was minimized by the moderator on the site
Hi, Janel, why you donot try the Data Validation in Excel? It can only allow whole numbers between 1000 and 65000 to be entered in a cell range.
This comment was minimized by the moderator on the site
Help anyone :-) This one I cannot figure out. At our school we often put together students in groups - 2 and 2 together for a number of working sessions. 9 in this case. There are 18 students (vary) in the class. What I am chasing is a formula that gives me a random result of who should work together in the 9 working sessions without having students meeting each other twice. So I need Excel to give me a result of 18 students spread across 9 working sessions and any student must not be match with another student twice. How the xxxx do I fix that? I have search all over the place for inspiration without luck. Any input is appreciated :-)
This comment was minimized by the moderator on the site
Hi, Anders, you need to list all names in column A, then in column B, apply formula =rand(), then specify 2 as the size in cell F2, now apply this formula =ROUNDUP(RANK(B3,$B$3:$B$19)/$F$2,0) in column C as below screenshot shown
This comment was minimized by the moderator on the site
Hi. Thanks for your reply.
I understand you suggestions, but how do I achieve a setup where all students are assigned to maksimum number of workshops where 2 students are randomly assigned to first one workshop, then the second workshop, then the third workshop etc. etc. and to take this even further a student must not be matched with another student that he/she already have worked with. So when having 18 students I need "the system" to allocate all student to (in this case) 9 workshop (e.g. one workshop per week) and no student should be a student they have already worked with.
This comment was minimized by the moderator on the site
Hi there, did you ever manage to work out a solution to this, I've encountered the same issue. Any help would be appreciated.
This comment was minimized by the moderator on the site
Or you could use a sudoku setup.
This comment was minimized by the moderator on the site
How can I do the same thing with a custom list? Not numbers?
This comment was minimized by the moderator on the site
Your custom list is in Column A. Lets say it has 100 values and it is located in A1:A100

Column B is a counter:
1 for B1 and (B1+1) for B2:B100

Column C is a random list:
RAND() for C1:C100

Column D is a random rank based on the random list:
RANK.EQ(C1;$C$1:$C$100)

Column E is your output:
INDEX($A$1:$A$100;MATCH(D1;$B$1:$B$100;0))

Note: There is virtually no chance of generating a duplicate value on column C since RAND() have billions of possibilities. But, if you really want to erase that chance you can type the following formula at column D2:D100
IF(COUNTIFS($C$2:C2;C2)>0;D1+1;RANK.EQ(C2;$C$1:$C$100))
This comment was minimized by the moderator on the site
I need to create 5000 random numbers 1-90 no duplicates 30 columes I and using the formula =RAND() and =IF(ROW()-ROW(A$1)+1>$D$1/2,"",RANK(OFFSET($E$1,ROW()-ROW(A$1)+(COLUMN()-COLUMN($A1))*($D$1/2),),$E$1:INDEX($E$1:$E$1000,$D$1))) is there way that i could change the formula to extract the 5000 numbers
This comment was minimized by the moderator on the site
Sorry I have no idea, you can place this problem to our forum https://www.extendoffice.com/forum.html, maybe someone can help you.
This comment was minimized by the moderator on the site
After about three hours of trying to completely understand the long complicated formula to generate random numbers without duplicates, I figured out a far simpler formula that has the same results. After you randomly generate the numbers in a column using the RAND() function, You can simplify the formula:=IF(ROW()-ROW(A$1)+1>$D$1/2,"",RANK(OFFSET($E$1,ROW()-ROW(A$1)+(COLUMN()-COLUMN($A1))*($D$1/2),),$E$1:INDEX($E$1:$E$1000,$D$1))) in cell a1 to =Rank(E1,$E$1:$E$50). Then if you would like 50 random generated "unique numbers." you simply drag the formula through column a to cell a50. It is a lot simpler. Thank you for answering my question regardless of the huge unneeded formula. If you did not have this website. I don't think I would have been able to solve my problem. #WAR Jiggly
This comment was minimized by the moderator on the site
Actually, if you have two equal values, rank will give the same value to both. Rank formula does return repeated rank values.
This comment was minimized by the moderator on the site
Manuel Ramirez.

The formula RAND() has hundreds of billions of possibilities, but even so you can use a conditional to not repeat the numbers:
A1 = Rank(E1,$E$1:$E$50)
A2 = IF(COUNTIFS($E$1:E1;E1)>1;A1+1;Rank(E2,$E$1:$E$50)
This comment was minimized by the moderator on the site
Hi, Base on Generate unique random numbers with formulas , How can I specify the starting point of a random number? Let's say I want to random "15 to 30".
This comment was minimized by the moderator on the site
Use RANDBETWEEN() to get random numbers lies between two numbers.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations