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

एक्सेल में एक सेल में एकाधिक मान वापस करने के लिए वीलुकअप कैसे करें?

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

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

TEXTJOIN फ़ंक्शन (Excel 2019 और Office 365) के साथ एक सेल में एकाधिक मान लौटाने के लिए Vlookup

उपयोगकर्ता परिभाषित फ़ंक्शन के साथ एक सेल में एकाधिक मान लौटाने के लिए Vlookup

एक उपयोगी सुविधा के साथ एक सेल में एकाधिक मान लौटाने के लिए Vlookup


TEXTJOIN फ़ंक्शन (Excel 2019 और Office 365) के साथ एक सेल में एकाधिक मान लौटाने के लिए Vlookup

यदि आपके पास Excel का उच्च संस्करण जैसे Excel 2019 और Office 365 है, तो एक नया फ़ंक्शन है - टेक्स्टजॉइन, इस शक्तिशाली फ़ंक्शन के साथ, आप जल्दी से वीलुकअप कर सकते हैं और सभी मिलान मानों को एक सेल में वापस कर सकते हैं।

सभी मेल खाने वाले मानों को एक सेल में वापस करने के लिए Vlookup

कृपया नीचे दिए गए सूत्र को रिक्त कक्ष में लागू करें जहां आप परिणाम डालना चाहते हैं, फिर दबाएँ Ctrl + Shift + Enter पहला परिणाम प्राप्त करने के लिए कुंजियाँ एक साथ रखें, और फिर भरण हैंडल को उस सेल तक खींचें, जहाँ आप इस सूत्र का उपयोग करना चाहते हैं, और आपको नीचे दिखाए गए स्क्रीनशॉट के अनुसार सभी संबंधित मान प्राप्त होंगे:

=TEXTJOIN(",",TRUE,IF($A$2:$A$11=E2,$C$2:$C$11,""))

नोट: उपरोक्त सूत्र में, A2: A11 क्या लुकअप रेंज में लुकअप डेटा शामिल है, E2 लुकअप मान है, सी2:सी11 वह डेटा श्रेणी है जिससे आप मिलान मान लौटाना चाहते हैं, "," एकाधिक रिकॉर्ड को अलग करने के लिए विभाजक है।

Vlookup सभी मिलान मानों को डुप्लिकेट के बिना एक सेल में वापस करने के लिए

यदि आप डुप्लिकेट के बिना लुकअप डेटा के आधार पर सभी मिलान मान वापस करना चाहते हैं, तो नीचे दिया गया सूत्र आपकी मदद कर सकता है।

कृपया निम्नलिखित सूत्र को कॉपी करके एक रिक्त कक्ष में चिपकाएँ, फिर दबाएँ Ctrl + Shift + Enter पहला परिणाम प्राप्त करने के लिए कुंजियाँ एक साथ रखें, और फिर अन्य कक्षों को भरने के लिए इस सूत्र को कॉपी करें, और आपको डुप्लिकेट वाले बिना सभी संबंधित मान प्राप्त होंगे जैसा कि नीचे स्क्रीनशॉट में दिखाया गया है:

=TEXTJOIN(",", TRUE, IF(IFERROR(MATCH($C$2:$C$11, IF(E2=$A$2:$A$11, $C$2:$C$11, ""), 0),"")=MATCH(ROW($C$2:$C$11), ROW($C$2:$C$11)), $C$2:$C$11, ""))

नोट: उपरोक्त सूत्र में, A2: A11 क्या लुकअप रेंज में लुकअप डेटा शामिल है, E2 लुकअप मान है, सी2:सी11 वह डेटा श्रेणी है जिससे आप मिलान मान लौटाना चाहते हैं, "," एकाधिक रिकॉर्ड को अलग करने के लिए विभाजक है।

उपयोगकर्ता परिभाषित फ़ंक्शन के साथ एक सेल में एकाधिक मान लौटाने के लिए Vlookup

