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

एक्सेल में ड्रॉप डाउन सूची से एक सेल में एकाधिक आइटम कैसे चुनें?

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

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

दस्तावेज़ ड्रॉप डाउन सूची से अनेक आइटम चुनें 1 दस्तावेज़ तीर दाएँ दस्तावेज़ ड्रॉप डाउन सूची से अनेक आइटम चुनें 2

VBA वाले सेल में ड्रॉप डाउन सूची से एकाधिक आइटम चुनें

ड्रॉप डाउन सूची से एक सेल में आसानी से और जल्दी से कई आइटम चुनें


VBA वाले सेल में ड्रॉप डाउन सूची से एकाधिक आइटम चुनें

यहां कुछ वीबीए हैं जो इस कार्य को हल करने में आपकी सहायता कर सकते हैं।

किसी सेल में ड्रॉप डाउन सूची से डुप्लिकेट आइटम का चयन करें

1. ड्रॉप-डाउन सूची बनाने के बाद, चयन करने के लिए शीट टैब पर राइट क्लिक करें कोड देखें संदर्भ मेनू से
दस्तावेज़ ड्रॉप डाउन सूची से अनेक आइटम चुनें 3

2. फिर में अनुप्रयोगों के लिए माइक्रोसॉफ्ट विज़ुअल बेसिक विंडो, नीचे दिए गए कोड को कॉपी करें और रिक्त स्क्रिप्ट पर पेस्ट करें।

वीबीए: एक सेल में ड्रॉप डाउन सूची से एकाधिक आइटम चुनें

Private Sub Worksheet_Change(ByVal Target As Range)
'UpdatebyExtendoffice20221111
    Dim xRgVal As Range
    Dim xStrNew As String
    On Error Resume Next
    Set xRgVal = Cells.SpecialCells(xlCellTypeAllValidation)
    If (Target.Count > 1) Or (xRgVal Is Nothing) Then Exit Sub
    If Intersect(Target, xRgVal) Is Nothing Then Exit Sub
    If Target.Value = "" Then Exit Sub
    Application.EnableEvents = False
    xStrNew = Target.Value
    Application.Undo
    If xStrNew = Target.Value Then
    Else
    xStrNew = xStrNew & " " & Target.Value
    Target.Value = xStrNew
    End If
    Application.EnableEvents = True
End Sub

3. कोड सहेजें और ड्रॉप डाउन सूची पर वापस जाने के लिए विंडो बंद करें। अब आप ड्रॉप डाउन सूची से कई आइटम चुन सकते हैं।

ध्यान दें:

1. वीबीए के साथ, यह वस्तुओं को स्थान के आधार पर अलग करता है, आप बदल सकते हैं xStrNew = xStrNew और "" & लक्ष्य मूल्य दूसरों को अपनी आवश्यकतानुसार परिसीमनक बदलने के लिए कहें। उदाहरण के लिए, xStrNew = xStrNew & "," & लक्ष्य मूल्य आइटम को अल्पविराम से अलग कर देंगे.

2. यह वीबीए कोड शीट में सभी ड्रॉप डाउन सूचियों के लिए काम करता है।

ड्रॉप डाउन सूची से बिना दोहराए एक सेल में एकाधिक आइटम चुनें

यदि आप ड्रॉप डाउन सूची से किसी सेल में अद्वितीय आइटम का चयन करना चाहते हैं, तो आप उपरोक्त चरणों को दोहरा सकते हैं और नीचे दिए गए कोड का उपयोग कर सकते हैं।

वीबीए: ड्रॉप डाउन सूची से बिना दोहराए एक सेल में कई आइटम चुनें

