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

एक्सेल में एकाधिक संबंधित मानों को कैसे देखें और उन्हें कैसे संयोजित करें?

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

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

Vlookup और सूत्र के साथ लंबवत रूप से कई मिलान मान लौटाएँ

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

एक्सेल के लिए कुटूल के साथ एक सेल में कई मिलान मानों को Vlookup और संयोजित करें


मान लीजिए, मेरे पास डेटा की निम्न श्रेणी है, एक विशिष्ट मान के आधार पर सभी संबंधित मानों को लंबवत रूप से प्राप्त करने के लिए, जैसा कि निम्नलिखित स्क्रीनशॉट में दिखाया गया है, आप एक सरणी सूत्र लागू कर सकते हैं।

डॉक वीलुकअप कॉन्टेनेट 1

1. यह सूत्र दर्ज करें: =IF(COUNTIF($A$1:$A$16,$D$2)>=ROWS($1:1),INDEX($B$1:$B$16,SMALL(IF($A$1:$A$16=$D$2,ROW($1:$16)),ROW(1:1))),"") एक रिक्त कक्ष में जहाँ आप परिणाम डालना चाहते हैं, उदाहरण के लिए, E2, और फिर दबाएँ Ctrl + Shift + Enter किसी विशिष्ट मानदंड पर सापेक्ष मूल्य आधार प्राप्त करने के लिए कुंजियाँ एक साथ, स्क्रीनशॉट देखें:

डॉक वीलुकअप कॉन्टेनेट 2

नोट: उपरोक्त सूत्र में:

A1: A16 वह स्तंभ श्रेणी है जिसमें वह विशिष्ट मान होता है जिसे आप देखना चाहते हैं;

D2 उस विशिष्ट मान को इंगित करता है जिसे आप vlookup करना चाहते हैं;

B1: B16 वह स्तंभ श्रेणी है जिससे आप संबंधित डेटा वापस करना चाहते हैं;

$ 1: $ 16 सीमा के भीतर पंक्तियों के संदर्भ को इंगित करता है।

2. फिर सेल E2 का चयन करें, और भरण हैंडल को नीचे की ओर तब तक खींचें जब तक कि आपको रिक्त सेल न मिल जाएं, और सभी मिलान मान कॉलम में दिखाए गए स्क्रीनशॉट के अनुसार सूचीबद्ध हो जाएं:

डॉक वीलुकअप कॉन्टेनेट 3


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

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

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

वीबीए कोड: एक सेल में एकाधिक मिलान मानों को Vlookup और संयोजित करें

Function CusVlookup(lookupval, lookuprange As Range, indexcol As Long)
'updateby Extendoffice
Dim x As Range
Dim result As String
result = ""
For Each x In lookuprange
    If x = lookupval Then
        result = result & " " & x.Offset(0, indexcol - 1)
    End If
Next x
CusVlookup = result
End Function

3. फिर इस कोड को सहेजें और बंद करें, वर्कशीट पर वापस जाएं और यह सूत्र दर्ज करें: =cusvlookup(D2,A1:B16,2) एक रिक्त कक्ष में जहाँ आप परिणाम डालना चाहते हैं, और दबाएँ दर्ज कुंजी, विशिष्ट डेटा पर आधारित सभी संबंधित मानों को स्पेस सेपरेटर के साथ एक सेल में वापस कर दिया गया है, स्क्रीनशॉट देखें:

डॉक वीलुकअप कॉन्टेनेट 4

नोट: उपरोक्त सूत्र में: D2 उन सेल मानों को इंगित करता है जिन्हें आप देखना चाहते हैं, ए 1: बी 16 वह डेटा श्रेणी है जिससे आप डेटा प्राप्त करना चाहते हैं, संख्या 2 वह कॉलम संख्या है जिससे मिलान मूल्य वापस किया जाना है, आप अपनी आवश्यकता के अनुसार इन संदर्भों को बदल सकते हैं।


यदि आपके पास एक्सेल के लिए कुटूल, के साथ अपने उन्नत संयोजन पंक्तियाँ सुविधा, आप इस काम को आसानी से जल्दी पूरा कर सकते हैं। यह सुविधा आपको किसी अन्य कॉलम में समान डेटा के आधार पर सभी मिलान मानों को एक विशिष्ट सीमांकक के साथ संयोजित करने में मदद कर सकती है।

एक्सेल के लिए कुटूल : 300 से अधिक उपयोगी एक्सेल ऐड-इन्स के साथ, 30 दिनों में बिना किसी सीमा के आज़माने के लिए निःशुल्क.

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

1. उस डेटा श्रेणी का चयन करें जिसे आप विशिष्ट डेटा के आधार पर संबंधित मान प्राप्त करना चाहते हैं।

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

3. में उन्नत संयोजन पंक्तियाँ संवाद बॉक्स में, उस कॉलम नाम पर क्लिक करें जिसके आधार पर आप संयोजन करना चाहते हैं, फिर क्लिक करें प्राथमिक कुंजी बटन, स्क्रीनशॉट देखें:

डॉक वीलुकअप कॉन्टेनेट 6

4. फिर किसी अन्य कॉलम नाम पर क्लिक करें जिसे आप मिलान किए गए मान वापस करना चाहते हैं, और क्लिक करें मिलाना संयुक्त मानों को अलग करने के लिए एक विभाजक चुनने के लिए स्क्रीनशॉट देखें:

डॉक वीलुकअप कॉन्टेनेट 7

5। और फिर क्लिक करें Ok बटन, समान मानों पर आधारित सभी संबंधित मानों को एक विशिष्ट विभाजक के साथ जोड़ दिया गया है, स्क्रीनशॉट देखें:

डॉक वीलुकअप कॉन्टेनेट 8 2 डॉक वीलुकअप कॉन्टेनेट 9

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


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

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

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

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