उपरोक्त TEXTJOIN फ़ंक्शन केवल Excel 2019 और Office 365 के लिए उपलब्ध है, यदि आपके पास अन्य निम्न Excel संस्करण हैं, तो आपको इस कार्य को पूरा करने के लिए कुछ कोड का उपयोग करना चाहिए।

सभी मेल खाने वाले मानों को एक सेल में वापस करने के लिए Vlookup

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

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

वीबीए कोड: एक सेल में एकाधिक मान लौटाने के लिए Vlookup

Function ConcatenateIf(CriteriaRange As Range, Condition As Variant, ConcatenateRange As Range, Optional Separator As String = ",") As Variant
'Updateby Extendoffice
Dim xResult As String
On Error Resume Next
If CriteriaRange.Count <> ConcatenateRange.Count Then
    ConcatenateIf = CVErr(xlErrRef)
    Exit Function
End If
For i = 1 To CriteriaRange.Count
    If CriteriaRange.Cells(i).Value = Condition Then
        xResult = xResult & Separator & ConcatenateRange.Cells(i).Value
    End If
Next i
If xResult <> "" Then
    xResult = VBA.Mid(xResult, VBA.Len(Separator) + 1)
End If
ConcatenateIf = xResult
Exit Function
End Function

3. फिर इस कोड को सहेजें और बंद करें, वर्कशीट पर वापस जाएं और यह सूत्र दर्ज करें: =CONCATENATEIF($A$2:$A$11, E2, $C$2:$C$11, ", ") एक विशिष्ट रिक्त सेल में जहां आप परिणाम रखना चाहते हैं, फिर एक सेल में सभी संबंधित मान प्राप्त करने के लिए भरण हैंडल को नीचे खींचें, स्क्रीनशॉट देखें:

नोट: उपरोक्त सूत्र में, A2: A11 क्या लुकअप रेंज में लुकअप डेटा शामिल है, E2 लुकअप मान है, सी2:सी11 वह डेटा श्रेणी है जिससे आप मिलान मान लौटाना चाहते हैं, "," एकाधिक रिकॉर्ड को अलग करने के लिए विभाजक है।

Vlookup सभी मिलान मानों को डुप्लिकेट के बिना एक सेल में वापस करने के लिए

लौटाए गए मिलान मानों में डुप्लिकेट को अनदेखा करने के लिए, कृपया नीचे दिए गए कोड का उपयोग करें।

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

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

वीबीए कोड: वीलुकअप और एक सेल में कई अद्वितीय मिलान वाले मान लौटाएं

Function MultipleLookupNoRept(Lookupvalue As String, LookupRange As Range, ColumnNumber As Integer)
'Updateby Extendoffice
    Dim xDic As New Dictionary
    Dim xRows As Long
    Dim xStr As String
    Dim i As Long
    On Error Resume Next
    xRows = LookupRange.Rows.Count
    For i = 1 To xRows
        If LookupRange.Columns(1).Cells(i).Value = Lookupvalue Then
            xDic.Add LookupRange.Columns(ColumnNumber).Cells(i).Value, ""
        End If
    Next
    xStr = ""
    MultipleLookupNoRept = xStr
    If xDic.Count > 0 Then
        For i = 0 To xDic.Count - 1
            xStr = xStr & xDic.Keys(i) & ","
        Next
        MultipleLookupNoRept = Left(xStr, Len(xStr) - 1)
    End If
End Function

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

4। तब दबायें OK संवाद बॉक्स को बंद करने के लिए, कोड विंडो को सहेजें और बंद करें, वर्कशीट पर वापस लौटें और इस सूत्र को दर्ज करें: =MultipleLookupNoRept(E2,$A$2:$C$11,3) into a blank cell where you want to output the result, and then drag the fill hanlde down to get all matching values, see screenshot:

नोट: उपरोक्त सूत्र में, ए 2: सी 11 वह डेटा श्रेणी है जिसका आप उपयोग करना चाहते हैं, E2 लुकअप मान, संख्या है 3 वह कॉलम संख्या है जिसमें लौटाए गए मान शामिल हैं।

एक उपयोगी सुविधा के साथ एक सेल में एकाधिक मान लौटाने के लिए Vlookup

 यदि आपके पास हमारा एक्सेल के लिए कुटूल, के साथ अपने उन्नत संयोजन पंक्तियाँ सुविधा, आप समान मान के आधार पर पंक्तियों को शीघ्रता से मर्ज या संयोजित कर सकते हैं और अपनी आवश्यकतानुसार कुछ गणनाएँ कर सकते हैं।

नोट:इसे लागू करने के लिए उन्नत संयोजन पंक्तियाँ, सबसे पहले, आपको डाउनलोड करना चाहिए एक्सेल के लिए कुटूल, और फिर सुविधा को जल्दी और आसानी से लागू करें।

स्थापित करने के बाद एक्सेल के लिए कुटूल, कृपया निम्नानुसार करें:

1. उस डेटा श्रेणी का चयन करें जिसमें आप एक कॉलम डेटा को दूसरे कॉलम के आधार पर संयोजित करना चाहते हैं।

2। क्लिक करें कुटूल > विलय और विभाजन > उन्नत संयोजन पंक्तियाँ, स्क्रीनशॉट देखें:

3. बाहर निकले में उन्नत संयोजन पंक्तियाँ संवाद बकस:

  • जिस कुंजी कॉलम नाम के आधार पर संयोजन करना है उस पर क्लिक करें और फिर क्लिक करें प्राथमिक कुंजी
  • फिर दूसरे कॉलम पर क्लिक करें जिसके डेटा को आप कुंजी कॉलम के आधार पर संयोजित करना चाहते हैं और क्लिक करें मिलाना संयुक्त डेटा को अलग करने के लिए एक विभाजक चुनना।

4. तब क्लिक करो OK बटन, और आपको निम्नलिखित परिणाम मिलेंगे:

एक्सेल के लिए कुटूल अभी डाउनलोड करें और निःशुल्क परीक्षण करें!


अधिक संबंधित लेख:

  • कुछ बुनियादी और उन्नत उदाहरणों के साथ VLOOKUP फ़ंक्शन
  • Excel में, VLOOKUP फ़ंक्शन अधिकांश Excel उपयोगकर्ताओं के लिए एक शक्तिशाली फ़ंक्शन है, जिसका उपयोग डेटा रेंज के सबसे बाईं ओर एक मान को देखने के लिए किया जाता है, और आपके द्वारा निर्दिष्ट कॉलम से उसी पंक्ति में एक मिलान मान लौटाता है। यह ट्यूटोरियल Excel में कुछ बुनियादी और उन्नत उदाहरणों के साथ VLOOKUP फ़ंक्शन का उपयोग करने के तरीके के बारे में बात कर रहा है।
  • एक या एकाधिक मानदंडों के आधार पर एकाधिक मिलान मान लौटाएं
  • आम तौर पर, VLOOKUP फ़ंक्शन का उपयोग करके हममें से अधिकांश के लिए एक विशिष्ट मान खोजना और मिलान आइटम वापस करना आसान होता है। लेकिन, क्या आपने कभी एक या अधिक मानदंडों के आधार पर एकाधिक मिलान मान वापस करने का प्रयास किया है? इस लेख में, मैं एक्सेल में इस जटिल कार्य को हल करने के लिए कुछ सूत्र पेश करूंगा।
  • Vlookup और एकाधिक मानों को लंबवत रूप से लौटाएँ
  • आम तौर पर, आप पहला संगत मान प्राप्त करने के लिए Vlookup फ़ंक्शन का उपयोग कर सकते हैं, लेकिन, कभी-कभी, आप एक विशिष्ट मानदंड के आधार पर सभी मिलान रिकॉर्ड वापस करना चाहते हैं। इस लेख में, मैं इस बारे में बात करूंगा कि कैसे सभी मिलान मानों को लंबवत, क्षैतिज या एक ही सेल में वापस लाया जाए।
  • Vlookup और ड्रॉप डाउन सूची से एकाधिक मान लौटाएँ
  • एक्सेल में, आप ड्रॉप डाउन सूची से कई संबंधित मानों को कैसे देख सकते हैं और वापस कर सकते हैं, जिसका अर्थ है कि जब आप ड्रॉप डाउन सूची से एक आइटम चुनते हैं, तो उसके सभी संबंधित मान एक ही बार में प्रदर्शित होते हैं। इस लेख में, मैं चरण दर चरण समाधान पेश करूंगा।

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

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

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