Private Sub Worksheet_Change(ByVal Target As Range)
'UpdatebyExtendoffice20221111
    Dim I As Integer
    Dim xRgVal As Range
    Dim xStrNew As String
    Dim xStrOld As String
    Dim xFlag As Boolean
    Dim xArr
    On Error Resume Next
    Set xRgVal = Cells.SpecialCells(xlCellTypeAllValidation)
    If (Target.Count > 1) Or (xRgVal Is Nothing) Then Exit Sub
    If Intersect(Target, xRgVal) Is Nothing Then Exit Sub
    If Target.Value = "" Then Exit Sub
    Application.EnableEvents = False
    xFlag = True
    xStrNew = " " & Target.Value & " "
    Application.Undo
    xStrOld = Target.Value
    If InStr(1, xStrOld, xStrNew) = 0 Then
        xStrNew = xStrNew & xStrOld & " "
    Else
        xStrNew = xStrOld
    End If
    Target.Value = xStrNew
    Application.EnableEvents = True
End Sub

उपरोक्त दोनों वीबीए कोड सेल सामग्री के कुछ हिस्सों को हटाने का समर्थन नहीं करते हैं, केवल सेल के सभी आइटम को साफ़ करने का समर्थन करते हैं।


ड्रॉप डाउन सूची से एक सेल में आसानी से और जल्दी से कई आइटम चुनें

एक्सेल में, वीबीए कोड को छोड़कर, एक सेल में ड्रॉप-डाउन सूची से चयनित कई आइटमों को अनुमति देने का कोई अन्य तरीका नहीं है। हालांकि बहु-चयन ड्रॉप-डाउन सूची का लक्षण एक्सेल के लिए कुटूल क्लिक के साथ इस काम को जल्दी और आसानी से संभाल सकते हैं।

टिप: इस टूल को लागू करने से पहले, कृपया Excel के लिए Kutools इंस्टॉल करें। अभी मुफ्त डाउनलोड पर जाएं.
चरण 1: कुटूल > ड्रॉप-डाउन सूची > बहु-चयन ड्रॉप-डाउन सूची चुनें
चरण 2: बहु-चयन ड्रॉप-डाउन सूची संवाद में, सेटिंग्स निर्दिष्ट करें
  1. दायरा निर्धारित करें;
  2. किसी सेल में आइटमों को सीमांकित करने के लिए विभाजक निर्दिष्ट करें;
  3. पाठ की दिशा तय करें;
  4. ठीक क्लिक करें.
    दस्तावेज़ ड्रॉप डाउन सूची से एकाधिक आइटम चुनें kte 1
रिजल्ट:

ड्रॉप डाउन सूची कुटूल से एकाधिक आइटम चुनें

नोट: मल्टी-सेलेक्ट ड्रॉप-डाउन सूची सुविधा का उपयोग करने के लिए, आपको सबसे पहले एक्सेल के लिए कुटूल इंस्टॉल करना चाहिए डाउनलोड करने के लिए क्लिक करें और अभी 30 दिन का निःशुल्क परीक्षण लें.

Excel में आसानी से एक गतिशील 2-स्तरीय या एकाधिक-स्तरीय आश्रित ड्रॉप-डाउन सूची बनाएं

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

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

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

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

Description


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

  • Word, Excel, PowerPoint में टैब्ड संपादन और रीडिंग सक्षम करें, प्रकाशक, एक्सेस, विसियो और प्रोजेक्ट।
  • नई विंडो के बजाय एक ही विंडो के नए टैब में एकाधिक दस्तावेज़ खोलें और बनाएं।
  • आपकी उत्पादकता 50% बढ़ जाती है, और आपके लिए हर दिन सैकड़ों माउस क्लिक कम हो जाते हैं!
Comments (26)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Como posso utilizar a função com a planilha bloqueada?
This comment was minimized by the moderator on the site
Hi, Macros, try below code, it supports to select multi items in drop down list in protected sheet.
Private Sub Worksheet_Change(ByVal Target As Range)
'UpdatebyExtendoffice20221111
    Dim xRgVal As Range
    Dim xStrNew As String
    On Error Resume Next  
    xType = 0
    xType = Target.Validation.Type
    If xType <> 3 Then Exit Sub
    If (Target.Count > 1) Then Exit Sub

    If Target.Value = "" Then Exit Sub
    Application.EnableEvents = False
    xStrNew = Target.Value
    Application.Undo
    If xStrNew = Target.Value Then
    Else
    xStrNew = xStrNew & " " & Target.Value
    Target.Value = xStrNew
    End If
    Application.EnableEvents = True
