In this VLOOKUP tutorial, you will find a number of advanced formula examples that demonstrate how to look up with multiple criteria, use two VLOOKUP functions in one formula, dynamically pull data from different sheets, and more. Continue reading
by Svetlana Cheusheva, updated on
In this VLOOKUP tutorial, you will find a number of advanced formula examples that demonstrate how to look up with multiple criteria, use two VLOOKUP functions in one formula, dynamically pull data from different sheets, and more. Continue reading
Comments page 8. Total comments: 540
I am having SKu data in one sheet and i have pan india sku data in othr sheet , actully i want find out that first sheet sku qty. Location wise in first sheet against each sku.pls help
The first column is the item number
MAS Code 23% 18% 15% 12.50% 10% 7.50% 5% 5%
10100 0.29 0.21 0.19 0.18 0.17 0.16 0.14 0.10
10101 0.29 0.21 0.19 0.18 0.17 0.16 0.14 0.10
10102 0.29 0.21 0.19 0.18 0.17 0.16 0.14 0.10
10103 0.29 0.21 0.19 0.18 0.17 0.16 0.14 0.10
i need to pull the commission based on the price that is selected from dropdown list. I dont know how to do that.
One can use the VLOOKUP function with 2 criterias WITHOUT any Helper-Column.
It will become an Array-Formula with some concatenations BUT within the formula.
*** My solution is presented in the below linked picture: https://postimg.org/image/mdmfjj7gd/
----------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator “Microsoft®” Excel MVP – Excel (2009-2018) ISRAEL
Hi i am very excited about using formulas i excel after reading this page. please help me to solve the problem that i have... i have set of numbers related to my field.. for instance.,
spool no j.no fit up no
16011828-2 6
16014266-1 1OSW
16010115-1 2
16011586-1 2
14010644-1 7
21060012-1 17 24865 / 24842
14060009-1 4
12030178-1 4
14010630-1 4FFW
16011442-1 1
16011925-1 3FFW
16011815-1 2
14010914-2 6
16011440-1 6
12010688-1 2
14010581-3 13
14010088-1 1
14010619-1 1FFW
16090078-1 6
17010191-3 9
12011083-3 7 04574 / 4555
16014313-1 3FFW 21761 / 21766
17010135-2 7
14010658-1 1
16011816-1 4
14010643-2 8FFW
14011316-2 3
12010579-2 7
14010089-1 4
16030591-4 10
16011263-2 13FFW
17010945-2 12
16010822-2 7
12010632-2 7
16090630-3 8FFW
14010659-2 5
16011165-1 4 24199
14010500-2 12
16011829-1 2
12010644-2 13
12010631-1 5
17010205-2 8FFW
16011167-1 3
14010581-1 1FFW
14010660-3 8FFW
16013899-1 2
12010689-2 5
16011842-1 1FFW
16011730-1 6
17010208-3 7
12010551-2 13
17010176-1 5FFW
17010140-1 2
14010676-1 5FFW
16011898-2 12
14010623-2 8
12010688-1 1
17010147-2 11
16013031-2 17
12010641-3 10
12060018-1 2
14010677-2 8
12010553-2 10
12010057-2 14
14011050-2 10
16011852-1 8
17010301-1 1FW
14030082-1 3FFW
16011167-3 11
16011166-2 6
14010498-3 10
like this,, i want to get all the occurrences of my selected spool no,
=IFERROR(INDEX($C$2:$C$63399,SMALL(IF($F$2=B2:B63399,ROW(C2:C63399)-1,""),ROW()-3)),"") I can use the formula,, but i cannot use it continuously,, after finishing one set of calculation..this formula for only one set of calculation,,, and i want to use the array in row vise(spool no only). not column wise,, please any one help me to fix the problem.. thank u..
As you have explained this formula returns the 2nd instance:
=IFERROR(VLOOKUP($F$2,INDIRECT("$B$"&(MATCH($F$2,Table4[Customer Name],0)+2)&":$C16"),2,FALSE),"")
Where do I edit the formula to return the the 3rd 4th 5th etc
Thanks in advance...
I have an tool inventory check out sheet that references a table where there is equipment type column, a description column, followed by an ID number column. I am looking for a formula that after the equipment type is determined, the descriptions are limited to that equipment type,and then the equipment ID number.
Hello,
For me to understand the problem better, please send me a small sample workbook with your source data and the result you expect to get to support@ablebits.com. Please don't worry if you have confidential information there, we never disclose the data we get from our customers and delete it as soon as the problem is resolved.
Please also don't forget to include the link to this comment into your email.
I'll look into your task and try to help.
Dear Sir/madam
I tried if condition with vlookup.I got the required result for few cases.Though the required data is there in the next sheet i couldn't get that.How can i get that for remaining cases.
Thank you for this article! It was immensely and has worked quite well.
The only issue I am having is that it is retaining the spaces between cells with the output...for example, in your sample above for all occurrences of lookup value (duplicates), Dan Brown’s Biscuits and Dan Brown’s Cherries have 6 rows between them...for my output, these rows remain but are blank/#NA...any good ideas as to why this may be?!
Thanks any and all for your insights!
Hello,
For me to understand the problem better, please send me a small sample workbook with your source data and the result you expect to get to support@ablebits.com. Please don't worry if you have confidential information there, we never disclose the data we get from our customers and delete it as soon as the problem is resolved.
Please also don't forget to include the link to this comment into your email.
I'll look into your task and try to help.
Hi, i have a table with 50rows (drugs) and 30 columns (Citties) and sales qty of drugs are spread for each Citty. I need that this table of data returns in 3 columns named : City , Drugs,Sales Qty.
How can i do this ?
Br.Odi
Hello,
Please try to solve your task with the help of the Unpivot Table tool which is a part of our Ultimate Suite for Excel. You can download its fully functional 14-day trial version using this direct link.
After you install the product, you will find Unpivot Table in the Transform section under the Ablebits Tools tab.
Hope this will help you with your task.
Hello,
I have multiple file for Raw data and one main file. like below. I need to know the last name of all EMP ID from all files to main file. How can i get this in single formula, by combined the all data in one file i can get that but its time taking. can i get this without combined the data in one file?
thanks in advance.
Below is the sample for data.
file 1.
EMP ID last name first name
101 yadav naveen
102 kumar deepak
103 patel gaurav
104 sharma vivek
105 Ghosh jay
File 2.
EMP ID last name first name
101 yadav naveen
200 kumar deepak
201 patel gaurav
203 sharma vivek
main file.
EMP ID last name
101 ?
102 ?
103 ?
104 ?
105 ?
108 ?
200 ?
201 ?
202 ?
203 ?
.
Hello,
Please try to solve your task with the help of the Combine Sheets tool which is a part of our Ultimate Suite for Excel. You can download its fully functional 14-day trial version using this direct link.
After you install the product, you will find Combine Sheets in the Merge section under the Ablebits Data tab.
Hope this will help you with your task.
Dear Sir,
I Just Want to Transpose all related columns to a single Row.
Ex-
ICD QTY Invoice No. Vehicle No.
CR0103024080 106.00 SI/17-18/0011 RJ 06 GB 3195
CR0103024080 6.00 SI/17-18/0012 RJ 06 GB 3195
CR0103024080 8.00 SI/17-18/0013 RJ 06 GB 3196
CR0103024080 4.00 SI/17-18/0014 RJ 06 GB 3196
Result Required as
ICD QTY (Nos). Invoice No. Vehicle No. ICD QTY (Nos). Invoice No. Vehicle No. ICD QTY (Nos). Invoice No. Vehicle No. ICD QTY (Nos). Invoice No. Vehicle No.
CR0103024080 106.00 SI/17-18/0011 RJ 06 GB 3195 CR0103024080 6.00 SI/17-18/0012 RJ 06 GB 3195 CR0103024080 8.00 SI/17-18/0013 RJ 06 GB 3196 CR0103024080 4.00 SI/17-18/0014 RJ 06 GB 3196
Hello,
I'm afraid there's no easy way to solve your task with a formula. Using a VBA macro would be the best option here.
However, since we do not cover the programming area (VBA-related questions), I can advice you to try and look for the solution in VBA sections on mrexcel.com or excelforum.com.
Sorry I can't assist you better.
iam preparing score card of students which includes semester 1 and semester 2 is there any formula to get the result in one cell by using vlookup formula or any other formulas???
For eg if i click semester 1 i need to get the result of semester 1 only.if i click semster 2 i need to get the result of semester two only in a single cell?? Can any one pls help me???
Hello,
For me to understand the problem better, please send me a small sample workbook with your source data and the result you expect to get to support@ablebits.com. Please don't worry if you have confidential information there, we never disclose the data we get from our customers and delete it as soon as the problem is resolved.
Please also don't forget to include the link to this comment into your email.
I'll look into your task and try to help.
Hi,
Your advice is appreciated as I am trying to fill in the ASSIGNED QTY in table1 from the table2 based on CUSTOMER NO. & ITEM.
table1:
ITEM CUSTOMER NO. ASSIGNED QTY
10001653 50023243 ???
10001656 50022603 ???
table2:
NO NAME 10001653 10001656
50023243 cust1 5 10
50022603 cust2 30 35
Hello,
For me to understand the problem better, please send me a small sample workbook with your source data and the result you expect to get to support@ablebits.com. Please don't worry if you have confidential information there, we never disclose the data we get from our customers and delete it as soon as the problem is resolved.
Please also don't forget to include the link to this comment into your email.
I'll look into your task and try to help.
How use in vlookup in two sheets
Hi Anil,
To do Vlookup from a different Excel sheet, you simply supply the sheet's name followed by an exclamation mark in the table_array argument, e.g.
=VLOOKUP("text", Sheet2!A2:B15,2)
For more information, please see How to Vlookup from another worksheet.
If you want to perform sequential Vlookups in different sheets based on whether a previous Vlookup found the lookup value or not, you can nest Vlookup into IFERROR and use two or more such nested functions within one formula, like shown in this example: How to do sequential Vlookups in Excel.
I want to look through 15 tabs of a workbook and see in which of these tabs there is a value and depending on the which tab is the last tab that it was located at, insert to a cell a date. is this possible with a function or should I search for a VBA code?
How to get the smallest value in all occurrences of lookup value (duplicates)
Is there a way to parse a column, like column A for example that has 4000 names. On another tab there are 50 names
The first tab has 12 columns full of data but I only need 50 of those 4000 with the data
Instead of hand picking each one and copy paste
Is there a way to look at that source data, if name exist, add to "array" and then create a new tab with these 50 people and every column to the right?
i have a workbook, id number wise i entered their certificate expiry.
ex:
1:15/10/2016
2:15/10/2016
1:14/10/2017
2:14/10/2017
1:13/10/2018
2:13/10/2018
i want result ("what is the validity of 1(which means ans is 13/10/2018)).
how can find this result?
i need a formula for the worksheet. can i have your email address. i will attach the excel sheet. please!
greetings, i have a following query,
Dealers july aug sep
parts oil parts oil parts oil
A 100 50 80 30 70 40
B 120 45 115 50 125 55
C
i have a combined data of 3 dealers month wise with sub categories. i want to have a separate sheet which shows me target of a specific month. like if i ask July it shall show july targets of all dealers with sub categories.
How can I vlookup for each agent daily on another sheet to show lateness,absence and presence? Using data from response form submitted by each offline agents which appears in the format below.
Many thanks!
A1 = Check in time per date (9/12/2017 16:55:00, 9/13/2017 16:55:00....)
B C D E F G
Clock in (Names) MOD(A2,1) MOD(B2,1) Exceeds (Late15mins)
9/12/201716:58:01 Olalekan 4:55:00 PM 4:58:01 PM 00:03 Early
9/12/2017 16:58:08 Ikechukwu 4:55:00 PM 4:58:08 PM 00:03 Early
9/12/2017 16:58:29 Damilare 4:55:00 PM 4:58:29 PM 00:03 Early
9/12/2017 16:58:33 Abieu M 4:55:00 PM 4:58:33 PM 00:03 Early
9/12/2017 16:59:02 Ruth N 4:55:00 PM 4:59:02 PM 00:04 Early
9/12/2017 16:59:27 Anosike 4:55:00 PM 4:59:27 PM 00:04 Early
Hi
Is it possible to do a lookup for a narrative when the narrative differs slightly from tab to tab - so not an exact match.
Eg the narrative I want to look up is "Jimmy Choo 40ml EDT" but on another spreadsheet it is "Jimmy Choo 40ml EDT Spray".
Any help would be appreciated.
thanks
kandie
I need to lookup value of Product with No having latest date.
Product No Date
A 750000 14-09-2017
A 85101 15-09-2017
A 14413107 16-09-2017
B 41351 14-09-2017
B 1345654 15-09-2017
B 1531546 16-09-2017
Hello,
if you find the formula in the article above a bit complicated or you'd like to get a quicker and simpler solution, please take a look at our Vlookup Wizard add-in. You will find it in Ultimate Suite collection that can be downloaded from this web-page. The add-in can be used instead of VLOOKUP function and will return the value you need in a couple of clicks.
Hope it helps!
Hello
I have one problem that I can't solve it, I want to use multiple row in Vlookup, but i can't do it.
Example: IFERROR(VLOOKUP(A2:Z2,Data-sheet,2,0), "") the result can't, but if i use only one row IFERROR(VLOOKUP(A2,Data-sheet,2,0), "") it automatically show the result.
Please advice me because i need to do with multiple row.
Best,
How to apply the Vlookup or any other formula on long written statements.
These statements normally written in one cell.
Like a
On-line Banking bill payment to DHL Express Ref:-417930361
On-line Banking bill payment to TCS Express Ref:-417930361
I want to apply the Vlookup or any other formula on whole statement
Fore example if in side the statement there is word DHL, then its should write 1 otherwise, zero.
Please help for this issue or selecting the formula.
Thank You
Zubair
Hi, I have created a training report to pull the completion status of each of the trainee in my list. We do have several course translations so the challenge is that, I am not sure which among the course language translations did the trainee take to be marked "completed". I am taking the information from a learning management system's raw data but it contains 77k rows from multiple countries. I tried using a combination of nested IFERRORa and VLOOKUP functions to do this, and is using a helper column to combine the course name and the trainee's User ID then I added this in the first column of my massive raw data while the status comes next to it.
SAMPLE COURSE TRANSLATIONS
Cell X4: Course1 (English)
Cell X5: Course1 (Chinese)
Cell X6: Course1 (Simplified Chinese)
Cell X7: Course1 (ZH Chinese)
SAMPLE UNIQUE USERID
Cell A2: 123456
LookUP Table: WBT
My code looks like this;
=IFERROR(VLOOKUP(A2&" "&X4,WBT,2,FALSE),IFERROR(VLOOKUP(A2&" "&X5,WBT,2,FALSE),IFERROR(A2&" "&X6,WBT,2,FALSE),IFERROR(A2&" "&X7,WBT,2,FALSE),""))))
This formula does not return a value when for example the completed course is X5, X6, or X7. If the completed course is X5 and I put X5 in my first vlookup's lookup value, it returns the correct status. That means, it only runs the first vlookup formula.
One observation when I try running this formula below and when the completed course is X5,it doesn't return a #NA but just a blank cell. The 3rd, and 4th Vlookup when ran independently and the completed course is X5, returns #NA
=(VLOOKUP(A2&" "&X4,WBT,2,FALSE)
Any idea? i hope i was able to explain it correctly though. Thank you in advanced
Dear Svetlana,
May I know some clarity on this as mu trail was not successful.
{=IFERROR(INDEX($C$2:$C$16, SMALL(IF($F$2=B2:B16, ROW(C2:C16)-1,""), ROW()-3)),"")}
Copy the below formula to several adjacent cells, e.g. cells F4:F8 as demonstrated in the screenshot below. The number of cells where you copy the formula should be equal to or larger than the maximum number of possible duplicate entries. Also, remember to press Ctrl + Shift + Enter to enter an array formula correctly.
Getting all duplicate occurrences of the lookup value
Thanks much in advance.
Best
Shofikul
I have a qusition.
is there anyway to do vlook from a table to bring the value from a cells in different column and raw in the same time.
for example.
products factor Jan Feb March
A fcst 5 7 8
A actual 4 5 9
B fcst 10 9 15
B actual 12 8 14
I need to make a table to read only i.e. fcst for A products in the specific month.
is there anyway to do it specially when you have huge database.
I am trying to get a formula to work. I have a call log in which I would like to see if a voicemail that was left, was returned after the original voicemail was received. I came up with: =IF(A2="Sent to Voicemail",IF(VLOOKUP(B2,C3:C$7,1,FALSE),"Voicemail Returned","Voicemail not Returned"),"")
Column A = Disposition
Column B = ANI
Column C = DNIS
Column E = Voicemail Return (Formula Row)
DISPOSITION ANI DNIS Voicemail Return
Sent To Voicemail 4078675309 9876543210 Voicemail Returned
Follow up Call Attempt 9876543210 4078675309
Follow up Call Complete 5103359999 9876543210
Sent To Voicemail 5102999999 9876543210 #N/A
Caller Disconnected 9253009999 9876543210
Follow up Call Attempt 9876549999 9158509999
Any help would be greatly appreciated
Warren
Hi
Thank you so much for the article. It is really very helpful.
I am stuck at a point. I am trying to apply formula for duplicate entries. In your example, you have one customer name with multiple duplicate values. My sheet has got multiple customer names with duplicate values. I used the formula in the article, but the formula gives a nil value after 5 entries. Can you please help.?
Thanks
Prithi
Hi I came across this function
=Iferror(Proper(Concanate(VLook Up($A2,RIC,2,False),","(Vlook Up $A2,RIC,3FALSE))).
I want to know where RIC comes from
I wanna use the data in sheet 1 and get the simple output on the sheet 2 but the exact value in the corresponding label tab only. I have sent you the mail with the example workbook. looking for your reply here or on the email.
Thanks!!
maybe you can help me.
I have a table where someone enters data based on a part number, date, and units pulled.
I have a Vlookup formula on another sheet that totals the units pulled, based off part number.
What I want to do is modify the Vlookup formula to allow us to total the same data, but for a particular date range.
What i want to do is have an independent Cell on top at "A1" where we would enter the cut off date.
And then in the Vlookup formula for the tables add an if formula to the criteria that will let tell it to only pull data if the date in the date column
I know Vlookup is limited to One condition, and I may just be crazy, but this would be a huge help, otherwise I will be writing a bunch of If formulas pointing this all over the place.
How can I make this work?
Thank you.
i am giving the below format i an unable to understand how can use the vlookup formula in in this condition
I WANT THIS CUSTOMER CODE (1335) APR SALE AUTOMATIC IN APPEAR FY 15-16
EX-
SHEET 01
CUSTOMER CODE CUSTOMER NAME
1335 BALAJI SERVICE CENTRE
FY MONTH FY 15-16
Apr 0
May 0
Jun 0
Jul 0
Aug 0
Sep 0
Oct 0
Nov 0
Dec 0
Jan 0
Feb 0
Mar 0
SHEET02
Fiscal Month Cons Party Code Cons Party Name Cons Party Type Desc Net Retail Selling
Apr TUA0205285 AMOL AUTOMOBILES TRADER/RETAILER -687.2
Apr TUA0203882 SIMRAN AUTO TRADER/RETAILER 3,256.4
Apr TUA0205283 AJEET MOTORS TRADER/RETAILER 845.8
Apr TUA0205284 ALMORA AUTO CARE TRADER/RETAILER 30,212.4
Apr TUA0205285 AMOL AUTOMOBILES TRADER/RETAILER 24,195.8
Apr TUA0205286 ARORA AUTO SPARES TRADER/RETAILER 58,845.3
Apr TUA0205289 BAJRANG AUTOMOBILES TRADER/RETAILER 7,341.0
Apr TUA0205290 BALBEER MOTORS TRADER/RETAILER 91,719.8
Apr TUA0205292 BANSAL TRACTORS TRADER/RETAILER 38,561.1
Apr TUA0205293 BATRA MOTORS TRADER/RETAILER 12,619.4
Hi if I wana do an vlookup with an condition stating some specific word if that reflect the beside it only then the value in the column should be captured can someone help me with the it...???
for example
for 2 if satnam is present then the value should appear in from of two only specific value "Satnam" Note
2-Satnam 12345 2
3-Kiv 4567
4-New 9756
Hi if I wana do an vlookup with an condition stating some specific word if that reflect the beside it only then the value in the column should be captured can someone help me with the it...???
for example
for 2 serial number if satnam is present then the value should appear in front of two only specific value "Satnam"
2-Satnam 12345
3-Kiv 4567
4-New 9756
2
i want to split qty of single cell.
Input
Sheet -1
Material PO qty Req. Qty
XX1 1 300
XX1 2 200
XX1 3 200
XX1 4 350
XX1 5 500
XX1 6 200
XX1 7 200
XX1 8 200
Material Batch Available qty
XX1 a 100
XX1 b 100
XX1 c 100
XX1 d 750
XX1 e 250
XX1 f 250
XX1 g 600
Req. Output as below
PO qty Req. Qty Batch Available qty Material remarks
1 100 a 100 XX1 PO qty Spilt
1 100 b 100 XX1 PO qty Spilt
1 100 c 100 XX1 PO qty Spilt
2 200 d 200 XX1 Batch qty Spilt
3 500 d 200 XX1 Batch qty Spilt
4 200 d 350 XX1 Batch qty Spilt
5 250 e 250 XX1 PO qty Spilt
5 250 f 250 XX1 PO qty Spilt
6 200 g 200 XX1 Batch qty Spilt
7 200 g 200 XX1 Batch qty Spilt
8 200 g 200 XX1 Batch qty Spilt
Hi,
I request guidance to solve below..
Need to compare one cell value with below table (A to P) and map 5th column value..
for eg Y = 33
C=22
P=44
A B C D 22
X Y Z K 33
M N O P 44
Lookup tables are working for either row wise or column wise,
please support..
Hi,
I am having an issue with building a report. I am trying to identify Precinct information by a street number range. I am attempting to do so by using a Vlookup to find the street (working).With the numbers by if statements to say that 17 A St falls within the A St 1 to 20 range 1 being in cell b2 and 20 being in cell c2.
Hi,
Thanks for creating this site. Definetely the most detailed, practical and useful information.
In the section "How to use VLOOKUP to get 2nd, 3rd, 4th, etc. matching values", I understood the way to find the 2nd occurence. But, could you also share the way to get the 3rd or nth occurence?
HI,
I am trying to easily portray an inventory availability list that instead of using style and size codes, simply indicates if a a style has the sizes in stock.
For example. Item: MD195, has sizes XS, S, M, L, XL. however, each size has a specific #, XS = MD195-01-31, S = MD195-01-32, etc.
I am trying to get it to update every time i load the current inventory, if it is available in XS, put yes or no, Small yes or no, etc.
The real difficulty comes when I try to drag the formula to apply to all cells, while referencing the appropriate cell(s).
I applied vlookup multiple rows with the same lookup value with index farmulla, my same lookup values are more than 3 i.e. if it if 10, then it shows only 1st value as a result and then #num error. rest of 9 values are not shows. i copied the farmulla 10 times... but results not came.
pls help me with this erros
Excel VBA VLOOKUP successfully returns matching data AND also returns an Err.Number = 1004. The datum are dates. I am suspecting the data types as being the issue. Since the VLOOKUP is successful it does not present a problem but, it is puzzling and I would like to be certain there is not underlying issues.
Why would a successful VLOOKUP throw a false error?
Hi, i need ur assistance to get the result using formulas especially using vlookup. Example i have a large data. In a column i have a account numbers with different branches. Also few account numbers are same but different branches. Is it possible to get the result using vlookup with same account number with different branches from the large data. Please help me...
And i would like to say thank you for providing the detailed functions of formulas. It is really helpful for me.
Use
=vlookup(a2&b2,data,3,false)
Sara, please read the section above entitled "How to do two-way lookup in Excel". I think this is what you need to implement.
Sara, I think your problem would be solved using more of a 2 dimensional vlookup:
https://www.ablebits.com/office-addins-blog/index-match-match-two-dimensional-lookup-excel/
Hello,
Try to write a formula with if and vlookup and I think I got it to work but I'm having trouble making to work for a entire year I need.
Example:
Sheet 1
October November
Names Hours Hours
John Smith 25 15
Katie Wilson 45 55
Jeremy Pate 37 20
Sheet 2
October
Hours
Names
John Smith
Katie Wilson
Jeremy Pate
=IF($B$1='Sheet1'!$B$1,VLOOKUP(A1,'Sheet1'!A:K,2,0),"no")
With this formula if B1(October) in sheet1 than it matches and the formula shows me the hours. However for November unless I change the formula I can't get the hours to appear in Sheet 2. Sheet 2 has ONLY one column for hours and I can't add anymore due to reporting restrictions. How do I get excel to automatically update it self if change "B1" Cell from October to November.
Please help. Thank you
plz clarify following senario,
Table _ 01
Compay No of Employees
aaa 221
aab 245
aac 250
aad 290
aae 271
aaf 340
aag 193
aah 213
aai 90
Table _ 02
Compay No of Employees
aaa 196
aai 345
aab 650
aag 193
aae 278
Expected result
Table _ 03
Compay No of Employees
aaa 196
aab 650
aac 650
aad 290
aae 278
aaf 340
aag 193
aah 213
aai 345
I used formula =VLOOKUP(D4,A$17:B$21,2,0) and ends up with following results
Table _ 04
Compay No of Employees
aaa 196
aab 650
aac #N/A
aad #N/A
aae 278
aaf #N/A
aag 193
aah #N/A
aai 345
how can i obtain correct results
NB:
i need to update table 01 referring table 02 and if data entry is not available in table 02 the data entry in table 01 should be remain as it is.
appreciate your kind response thanks and regard
In your section “How to get all duplicate values in the lookup range” you explain how to use Index, Small and Row to generate the list of values. I think there is a simpler way. Try the following. Select the range F4:F10 or a range with enough rows to hold the maximum number of expected values. Enter the following in the formula bar and then press SHIFT-CTRL-ENTER
=IF(B2:B16=F2,C2:C16,"")
I hope this works. I would like some help too however. I would like to make the list created by the above array formula to appear in the dropdown box for the allowed values for another cell i.e. using the Excel Data Validation functionality. However, I cannot get this to work. It seems as if array functions cannot be entered into the Data Validation entry box. Do you have any suggestions?
Ian
I'm having difficulty getting one of your examples to fit my scenario. I have 2 tables. Each includes the person's name and a date. I want to match the name / date combination in one table with the same combination in the other table, then return a third field.
In one table, I have dates across the top (column headings) and names down the side (row headings). I want to match the date / name combination from that table to the date / name combination in another table (see below) and return another field, in this case the city.
10/9/16 Bob Boston
10/16/16 Phil Philadelphia
11/13/16 Pete New York
Any help would be appreciated.
Thank You.