Description


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

  • Word, Excel, PowerPoint में टैब्ड संपादन और रीडिंग सक्षम करें, प्रकाशक, एक्सेस, विसियो और प्रोजेक्ट।
  • नई विंडो के बजाय एक ही विंडो के नए टैब में एकाधिक दस्तावेज़ खोलें और बनाएं।
  • आपकी उत्पादकता 50% बढ़ जाती है, और आपके लिए हर दिन सैकड़ों माउस क्लिक कम हो जाते हैं!
Comments (43)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have created a problem.
"I" have combined a "Textjoin" end "Vlookup" to return multiple values in to one single cell.
My problem is that the formula have to have an exact value to look for and I want it to lookup an "almost" match or Partial match.

Example: I have made a schedule how we ate going to work and a D1 is working from 07:30-16:00. And to lookup D1 is not the problem, the problem is that my boss sometimes puts other stuff togeather with the D1... Like "D1 +" or "D1 meeting".
Since my formula only lookup "D1" it misses for example the "D1 +".

My formula (that I have gotten from the web) =TEXTJOIN(" och ";SANT;OM($B$3:$B$15=$C$22:$F$22;$A$3:$A$15;""))It´s in swedish so "SANT" is "TRUE" and "OM" is "IF".

How can I make the formula lookup all the cells that have some form of "D1" in it and return all those to the same cell?
No matter if it says "D1 +" or "D1 meeting" or whatever.
The reson I want this, is because the boss always leave "D1" but can add other text behind the "D1"... and just because of that, my boss messes up my formula.
This comment was minimized by the moderator on the site
Hi!
This is a great VBA-Code which could help me a lot.But when I start the Function MultipleLookupNoRept Excel crashs...I´ve got a Dataset with about 6.000 Rows (Excel 2013).... is this too much for the VBA Function?

Thanks!
This comment was minimized by the moderator on the site
Hello Mr.XXL,Sorry to hear that. The row limit for Excel 2013 is 1048576. Therefore, maybe the VBA code is the reason for the crash.
Anyway, I would love to offer you another VBA code for Vlookup To Return All Matching Values Without Duplicates Into One Cell. Please use the VBA code below:
Option Explicit

Function Lookup_concat(Search_string As String, _
Search_in_col As Range, Return_val_col As Range)

Dim i As Long
Dim temp() As Variant
Dim result As String
ReDim temp(0)

For i = 1 To Search_in_col.Count
If Search_in_col.Cells(i, 1) = Search_string Then
temp(UBound(temp)) = Return_val_col.Cells(i, 1).Value
ReDim Preserve temp(UBound(temp) + 1)
End If
Next

If temp(0) <> "" Then
ReDim Preserve temp(UBound(temp) - 1)
Unique temp
For i = LBound(temp) To UBound(temp)
result = result & " " & temp(i)
Next i
Lookup_concat = Trim(result)
Else
Lookup_concat = ""
End If

End Function

Function Unique(tempArray As Variant)

Dim coll As New Collection
Dim Value As Variant

