# VLOOKUP Returns A Incorrect Match

Aug 30, 2007
In the attached spreadsheet I'm using VLOOKUP to create a cross reference between worksheets JS and ITEM. If you will look at the ITEM worksheet cell reference H13 & H14. The correct value for H13 should be AMC, not 729. Is there a way to use the value in the Class column and Item ID column in combination to get the value AMC? Would MATCH & INDEX work? I'm not familiar with Match & Index. I'd appreciate some help here. I've got 15,404 records to evaluate this way.

View 14 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 8, 2006

On the attached spreadsheet A14 and B20 appear the same but VLOOKUP returns N/A. The CELL "FORMAT" function returns "G" for both cells, but the "EXACT" function returns FALSE. If somebody could explain what is causing them to be different I woud be extremely grateful.

View 5 Replies
View Related
Apr 29, 2009

I am having problems with the following formular in that it does not return what I am expecting.

I have 2 columns of data that hold Y/N values and I would like either "Yes" or "No" to be displayed in Col C for the 4 possible combinations that the interaction of Y and N in columns A&B give.

The data is

Col A:A = Y or N

Col B:B =Y or N

The four possible combinations and outcomes are:

Col A = Y & Col B = Y outcome in Col C = "Yes"

Col A = N & Col B = Y outcome in Col C = "Yes"

Col A = N & Col B = N outcome in Col C = "No"

Col A = Y & Col B = N outcome in Col C = "No"

The formular I have tried is:

=IF(OR(AND(A1="Y",B1="Y"),A1="N",B1="Y"),"Yes","No")

However while three of the outcomes for the combinations are correct (N/Y, Y/N, Y/Y), the output for the N/N combination is incorrect and returns "Yes" instead of "No".

Just wondering if anyone has any ideas as to what is wrong with this?

View 9 Replies
View Related
Dec 1, 2009

I have created a table in excel, and it has a very simple sum totals. When i include all cells in the table the total becomes 0. When I exclude a cell in the table, the total shows. I have deleted the row and re inserted another one and copied the cell content from above that was not having a problem,

View 9 Replies
View Related
Mar 28, 2009

When I use that function on a UserForm it executes the code immediately, not waiting for the value to be entered. Thus the code executed that relies on the new values returns an incorrect value.

Example

A1 | 150

A2 | 100 <-- this is the value being changed to 300 with the Textbox

A3 | 250 = Sum(A1:A2)

Now with:

View 4 Replies
View Related
Aug 4, 2006

My goal is to sum up the total sales and total forecasted sales of each cost center. I compiled a formula that is supposed to do this just as I want it to. Simple enough. However, for some odd reason the formula returns either the totals of ALL cost centers or just a zero instead of the correct result. The weird part is that when I check the formula by pressing the "insert formula" button it suggests that the formula actually should produce the desired result.

View 5 Replies
View Related
Apr 22, 2008

I setup this function to pull my staff's schedule an auto generate the forms i need however the lookup function works properly sometimes and improperly others i checked the syntax and it is correct how ever the wrong data is continually returned. I have attached the file if anyone can help. the VISUAL PLAN tab is the one contaning the formula and it pulls data from PLAN, CURENT SCHEDULE, AND CATAGORY SUMMARY however the only formulas hat i have a problem with are the ones referencing CURENT SCHEDULE.

View 9 Replies
View Related
Nov 28, 2012

I've created a spreadsheet to 'translate' number/letter combinations (sub-levels in the UK education system) into a numerical value. I looked up how to do this on google and, through a bit of trial and error, worked out that the lookuptable has to be in alphabetical order, etc.

My problem is when I enter in any of the 'P' values (see attached), it returns 0.5.

View 4 Replies
View Related
Nov 10, 2011

I have a problem with VLOOKUP function and I am looking for a workaround.

SheetA I have a column of business names and another column of the category.

SheetB has a list of credit card transactions and a column of categories - The results obtained from incorrect results from SheetA...

View 7 Replies
View Related
Dec 24, 2007

agentsIDCount Name1ACCT1Name2ACCT2

Joe1113

Jimmy2222

Sarah3333

The above is A1 thru G1.

I have a list of accounts on Sheet2 that have the agent ID's (listed on K:K), Acct #s listed D:D and names E:E.

