When using Microsoft Excel for data analysis, you may often find yourself in situations when you need to get all matches based on a specific id, name, email address or some other unique identifier. An immediate solution that comes to mind is using the Excel VLOOKUP function, but the problem is that it can only return a single match. Continue reading
Comments page 7. Total comments: 342
It was really helpful. Thank you.
Table 1 Table 2
AMT result AMT Unique Value2
30 A 30 A
40 D 30 B
30 B 30 C
30 C 40 D
50 F 40 E
50 - 50 F
I need to pick 2nd column of 'Table 2' by comparing AMT column but the formula should pick only one unique value 1 time from 'Table 2'
These formulas have worked for me but now I have a situation where I would just like a partial lookup match. Trouble is these formulas won't allow for wild cards like vlookup does. Is there a workaround for that?
Example:
=IF(ISERROR(INDEX($AQ$1:$AV$500,SMALL(IF($AQ$1:$AQ$500="REGULAR PAY 32.0000 ",ROW($AQ$1:$AQ$500)),ROW(1:1)),3)),"",INDEX($AQ$1:$AV$500,SMALL(IF($AQ$1:$AQ$500="REGULAR PAY 32.0000 ",ROW($AQ$1:$AQ$500)),ROW(1:1)),3))
With this my "REGULAR PAY 32.0000 " must be an exact match when I'd just like to look for "REGULAR PAY*".
I can do it with vlookup of course:
=VLOOKUP("REGULAR PAY*",AQ1:AV500,3,FALSE)
But of course it only returns the first value it finds.
Hi
Thanks very much for your explanations and tips, I've found them really useful. I used the Vlookup multiple conditions to return matches in a row and it works perfectly.
As per your sample workbook, would there be a way of filtering out any duplicate values, for e.g. your return matches in a row for Seller Adam contains the Products 'Lemons' in both columns K and N - any way to stop that and just return one value of 'Lemons'?
Many thanks
Hello,
My vlookup is returning values that are not in the table array.
Any suggestions.
this really helped me alot, thank you!!
This is great. Thanks a lot
Hi,
I tried copy pasting the formula. Modified it for my specific columns and made sure to hit ctrl+shit+enter. The formula however only populates the first value (much like a regular VLOOKUP function. Can anyone please help?
Thanks!
Riyaz
The worksheet table have columns (Cell B:Q)that show "Supplier Names" and the rows (15 to 33)have "Item01; Item02;and so on"
What is required in Cell B2 if the "Item02" is typed-in, I want to find out the suppliers with the lowest 3 sales.
Thank you, Look forward to your earliest response
HI
I need help....
I need an IF and V lookup formula but with multi-pal ranges.
So IF A1 = DEL then look at Cell C1 to get the size and look at Cell D1 to get the area. Look up the area price according to the size of the container. Does that make any sense?
Hi svetlana,
Appreciate if you can help me in this situation for my survey data. I am doing this to calculate for Fuzzy Delphi method
I have:
survey data ---> (A)
Likert scale 1-7 ---> (B)
Decimal point scale in 3 columns ---> (C)
Empty cell putting (C) values after comparing (A) and (B)---> (D)
Example as below:
(C) (B)
------------------------------------------
decimal point scale likert scale
0.0 0.0 0.1 7
0.0 0.1 0.1 6
------------------------------------------
I have a list of survey data (A) and I want to compare with likert scale (B), if (A) is equal or more than (B), then I want to take all values in (C) and copy it in (D)
What function should be suitable to get the return values?
Thank you
(C)
decimal point scale
0.0 0.0 0.1
0.0 0.1 0.1
(B)
likert scale
7
6
Светлана, спасибо вам огромное за ваш форум. Начал составку очень трудного Excel spreadsheet сегодня, по знанию начиная почти с нуля по формулам. Последняя черта документа оставалась включить одну из этих формул упомянутых здесь. Туго было понимать но в конце концов понял где ошибка была, поправил и всё заработало! Как приятно что есть такие умные люди которые напишут как что делать ^^
Спасибо на добром слове, Егор! Приятно знать, что соотечественники нас тоже читают :)
I have a working formula to return multiple values from one Worksheet: "15".
Formula =IFERROR(INDEX('15'!$A$7:$A$41,SMALL(IF($I$1='15'!$G$7:$G$41,ROW('15'!$G$7:$G$41)-MIN(ROW('15'!G$7:$G$41))+1,""),ROW()-2)),"")
I would like the formula above to also go through each Worksheet and return multiple values.
I have created a working table name "Sheet_Name" that will dynamically list Worksheets 1 through 100 starting with Sheet 6, currently I have Worksheets: A, B, C, D, E, and 1 - 15 (data to return).
Sheet_Names Formula =OFFSET(SheetNames!$C$7,,,COUNT(SheetNames!$C7:$C106),1)
Well i have problem in using vlookup in pm mfsw worksheet
Hi,
I'm just wondering if Formula 3. Vlookup multiple matches based on multiple conditions can be used to retrieve data from other workbooks?
I've tried however have not been successful.
Many thanks
hello
Svetlana Cheusheva
Sorry to say but your formula does't work. they have some problem while applying in practical.
so can you help me ?
Hello!
Please feel free to download our sample workbook with all the formulas described in this tutorial, and try them on your data.
How do I get the formula to search for match part of the string like APP instead of the full word APPLE?
am doing food gram as per menu for one person, when it is 100 person the gram reduce same items =IFERROR(VLOOKUP($B$6:$B$32,GRAM!$A$1:$B$300,2,FALSE)," 0 " )
this formula will look out value in gram A1:A300 FOR SAY CHICKEN for one person , I NEED IT LOOK FOR MULTIPLE1 cells where i stored for 1 pax, 100 pax 200pax etc. it has diferent grams. kindly advise.
I have applied the array formula and it worked perfectly. I would now like to apply another formula to my listed results (in one column) in order to extract my distinct texts to the column next to it. My data from this formula has multiple texts vertically and I would like each unique data only repeated once (next to the first) in the next column and blanks following until the next unique text.
Or just extracting the distinct values off of this formula.
Is this possible?
I look forward to your response. Thank you.
i want to apply the formula on a sheet.
like i have criteria range and infront of value if my first criteria value is 0 than for same criteria v lookup should take the value for next criteria.
Regards
Yogendra
i want to extract two unique different column of data in to one cell from another sheet after searching through an array
a b c(ans)
1 4 2
2 3 1
3 4 2
4 2 4
Awesome tutorial, thanks a lot!
Hello Svetlana,
The issue I experienced not pulling the data was related to #N/A (error) in couple of cells. Once I replaced these values all worked fine.
Sorry for the formatting above, but it only became so after I posted the message. There are currently 7 columns, one with the A/A numbers and another 6 with data. A,B,C,D,E and F are the head titles of the 6 columns with the data.
Hello Svetlana.
I have the following table. Please have a look at my question following the table.
A B C D E F
1 EXCB11 EXCB10 0.202 0.79 0.159 0.159
2 EXCB10 EXCB09 0.117 0.72 0.084 0.244
3 EXCB09 EXCB08 0.042 0.61 0.026 0.269
4 EXCB08 EXSTMH05 0.016 0.2 0.273
5 EXSTMH07 EXSTMH09 0.016 0.5
6 EXSTMH08 EXSTMH07 ? ?
7 NEWCB12 NEWSTMH04 0.152 0.76 0.115
8 NEWSTM EXSTMH05 0.178 0.76 0.250
9 NEWCB14 NEWSTMH15 0.093 0.83 0.078
10 NEWSTMH15 NEWSTMH13 0.000 0.92
11 NEWSTMH13 EXSTMH08 0.000 0.76
12 EXSTMH0 EXSTMH05 0.019 0.59 0.089
13 EXSTMH05 TMNT DEVICE 0.000 0.59
14 TMNT DEVICE EXMH01 0.000 0.87 0.000
- For every cell of column A, I am trying to find the cells in Column B that have the same value with it. For example in the given table for Cell A13 that has the value EXSTMH05, I would like to find cells B4, B8 and B12 that also have the value EXSTMH05.
- Then, for each one of the cells that I found I want to get the values from the respective cell of Column F and sum them up. So, in the given example I would like to get the values from F4, F8 and F12 and find their sum. The result I am seeking in this example 0.273+0.250+0.089.
Can you help me? I have tried using various formulas but to no result.
Hi Svetlana,
I wanted to ask you for your help with my table:
https://we.tl/mMztWNG1lY
What I would like to display in Sheet 2, is the quantity of those topics, which meet the chosen criteria and also display all corresponding texts, links and clicks, one below the other, taking in account the two criteria chosen at the top: "Category" and "Language".
What we also have to take in account is that the categories, texts, links and clicks can be found in several columns and not just in one.
I really hope that you can help me with this issue. :)
Best regards,
Sanjin
Svetlana,
Spasiba, for your quick response. Everything is working well even on large volume of data. When the data is aligned well n-1 type of configuration it works well.
As for the "relative reference" I meant relative position. I tried multiple examples, the all worked if properly setup.
Cheers,
Sam
Hello,
I'm hitting a unique error with this formula. I have the formula on Sheet2, and am trying to pull the information from Sheet1, A4, titled "Expirations". In the "IF" statement, if I put the reference item to match the item in the first row of the table on sheet 1 (89), it pulls the information from A4 over after I hit Enter. If I change it match the item in row 2 (229), it doesn't pull the associated info from A5. Also, if I hit ctrl+shft+enter to use this as an array formula, it doesn't pull any results.
My ultimate goal is to pull over all of the rows that have a negative number in Column E, so if you can offer any guidance towards that, that would be awesome. :) But in the meantime, helping me understand why the array formula isn't working between worksheets, and why it only pulls over the first item when used as a standard formula, would be awesome. The formula I'm using is:
=IFERROR(INDEX(Expirations!A$4:A$2864, SMALL(IF(89=Expirations!$E$4:$E$2864,ROW(Expirations!A$4:A$2864)-3,""), ROW()-3)),"")
Thank you!
Kevin
Svetlana.
Great work. The formula works well even in Two workbooks format one for data and one for matching. Also worked when replacing relative values with Named Ranges. I extended the example to about 6000 rows, still works. Note the slight change with named ranges "D$2=Sellers, Row(Seller)" Using Row(Fruits) does not return results.
=IFERROR(INDEX($B$3:$B$13, SMALL(IF(D$2=$A$3:$A$13, ROW($B$3:$B$13)-2,""), ROW()-2)),"")
=IFERROR(INDEX(Fruits, SMALL(IF(D$2=Sellers, ROW(Sellers)-2,""), ROW()-2)),"")
My trouble is, I have a very large data set (about 20K+ rows) and I get only the first value repeating for the entire array in my real work. I can't figure out where am I going wrong.
Hi Sam,
Sorry, I do not quite understand the part about relative references. In the original formula, all ranges are fixed (absolute references), and in named ranges the references are also absolute by default. I've done the same replacement in the sample workbook, and it works just fine. Please see N3:Q5 in sheet "Return matches in columns". The updated file can be downloaded here.
Hi Svetlana Cheusheva, in your first formula with index and Row-2 example above. I do scores for softball league and I need to look up the teams identifier (e.g. 10a) and return the date of the game. However, the column range I need to look in houses the matchups for that day's games. e.g. 10a v 10b in a cell. Can I use wildcards in the array formula (e.g. *10a*) as my look up value vs just 10a. I tried doing "*10a*", but got a Num error (took out the iferror to see why blank). Do I have to input "*"&D3(being 10a)&"*"=C2:c27, etc.??? Any guidance here is much appreciated!
Wow! very well written and expressed. Exactly what I wanted the first formula itself. Thank you!
i want horizontal date range Vlookup pls. provide solution
This is a great help but how do I return a value of more than one cell?
Such as if there were two more columns that had the Price and Market. I would want the result like this in individual cells:
Adam
Banana $2.99 Smith's
Oranges $1.99 Von's
Lemons $.99 Joe's
I would also like to know if I had Columns A to M but only want to return with results from Column A, B, C, G. How would I do that?
Thanks in advance!
My data file has multiple records against one item..
Can you please help, if i type the item in a particular cell, all multiple values should appear in front of item e.g
Part Number Supplier Lead Time Price $
Orange D5396 45 25.00$
Orange A6545 50 26.00$
Orange C9256 60 25.50$
Orange A6498 45 30.00$
Orange Z9655 40 26.50$
Orange D5632 90 29.75$
Mango W5696 120 5.25$
Mango A6536 125 4.75$
i need help, if i type part number in a particular cell, all related information should appear against it...
hye i got two month of data that need to be validate to the latest TotalValue and ignore that already used in the next day.
i want the outcome like this
A B
Unit
14200001 78
14200002 144
and so on.
the data on my excel
A B C D
Unit Date TotalValue Used
14200001 15-01-18 78 77
14200001 16-01-18 1 1
14200001 15-02-18 78 78
14200002 15-01-18 143 142
14200002 16-01-18 1 1
14200002 15-02-18 144 144
14200003 15-01-18 161 161
14200003 15-02-18 161 161
14200004 15-01-18 150 150
14200004 15-02-18 150 150
14200005 15-01-18 158 158
14200005 15-02-18 158 158
14200006 15-01-18 157 157
14200006 15-02-18 159 159
14200007 25-01-18 104 104
14200007 25-02-18 104 0
14200007 26-02-18 104 104
=(IFERROR(INDEX(Schedules!$A$5:$A$310; SMALL(IF(B$1=Schedules!$C$5:$C$310;ROW(Schedules!$A$5:$A$310)-4;""); ROW()-22));""))
I need help.
I'm using this formula. I need to search hours at collum C to get names from collum A.
The result i get is blanck from the iferror formula, but if i do F9 it gives me the names. In this case i need to do one by one instead of it be automatic.
I can't figure it out what is wrong.
Thanks for the time
Can I use this in a Data Validation?
=IFERROR(INDEX(sTurrets; SMALL(IF(A$3= sTank_id_turret; ROW(sTurrets)-2;""); ROW()-2));""). I am using named ranges from another sheet as the return_range the lookup_range.
I have also tried =INDEX(sTurrets;MATCH(A3;sTank_id_turret;0)) and
=VLOOKUP(A3;allTurrets;3;0).
Learned these from these and other pages here.
The index one works but only gives me 1 value, while there are 3 to 4 values to return.
The IFERROR says List source must be delimited list when I place it in the data validation.
Please help.
I need to the formula to filter data in column very easy and lookup conditions thank you so much for your support
Hello,
This works fine if the vlook up value is an Exact match. Is there any way to get all partial matches?
DOES THIS FORMULA WORK IN GOOGLE SHEETS?
Really appreciate how you have taken the pains to elaborate on the logic and the break up of the formula and brilliantly at that, too. Very helpful...thanks!
Hello,
I'm having a hard time finding a formula to use to setup a conditional format. I have one close, but not extensive enough. I have a formula in my conditional format rule where when a row has a cell with the "F" value, =C$3="F", that when applied to a range, =$C$4:$HU$11, will make any column in the range gray (that is the column with an "F" just above it will be gray). Now I need create a similar setup where if in the same range, =$C$4:$HU$11, I have any column in that range(for example), C4:C11, having more than on "C" value in a cell, to highlight that row in yellow.
Thanks for this help with array formulas.
I need some assistance displaying the data. I need to display it in a Gant Chart Format.
For Explanation: Jan1 Apples, Jan2 Oranges, Jan3 Pears, Jan4 Oranges, Jan5 Pears, Jan6 Oranges….
I need to display the Dates across columns and the fruits in rows and populate the cells where the fruit and dates align.
The Array Formula will pull the dates but I cannot figure out how to populate the “Gant Chart”
Hi,
I have a spreadsheet which tracks defects.
I have a LOOKUP to determine a 'severity' based on whether the item is either "High" or "Low" and the length of the defect (input as a number).
I then have a seperate table which lists the action code to be applied, based on a combination of "High" or "Low" and the 'severity'.
I would like Excel to automatically return the action code from a remote table (in the same worksheet), based on the values in the two seperate cells.
So, cell A1 is either "High" or "Low".
The operator inputs a numeric value in cell A2.
Based on the values in A1 and A2, a LOOKUP returns a 'severity' in cell A3.
What should then happen, is a value for 'Defect Code' should appear in cell A4 based on the combination returned in cells A1 and A3.
Any ideas would be greatly appreciated.
Thanks for this formula. I've been looking for this however it's been showing up as an error on my end, saying "Did not find value '43096' in VLOOKUP evaluation."
Hi.
Thank you for this, it has saved me a ton of time.
I did have a few problems which I've solved.
In your formula you've used ",", while in my excel it worked with ";".
Also, the formula couldn't find matches if formatting was different. E.g., my row was formatted as numbers, while my column was text, I think.
Hi Muhamed,
The use of comma or semicolon for separating a formula's arguments is dependent on which character is set as the List Separator in your Regional Settings. For example, in North America the default list separator is a comma, while in Europe it's semicolon. As for the second issue, you are right, numbers formatted as text could cause problems.
thank so much it very helpful.
It is working. Its result is awesome.
Thanks
Hello sir,
I have used several time, Formula 3. Vlookup multiple matches based on multiple conditions. But it is not working. It is not showing anything in the cell. By copying the formula in another it also not respond.
pls help it need to do this.
Download her template and copy formula from there (look through different sheets) and be sure to adjust formula for your data.
If you are working with numbers make sure formatting of the cells is the same...
I have report of dispatch as like, Gate Pass No's in Rows & against that Invoice No's are in multiple columns. How can I create pivot for particular Gate pass No having list of Invoices in rows, instead of column.
Hi,
I I want to compare between to columns and list the new value in the second row;
col1 col2 col3 (result)
abc abc www
adc www
ere ere
adc
Hello,
Please try the following formula:
=IFERROR(INDEX(B:B,SMALL(IF(B:B<>A:A,ROW(B:B)),ROW(A1))),"")
Please note that this is an array formula. You should enter this formula into the first cell in column C, hit Ctrl + Shift + Enter to complete it and copy the formula down along the column. Just select the cell where you've entered the formula and drag the fill handle (a small square at the lower right-hand corner of the selected cell) down.
Hope it will help you.