End Sub

And also Kutools for Excel 26.1 and later versions supports this job in protected sheet.
This comment was minimized by the moderator on the site
¿Cómo puedo hacer para que el orden en que se coloque el texto, sea tan cuál como yo quiera?

Ejemplo:
Mi texto para la lista es:
TRAMITAR ESTE ASUNTO
COORDINAR
ANALIZAR Y RECOMENDAR

sí selecciono:
TRAMITAR ESTE ASUNTO
ANALIZAR Y RECOMENDAR

me aparece
ANALIZAR Y RECOMENDAR, TRAMITAR ESTE ASUNTO

o sea, los de abajo me aparecen primero, pero quiero que sea en el orden en que voy seleccionando...
TRAMITAR ESTE ASUNTO, ANALIZAR Y RECOMENDAR.....
This comment was minimized by the moderator on the site
Hi, Gorgelys, Kutools's multi-select drop down list can help you. The items you selected will be in the order like you want.
This comment was minimized by the moderator on the site
the code works but won't let me delete can someone please post the new code.
This comment was minimized by the moderator on the site
bonjour,
selon le premier exemple tout fonctionne très bien jusqu'à ce que je verrouille la feuille.
quand la feuille est verrouillée, je n'ai plus le choix multiple !
comment faire ?
merci par avance
This comment was minimized by the moderator on the site
Hi, sorry for that. We will upgrade our feature next version to avoid this problem. Thank you for your feekback.
This comment was minimized by the moderator on the site
Merci bcp
Mais à quand la nouvelle version ?
This comment was minimized by the moderator on the site
Hi, we have updated this version for you, but this is a beta version, please download it from this: https://download.extendoffice.com/downloads/Kutools-for-Excel/beta/26.10/KutoolsforExcelSetup.Inno.exe
If there are any problems, welcome for your feedback.
This comment was minimized by the moderator on the site
Merci,
Je vais la télécharger et essayer.
Bonne journée
This comment was minimized by the moderator on the site
Hi, the new version is in planning, since next version will upgrade multiple features, it may take somewhat time.
This comment was minimized by the moderator on the site
Hi! Como puedo usar este codigo para todo un worksheet y no solo para una pestana?
This comment was minimized by the moderator on the site
Hi, Vero, Kutools for Excel's Multi-select Drop-down List feature suports selecting multiple items from drop down list in the whole worksheet or across workbook, just specify the Specified Scope in the Multi-select Drop-down List Settings dialog.
This comment was minimized by the moderator on the site
How can I do that for the fist formula you provided :) Thanks in advanced!
This comment was minimized by the moderator on the site
Quando quero deletar alguma opção ou todas dá erro. Como posso resolver?
This comment was minimized by the moderator on the site
I am also finding that after selecting multiple items using the updated VBA code, I still cannot clear the cell, it just keeps multiplying.
Does anyone have a solution for this yet?
This comment was minimized by the moderator on the site
Hi, Rusty, the code I have updated for making it more stable. But because the cell is in data validation, blank is out of data validation, the code cannot solve this problem.
This comment was minimized by the moderator on the site
the code works but carries over across all cells and multiplies in the cells and wont allow delete can you assist?
This comment was minimized by the moderator on the site
If I create a sheet with dropdown list using checkboxes, is there a way to share this workbook with this checkboxes feature?
This comment was minimized by the moderator on the site
How would you apply this functionality but making it so that there aren't redundant values? Any help would be appreciated!
This comment was minimized by the moderator on the site
I used this "Select multiple items from drop down list to a cell without repeat"
this is what happened
1. Multiple selections happen without problems.
2. The issue is when i try to edit and remove an option. There is no way for me to remove an option. it keeps multiplying.
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