Description


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

  • Word, Excel, PowerPoint में टैब्ड संपादन और रीडिंग सक्षम करें, प्रकाशक, एक्सेस, विसियो और प्रोजेक्ट।
  • नई विंडो के बजाय एक ही विंडो के नए टैब में एकाधिक दस्तावेज़ खोलें और बनाएं।
  • आपकी उत्पादकता 50% बढ़ जाती है, और आपके लिए हर दिन सैकड़ों माउस क्लिक कम हो जाते हैं!
Comments (16)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Is there any way to get the unique "name" for "class1"
This comment was minimized by the moderator on the site
Hello, sym-john,
Maybe the below article can solve your problem, please view it:
https://www.extendoffice.com/documents/excel/3381-excel-extract-unique-values-with-criteria.html
This comment was minimized by the moderator on the site
This is working great for me - is there anyway to change it that it checks if the cell contains rather than a complete match? Basically I have a list of tasks where:
Column A: Dependencies (eg 10003 10004 10008)
Column B: Task Reference (eg 10001)
Column C: Dependent Tasks (the column for the formula result) - where it would lookup the task reference to see which rows contain it in Column A, and then list the Task Reference of those tasks.

E.g:

Row | Column A | Column B | Column C
1 | | 10001 | 10002 10003
2 | 10001 | 10002 | 10003
3 | 10001 10002 | 10003 |
This comment was minimized by the moderator on the site
you would want to use the Instr() function which will check for something in a string of text in a cell. You can also use Left() and Right() if you are looking for the starting or ending details.
This comment was minimized by the moderator on the site
The cusVlookup worked great for me. Another way to have a different separator is to wrap in two substitute functions. The first (from inside to out) replaces the first space with no space, the second replaces all other spaces with a " / " in mine. Could use "," if you want commas.
=SUBSTITUTE(SUBSTITUTE(cusVlookup(D2,Table1,2)," ","",1)," "," / ")

Also, if your lookup value isn't the first column, you can use 0 or negative numbers to go to column to the left.
=SUBSTITUTE(SUBSTITUTE(cusVlookup(D2,Table1,-1)," ","",1)," "," / ")
This comment was minimized by the moderator on the site
Hi, jeff,
Thanks for your sharing, you must be a warmhearted man.
This comment was minimized by the moderator on the site
I have to say, I have been trying to get a formula for combining multiple values and returning them to a single cell for 2 days now. This "How To" has saved me!! Thank you SO much! I would never have gotten it without your Module!
I do have 2 questions though. I have the deliminator as a comma instead of a space and because of that it starts out with a comma. Is there a way to prevent the start comma but keep the rest?
My second question is; When I use the fill handle it changes the range values as well as the cell value I want to look up. I want it to continue to change the cell number I want to look up but keep the same range values. How can I make this happen?

Thank you so much for your help!!
This comment was minimized by the moderator on the site
Is there a way to delete the duplicate values in the concatenate?
This comment was minimized by the moderator on the site
Hello, Jacob,
May be the following article can help you to solve your problem.
https://www.extendoffice.com/documents/excel/3381-excel-extract-unique-values-with-criteria.html

Please try, hope it can help you!
This comment was minimized by the moderator on the site
Is there a way to list the duplicate values only once, using the vba code and formula above? I am not sure where to put the countif>1 statement in the formula bar, or in the vba itself. Please help
This comment was minimized by the moderator on the site
you can add two extra condition to skip blank cells and to skip duplicates:For i = 1 To CriteriaRange.Count
If CriteriaRange.Cells(i).Value = Condition Then
If ConcatenateRange.Cells(i).Value <> "" Then 'SKIP BANKS
If InStr(xResult, ConcatenateRange.Cells(i).Value) = 0 Then 'SKIP IF FOUND DUPLICATE
xResult = xResult & Separator & ConcatenateRange.Cells(i).Value
End If
End If
End If
Next i
This comment was minimized by the moderator on the site
This is amazing but i am looking for something else, i have a table with RollNo StudentName sub1, sub2, sub3 ... Total Result, When I enter Rollnumber it should give a result like "SName Sub1 64, sub2 78,... Total 389, Result pass", is it possible
This comment was minimized by the moderator on the site
Loved the function for Excel 2013 but amended it slightly to change the separating character to ";" instead of " " and then remove the prefixed ";" from the concantenated values Results matching values in my example would have ;result01 or ;result01;result02 . Added the extra If Left(xResult, 1) = ";" to remove any extra ";" at the beginning of the string if it is the 1st character. I'm sure there is a neater way of doing it but it worked for me. :) Function CusVlookup(pValue As String, pWorkRng As Range, pIndex As Long) Dim rng As Range Dim xResult As String xResult = "" For Each rng In pWorkRng If rng = pValue Then xResult = xResult & ";" & rng.Offset(0, pIndex - 1) If Left(xResult, 1) = ";" Then xResult = MID(xResult,2,255) End If End If Next CusVlookup = xResult End Function
This comment was minimized by the moderator on the site
Make if condition for result if empty.

Function CusVlookup(lookupval, lookuprange As Range, indexcol As Long)
'updateby Extendoffice 20151118
Dim x As Range
Dim result As String
result = ""
For Each x In lookuprange
If x = lookupval Then
If Not result = "" Then
result = result & " " & x.Offset(0, indexcol - 1)
Else
result = x.Offset(0, indexcol - 1)
End If
Next x
CusVlookup = result
End Function
This comment was minimized by the moderator on the site
When using the cusvlookup is there a way to add the last name as well with a comma in between that might appear in Column C
This comment was minimized by the moderator on the site
How to get the result. Please help. data data1 result a 1 a1 b 2 a2 c b1 b2 c1 c2
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations