N/A Error Using VLOOKUP Even Though There Is Match?
Jul 24, 2014
Why I am getting N/A errors in sheet 1 of workbook?
For example, in sheet1, Cell B2 should equal 3. And it should stretch across the entire data range, so even something like B14 should return 3.
View 8 Replies
ADVERTISEMENT
Mar 11, 2014
I am having some trouble getting a formula to work. I am building a report that pulls figures from a pivot table in another workbook. I am using a vlookup with match function to get the column index to find the relevant data I want. Where I need to add two columns together I am using sum, with the vlookup & match formulas nested in them e.g.:
=SUM(VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("FAID",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE),VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("COMM",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE),VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("BPCM",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE),VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("COMD",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE))
Where:
F13 = Employee number
Column C on the pivot 156 workbook is where the employee number is based.
The Match formula is then getting the column index from the column headings of the pivot table ie. "FAID"
This in itself works fine, as long as it finds a match in the column headings. This is where i get the error as in the above function "COMD" is not in the pivot table. However I need to keep it included as it may appear on a future pivot table. Is there a way of getting the sum function to complete even though later in the formula it can't complete the vlookup? So it will ignore it, or assume the value is zero if it can't find it? The formula probably needs to do this for all the vlookups as some headings may drop off in future pivot tables.
View 2 Replies
View Related
Dec 15, 2006
I am using Vlookup to search for a text string in column A and storing the value of column B for more than 40 variables.
I do NOT want a macro error on Vlookup each time it can not find a match. I want to store an "error message" in that variable and move on.
countif and a rountine handler sounds like a lot of coding for each variable; can I use ISNA?
SAMPLE
Sheets("CPARS download").Select 'CPARS DOWNLOAD
RFQnum = Strings.Mid(WorksheetFunction.VLookup("RFQ Number", _
Range("CPARSdata"), 2, 0), 1, 13) 'RFQ# should be same for each supplier
' RFQnum = Mid(RFQnum, 1, 13) 'truncate the supplier code at the end
BidDue = WorksheetFunction.VLookup("Bid Due Date", Range("CPARSdata"), 2, 0)...........
View 9 Replies
View Related
Oct 8, 2009
I am trying to match data from 2 independent sets, formatted slightly differently so not sure which function would work best for me. From the attached file, I am trying to match the date and time stamp (in cell A1) with that from the other data (in this example in cell E1) and return the data (from cell F1) to cell C1. So basically any date and time stamp before 04/03/09 04:00 will return a value of 44 (this value should appear, therefore in cells C1 - C30)
View 2 Replies
View Related
Feb 4, 2014
I have two sheets of data , sheet A and Sheet B.
Sheet B contains a column called "Name" and for each name, and for each name there are corresponding numbers. In sheet A, I have a "list of interest" in column A. What i want to do look through the data in sheetB to find a match from the list of interest and return the corresponding letters, located in column A.
I have filled out the first two rows of results that should be returned as an example.
One idea i had was to put a vlookup formula in each column result 1 to result 6 so i can catch all 6 "Serves" columns from column B, but there may be duplicates in the serve columns and vlookup only reports the first match.
View 3 Replies
View Related
Jul 2, 2006
the if stattement works perfectly and does exactly what i want except when it comes to the else part. if there is no error the statements are run perfectly but if there is an error (in this case the error is generated when a match cannot be found in the spreadsheet) the else statement doesnt kick in and post the msgbox.
the code just crashes. and returns an error 1004 on the line i have highlighted in yellow
res = WorksheetFunction.Match(invvar, Columns(1), 0)
If Not IsError(res) Then
Me.txtClientID.Value = ws13. Cells(res, 7)
Me.txtNumber.Value = ws13.Cells(res, 7)
Me.txtDate.Value = ws13.Cells(res, 8)
'save client id as a variable
'Print to invoice------------------------------------------------------------------.....................
View 6 Replies
View Related
Jan 8, 2009
I am receiving a run-time error with following code. The error message is "unable to get the VLookup property of the WorksheetFunction class". I only receive the message when the lookup value is not found in the table.
I thought adding the "False" command at the end would return an "N/A" but it didn't. Is there anything I can add to avoid this error?
View 3 Replies
View Related
Oct 8, 2009
I have this table
.......A.....B.....C....D
1.....I......a.....d.....g
2.....II.....b.....e.....h
3.....III....c.....f......i
As you can see, the number I has a,d,and g, II has b,e,and h, and III has c, f, and i
I want to make formula that if I make the input g it would return I, f would return III, and c would return III, and so on
I want to make four formulas by using VLOOKUP, INDEX, MATCH, INDEX&MATCH separately.
View 9 Replies
View Related
Nov 20, 2007
I am either trying to do 2 vlookups or 1 match and a vlookup, but I am not sure. I have two workbooks. The first workbook I need to populate the 'Actual Taken' column from my second workbook. Below is the first workbook:
******** ******************** ************************************************************************>Microsoft Excel - FY07Q3_LMS_Payroll_.xls___Running: 11.0 : OS = Windows Windows 2000 (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutD9=
ABCD1*Training*HoursStore*Manager*2Pay*Per*Hour*$28.37Actual*Taken3LMS*Courses4Baseball*/*Softball*Basics***5Baseball*/*Softball*Equipment***6Bike*Basics***7Bike*Fitting*and*Essential*Items***8Callaway*Golf***9Columbia*Footwear*Technologies*2006/2007***RCoursebyPosition_MGR*
[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.
The second workbook contains all of the data. Please see below:
******** ******************** ************************************************************************>Microsoft Excel - Book2___Running: 11.0 : OS = Windows Windows 2000 (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutA1=
ABCD462Softlines*MgrTeam*Sports*-*Hockey**Count3*463Softlines*MgrTeam*Sports*-*Lacrosse*Count2*464Softlines*MgrTeam*Sports*-*Soccer**Count4*465Softlines*MgrTennis*Audio*CD*Test*Count4*466Softlines*MgrTennis*Basics**Count7*467Softlines*MgrTennis*Equipment*and*Technologies**Count7*468Softlines*MgrUnder*
What I would like to do, is first have the formula locate the Store Manager from the First workbook and find it in the Second Workbook, then once it finds Store Manager, look at the Course Name from the Frist Workbook and find it in the second workbook, finally populate column C from Workbook 2 to the Actual Taken in Workbook 1.
View 9 Replies
View Related
Mar 20, 2007
I have an account issue. In the attached file sheet Balance, there is a trial balance sheet with account ID, Name, Credit and Debt which I download from system every month. In sheet Check, I have some related account IDs. If the ID is found from Balance sheet and is Credit, the amount in Check sheet will be positive. Otherwise it will be negative.I have ever tried to use Match, Vlookup function to do it but did not get it.
View 3 Replies
View Related
Nov 26, 2008
I have a spread sheet of information exported from an inhouse software package saved to my computer; this info is a few months old so i want to compare it against newly exported data to check for new companys on the system and changes of address for old companies etc.
Typical fields are as follows:
Setting name; street address; post code; etc...
View 5 Replies
View Related
Dec 23, 2008
In Column A I have vessel departure dates
In Column B I have Final Destinations
In Column D I have vessel arrival dates
I am trying to get the result of column D based on matching A & B information. My dilemma is that if I have vessels with the same departure dates going to different destinations how can I retrieve the arrival date? I've been trying "vlookup" and "index/match" to no avail.
View 4 Replies
View Related
Oct 22, 2009
I have a worksheet that has numerical data in A1:A22. In E1:E61 I have set values in numerical order and in F1:F61 I have a letter or letters that correspond to E1:61.
I am trying to write a formula in B1 that will look at the value in A1 and then match it up in E1:E61 and then return the corresponding letter in F1:F61.
e.g: in A1 i have an INDEX and MATCH formula
View 2 Replies
View Related
Nov 13, 2009
In cells A1:A10 I have the following list;
FLOUR
DOUGH
CHICKEN
BEEF
PEPPERS
TOMATOES
CHEESE
ONIONS
POTATOES
SALAMI
I want to be able to get a partial match that will allow for spelling mistakes by the user. The wild card (*) seems to only look at the left-most text and return #N/A if the text isn't matched sequencially.
For example ....
View 12 Replies
View Related
Aug 26, 2007
i have a customer work book for outstanding orders of which there are hunderds of rows with there name order number and the items that are outstanding
when i have progressed all my purchased orders i take all the items and run it throught my work book using vlookup to return who wanted what items if any
but what if there are more then one customer wanting the same item how can i get vlookup to know that and return the next match
i'm still very new at excel so can someone please help me
attached is a small test of my work book
if you see item 3182Y/1.0/BLK
you can see it is wanted by both a.f switchgear and amg
but it will only return a.f switchgear
View 14 Replies
View Related
Sep 23, 2008
I have two columns with names on it. and Column A has about 600 names and column B has about 447 names. I want to match these two columns and get the names which do not match on Column C.
View 11 Replies
View Related
Nov 19, 2008
i currently have a spreadsheet that uses vlookup and match to identify data that matches 2 criteria.
so there is a table with names on the left and dates on the top, and the dates change over time. this reference another table with the data for the names at all dates. therefore, the formula does is a vlookup with a match inside it.
this works well.
so say today is Jan 1.
Columns 1, 2 and 3 are Jan 1, Feb 1, March 1
On Feb 1, columns 1, 2, and 3 are Feb 1, March 1, April 1
in column 4, i want it to equal the sum of the data for all dates beyond the date in column 3.
does this make sense?
i attached a small sheet i was working on to play around with these functions. in the sheet i just used numbers (1,2,3) instead of the dates for simplicity
View 4 Replies
View Related
Dec 2, 2008
I have a spreadsheet that looks like this:
ABCD E F
1Scenario A Scenario BScenario C
2Studio1520
31Bed1520
42Bed150
5
6
7Scenario A Scenario B Scenario C
8Studio5% 10% 15%
91Bed10% 15% 20%
102Bed15% 20% 25%
RIght now my formula For Cell D2 is
=IF(C2=0,(B2*-$D$8),0)
I need the formula to Match what is in Column A and Also what is in Row 1 to what is in the table (C7:F10)
View 3 Replies
View Related
Aug 17, 2009
I am able to to use the Vlookup to look up for value in the "Sheet sept". All value can be updated expect the item called "mug" as it is not listed in the "Sheet all". How do I highlight the missing item in the "Sheet all"? Attached herewith a file for better understanding.
View 11 Replies
View Related
Sep 21, 2002
How do you do a vlookup with a partial match?
View 5 Replies
View Related
Oct 30, 2012
I am having 2 workbook. I want to vlokkup / extract the relevant column values if Lookup_value DOES NOT MATCH.
Ex:
Workbook1
A1=PPP-00099
Workbook2
C1=PPP-00088 E1=786
In F1 (of Workbook2), answer would be 786 since C1 DOES NOT MATCH with A1.
If matched, answer required="" (null).
View 5 Replies
View Related
Apr 20, 2007
Here's a sample data set. How can i perform a vlookup to populate my forecast columns and have it match BOTH the customer column and the SPFKey columns?
******** ******************** ************************************************************************>Microsoft Excel - Receiving Qtr1 2007.xls___Running: 11.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutL20=
ABCDEFGHIJKL1Business*UnitCustomerSPF_KeyFORECASTACTUALS*2"NBPRO"Sold-to*PartySPF_KeyJanFebMarTtlJanFebMarTtlVariance3NBPROAAR*CORP.883***01*1224NBPROAAR*CORP.933***020**20205NBPROAAR*CORP.934***09**996NBPROAAR*CORP.999***02*1337NBPROAEROTHRUST*CORPORATION6600***01**118NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD918***0*11229NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD919***0*112210NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD933***042422210610611NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD934***042424112512512NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD1742***0*1*1113NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD1793***0*0*0014NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD1795***01**1115NBPROAIR*INDIA933***036408215815816NBPROAIR*INDIA934***046176512812817NBPROAIR*INDIA1742***0**00018NBPROAIR*INDIA6601***0*1*1119NBPROAIR*INDIA6602***0*1*1120NBPROAIR*INDIA6603***0*0*00Sheet2*
[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.
View 9 Replies
View Related
Apr 3, 2008
I have two worksheets that I am hoping to use to generate one report in excel. Sheet1 contains the following information for my entire work center:
Benefitor Account Dollar Value Document #
Sheet2 contains a list of Benefitors that are relevant to only me.
I want to pull the information from Sheet1 where the benefitors on Sheet1 match the benefitors listed on Sheet2 into Sheet3.
View 11 Replies
View Related
Dec 4, 2008
I have a tab that has Employee Name in one column and the benefit they chose in another column. The employee name is repeated a number of times since they have chosen more than one benefit.
I am trying to create a new tab where the employee name in is the first column (only once) and each benefit is listed in separate columns along the top. I want to put an "x" in the column for the benefit the employee has chosen.
Is there a way to say "look for this employee, see if this benefit is what they chose, and if it is, put an "x", if not, leave blank"?
View 9 Replies
View Related
Dec 15, 2008
I have some intersting issue. Actually there are lot of functions in excel but my purpose is somewhat is solved by VLOOKUP , MATCH, OFFSET, INDEX functions.
Prob: Here i have a database contains as below
A1 B1 C1 D1
111 123 i/p o/p
222 301
111 321
333 456
If i keep 222 / 333 in C1 i will get output at D1 as 301 / 456 respectively. But if i keep 111 , i want a desired result to be most lastly updated value in the array that is 321 but it is printing 123.
let say if have
A1 B1 C1 D1
111 123 i/p o/p
222 301
111 321
333 456
111 500
then if i enter 111 in C1 then i want to get 500 but still am getting 123 only. tht is the first hit.
i want to return a value which has lastly updated.
So if i use any fuctions from above i may getting correct results for 222,333 but i want result for 111.
Thoughts and rules:
1.The new entry will added at the end of the array.
2. A1/B1 are only numbers.
3. free to use any functions
U can have flexibility to create one more array or even update the column B1 if any i/p matches in column A1. So there will always a single output for each unique input.
Imean to say u can have a array with
A1 B1 C1 D1
111 321 (replace 123 with 321) i/p o/p
222 301
(remove this entry)
333 456
View 9 Replies
View Related
Feb 4, 2009
I am trying to insert a formula to find the name (match?) from one column on say sheet 3 and return the value in the next column.
column a sheet 1
my name
your name
someone else
I would like it to search sheet 3 column a and return value sheet 3 column b
as sheet 3 would look like this
col a / col b
john q / 11a
my name / 13b
someone else/ 9a
your name/ 12b
What my goal is - is to only have to enter the column b in sheet 3 one time per name and have it fill in on sheet 1 for every entry of multiple entries of the same name in column a if that makes sense.
I know this should be simple- I want to avoid the if statement as there will be about 50 names to sort and return the proper class (column b)
View 9 Replies
View Related
Jun 5, 2009
I am trying to get the info shown on table 1 into table 2. I suspect index and match is the answer, but I am not sure.
Table 1 Employee # Deduction Amount 101 AD&D 7.00 101 LIFE 4.00 101 LTD 12.00 101 STD 6.00 101 HEALTH 300.00 101 DENTAL 25.00 105 AD&D 8.00 105 LIFE 6.00 105 LTD 6.00 105 STD 300.00 105 HEALTH 25.00 105 DENTAL 8.00 112 AD&D 7.00 112 LIFE 5.00 112 LTD 13.00 112 STD 5.00 112 HEALTH 450.00 112 DENTAL 37.00 Table 2 AD&D LIFE LTD STD HEALTH DENTAL 101 105 112
View 9 Replies
View Related
Jun 17, 2009
I've got a vlookup function driven by the result of a simple equation.
=IF(C36="","---",VLOOKUP(C18/C39,'Engine & Configuration'!D1:G24,2,TRUE))
The issue I have is that I want the result to return the CLOSEST match, not an exact or rounded up match. For example, is my "C18/C39" equation returns a value of 1.000039, I want it to match with "1" in the array and not with 1.25. The FALSE option will not work because exact matches will be very rare.
The values in the array are not whole numbers, so I don't believe a ROUNDUP type code will help.
View 9 Replies
View Related
May 8, 2014
worksheet.sample.xlsx.
Problem is the PO no and the item no must match so in order to RETURN the sales order no in wk. 13 worksheet. I had the data in wk. 11 highlight in yellow but turn up error.
View 3 Replies
View Related
Aug 6, 2009
In the help file for MATCH it says:
If MATCH is unsuccessful in finding a match, it returns the #N/A error value.
So I am trying in vain to capture the error, but can't see where I am going wrong.
View 8 Replies
View Related