On Error Resume Next
For Each Value In tempArray
If Len(Value) > 0 Then coll.Add Value, CStr(Value)
Next Value
On Error GoTo 0

ReDim tempArray(0)

For Each Value In coll
tempArray(UBound(tempArray)) = Value
ReDim Preserve tempArray(UBound(tempArray) + 1)
Next Value

End Function

After you insert this VBA code in the Module, please type the formula =Lookup_concat(E2,$A$2:$A$14,$C$2:$C$14) into a blank cell where you want to output the result, and then drag the fill hanlde down to get all matching values. Please see the file I uploaded in this comment. Hope it solves your problem. 
Sincerely,Mandy

This comment was minimized by the moderator on the site
Hi, Thanks so much this worked!I used it to pull dates, that populated in the serial number format (<span style="letter-spacing: 0.2px; color: inherit; font-family: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit;">Changing the format to short date format using =TEXT(A2,”mm/dd/yy”) OR =DATEVALUE(A2) are not working. Do you have any solutions?</span>
This comment was minimized by the moderator on the site
Thank you for the explanations, however the function 'MultipleLookupNoRept' does not work on my file, could you tell me if an error exists.
This comment was minimized by the moderator on the site
Hi, Hasnae,Please check if you miss the third step -  check Microsoft Scripting Runtime option in the Available References list box.

This comment was minimized by the moderator on the site
Thank you so much for the code. Is there a way I can use the code to look up multiple values from multiple sheets? I tried to combine your function with IFERROR function but it doesn't seem to work.
This comment was minimized by the moderator on the site
Can this be modified to place the sum of those values? Instead of (400 400 400 400 400 400), can it sum them to show (2400)?
This comment was minimized by the moderator on the site
How with HLookUp function?
This comment was minimized by the moderator on the site
thanks for the code. I have modified it to allow you to optionally specify your own separator, Default is " ", if you specify the separator as"#cr" it will insert a CR/LF so the values will be on a separate line in the cell. It only applies the separator if there are multiple values

Function MYVLOOKUP(pValue As String, pWorkRng As Range, pIndex As Long, Optional ByVal pSep As Variant)

' ### Returns multiple values from a table into 1 cell ###

' pValue is the key value to lookup

' WorkRng is the Table you want to look up

' pIndex is the column # for the values to be returned from the pWorkRng

' pSep (optional) is the separator to be used. if omitted then default is a space (it doesn't apply the separator for the 1st entry)

' if the separtor = "#cr" it will separate the values on different line in the cell

Dim rng As Range

Dim sSep As String

Dim xResult As String

Dim Item1 As Boolean

Item1 = True



If IsMissing(pSep) = True Then

sSep = vbCr

Else

If pSep = "#cr" Then

sSep = vbCrLf

Else

sSep = pSep

End If

End If



xResult = ""

For Each rng In pWorkRng

If rng = pValue Then

If Item1 Then

xResult = xResult & rng.Offset(0, pIndex - 1)

Item1 = False

Else

xResult = xResult & sSep & rng.Offset(0, pIndex - 1)

End If

End If

Next

MYVLOOKUP = xResult

End Function
This comment was minimized by the moderator on the site
Thank you for this, the line breaks are what i needed to top this formula off! Question, is there a way to modify the code so that two values are compared? For example, similar to what we see with index and match, can i look for Product and Quantity columns, and based on those parameters it outputs results from the Region Column?
This comment was minimized by the moderator on the site
Thanks a lot for this code, it is very helpful. Does anyone know away to sum the values in the cell to just have at total of them.
Cheers
This comment was minimized by the moderator on the site
Hello, James, to sum values based on the corresponding items, the following article may help you, please chek it:
https://www.extendoffice.com/documents/excel/1268-excel-combine-duplicate-rows-and-sum.html
This comment was minimized by the moderator on the site
I have a server, it has connected with multiple applications. I want to compare compare two column and get the related applications details for that server.

What is the command for that.
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