I want to match Sheet1 B2 with Sheet2 K$1$:K$50000$. I want to return the first match under this ID from Sheet2 Column E (to post on 1 Name on sheet 1) and then Column D (to post on 1 Acct# on sheet 1).

Then the next match goes to 2 name, 2 acct # and so on.

View 9 Replies
View Related
Mar 18, 2009

I am using the formula =VLOOKUP(F4,Scoring!$B$3:$C$66,2,FALSE) in column 'G' to return values from another sheet, 'Scoring', if column 'F' has a name in it the value is returned. The problem is if column 'F' is blank the formula returns ### and I cannot SUM column 'G'.

View 6 Replies
View Related
Apr 18, 2009

I have a vlookup formula for a table (attached), where for some reason, I cannot get rid of the #N/A value that is returned. I am referencing on the first sheet the 'No." column, and in checking for that number in the second column, am wanting to put the value in the 'moldules' column. I have tried converting the reference cells to text, numbers, have done =LEN to look at character counts, etc etc. I have also tried to build a simple dummy vlookup on a different set of data. The file is in Excel 07.

View 4 Replies
View Related
Feb 3, 2010

I want the A column to find it's match in the G column and place the corresponding number from the H column in the the B column. See attachment. formula is so basic: =VLOOKUP($A2,G1:H8806,2)

View 2 Replies
View Related
Feb 5, 2010

I have a problem with a spreadsheet that has three tabs. In Sheet1 is the first set of values and in Sheet2 is the second set of values. My boss wants me to make a third tab which pulls items from both sheets. He wants is so that any items from Sheet2 that AREN'T on Sheet1 are listed in the 3rd sheet. If they ARE listed on Sheet1, it returns a blank space. I can get it to return a blank space but every other value it pulls (In other words, values that are not on both sheets) returns a N/A instead of the value itself. Attached is the spreadsheet with just the values. Here is the formula I use in the 3rd tab to pull the info:

=IF(VLOOKUP(Sheet2!$A3,Sheet1!$A$1:$A$1044,1,FALSE),"",Sheet2!$A3). Do I just use regular lookup or MATCH instead of VLOOKUP.

View 2 Replies
View Related
Apr 28, 2006

Using the following formula, =VLOOKUP(A232,'[HEALTHLINK SPIFF 4-27-06.xls]Rep Total'!$A$2:$D$279,4,FALSE). returns #N/A in some cases - I would like it to return the value of Zero since I need to total the results column

View 5 Replies
View Related
Jul 24, 2007

I am attempting to use Vlookup to reference data in another file. if I use the vlookup function it works just fine UNTIL i add data to the referenced file. Then the vlookup never finds the new data. example in the file "TOLA" which references the file "INVENTORY MASTER":

Formula entry:

=IF($B25="","",VLOOKUP($B25,'[INVENTORY MASTER.xls]INVENTORY'!$A$4:$L$3356,3))

Now, if the data 031110 is entered in B25 of the current sheet, and 031110 is in the A column of sheet INVENTORY MASTER.xls, the proper data appears. (Data from a couple of columns to the right as expected)

Now then, I have closed both INVENTORY MASTER and NOLA. Now I reopen INVENTORY MASTER and make additions to the sheet, save it and close it. Lets say I added items up to 03318, and there is valid data in the columns to the right (B through J). I save and close INVENTORY MASTER....

View 6 Replies
View Related
Aug 7, 2009

I have the following formula that returns a number, however it returns the first number it comes to when the criteria is met,

View 2 Replies
View Related
Oct 21, 2008

How to make vlookup work right? I have tried it once and it worked but I can't get it ot work again.

I changed the format to text for the data I using and the data I looking in to see if that would fix the ref# or N/a error.

Is the formatting one possible issue?

I am slow to vlookup but I used the formula as

1. the lookup value is the serial #

2. the table_array is the entire worksheet that I am searching in - or should I just use the column that hold the values I am looking for?

3. the column_index_num is ??

4. [range_lookup] is FALSE.

View 11 Replies
View Related
Nov 12, 2008

I use a lot of VLOOKUP formulae in the sheets i put together and, despite both the lookup value and table array being in the same format (usually text format), i often get an #N/A being returned.

Here's the fun part... if i then do something simple like access the lookup value cell (either by double clicking or pressing F2) and then hit return, then the vlookup calculation suddenly returns the correct value.

I'm convinced it's something to do with the way the cells are formatted but can't work out what.

View 4 Replies
View Related
Mar 11, 2009

I have an issue using the average formula (example attached). I need to calculate the average grade of a group of students. I have used VLOOKUP to convert grades to numbers. Then averaged these results and converted back. It appears to work for most results, but some are not working. I have messed about with cell formatting etc, but cannot seem to figure out why its not working for some rows but does for other rows?

View 9 Replies
View Related
Mar 26, 2009

Looking for some help to figure out what is causing our problem. My friend has created the attached excel sheet in Excel 2003. The issue is that the a vlookup does not seem to be finding the correct line for the value from the lookup table when it is returned twice.

Let me explain - The details are contained in the attached workbook. There are three sheets in the workbook - NH3Curve, Samples and Qvalue table.

On the Samples sheet, in cell C12 and C13 you can enter varying values. Go across to F12 and F13 and you will see that they both have the value 22.1. This is where the issue occurs - in cells G12 and G13 the lookup value should be the same - but it is not. G12 is actually returning the value for 22.0 not 22.1. (lines 173 and 174 on the Qvalue sheet). We cannot ferret out why this is happening.

Any help would be greatly appreciated. Sometimes when you look at something you can't see the obvious, so I hope it is that simple.

View 11 Replies
View Related
Mar 1, 2008

In this sample below, I need to extract all matches for my look up value. Where I extract the data to is not important because it will be used as informational data in user forms. Basically, I have 670 rows that make up this table...this table is static (never changes). Each row represents a unique combination for achieving the value on the left.

To take it a step further, I would like the ability to deviate from the lookup return...in other words, force the return to be one row down, or one row up (this would satisfy my first requirement as well). I tried offset with vlookup, but I cannot make that do anything useful. I used match to get the row number of the return, but I don't know what to do with that row value now that I have it sitting in a cell in order to accomplish this. I was thinking I could use an offset formula with the cell's value to get this done, but I could not figure out how without doing it in VBA.

In the end, I will present this data on a userform...first will be the actual vlookup returns, then the user will have an option to select the next row down if they want (same look up value if one exists) or up (next higher value).

If possible, I would like the data lookups to be accomplished without VBA.

This is an extremely large working application, (about 17MB so far), lots of VBA coding and logic applied. This problem is a result of a request from the users of this application.

Here is a sample of what I am looking at.....

View 9 Replies
View Related
Apr 29, 2009

this formula works but returns #N/A when the result is false, how can i get rid of N/A but replace with 0.00 even though i have 0.00 as false

=IF(VLOOKUP(A10,Down!$F:$H,3,0)="No",SUMPRODUCT(($A10=Downloads!$F$7:$F$3823)*(CT!E$9=Downloads!$A$7:$A$3823),Down!$D$7:$D$3823),"0.00")

View 9 Replies
View Related
Apr 2, 2003

=IF(LEN(G6),VLOOKUP(IF(ISNUMBER(G6+0),G6+0,G6),HistoryTable,4,0),"")

I would like this/a formula to return nothing when the cell in "HistoryTable" is blank. Right now it is returning a zero.

View 9 Replies
View Related
Oct 28, 2006

I have a sheet that uses vlookup when the lookup returns #na error how can i conditional format these cells to so text is same as background

View 9 Replies
View Related
Feb 16, 2007

I have a formula that references another worksheet. Using the VLOOKUP function, it works great, except if the data on the other worksheet has a blank cell, it then returns a 0 (zero). Within the formula below, cell E10 is my "unique key" and is the only raw data within this spreadsheet. All other cells are strictly formulas. This formula I am using below works perfectly if there is complete data, but that is not always the case. =IF($E10="","",IF($E10="~ None ~","",VLOOKUP($E10,Projects!$F$3:$T$226,5,FALSE)))

View 8 Replies
View Related
Apr 26, 2007

I'm used to using the VLOOKUP Function a lot, and up to now it has always worked fine.

Instead of returning the value of the looked up cell (text) as it usually does it seems to be returning a number, which has something to do with the row number of said cell.

I copy and paste a formula between sheets and it does the same so I'm pretty sure it's not something in the formula.

View 9 Replies
View Related
Dec 3, 2013

In the attached file I used =MATCH(TRUE,INDEX($B$2:$B$10="",0)) to retrieve the location of the first empty cell.

When using the "Evaluate Formula" tool, it is clear that the position in the array created by the INDEX function is the 6th. Nevertheless, the final outcome is 9, being the last cell in range.

View 3 Replies
View Related
Feb 12, 2013

Let's say I have a standard Vlookup formula entered in cell C2

Code:

=Vlookup(A2,Sheet2!$B$2:$C$10000,2,0)

For that formula there may be 100 matches found in Sheet2, each with a different return option and obviously the above formula only returns data from the first found match.

Is there some way to drastically change that simple formula in VBA script to ...

1. Auto fill formula down 100 rows & return all possible return options upon match and not just the first return given upon the first found match

2. Make the lookup value be the A cell in the active row

View 8 Replies
View Related