# Vlookup Returns Data From One Row Above The Desired Result

Mar 18, 2007
I have a three or four letter abbreviation of a last name in A1. Column C contains a list of Last Names; column D contains a list of corresponding First Names; and column E contains a formula concantenating the First Names and Last Names from columns C & D.

I have the following formula in B1:

=VLOOKUP(A1,C1:E44,3,1)

I am attempting to match up the three or four letter abbreviation with the concatenated list to return the full name (First and Last) in cell B1, however, I'm not getting the desire result. I keep getting the name in the row just above the name I want.

View 9 Replies
ADVERTISEMENT
Oct 8, 2013

I have a file having 9000 rows with S.No. 1,2,3,4 etc. ,in ascending order.It has downloaded from available system in the company.

Can it be possible the file be in the format of desired sheet ( attach file ) through macro working or excel formulaes which is best suitable for the achieving?

For more clarification, refer the attach file of download sheet and Desired Sheet.

View 4 Replies
View Related
Jan 31, 2014

Code: =VLOOKUP((LEFT(C4,6)),'Data from 7500'!$B$16:$G$195,6,TRUE)

And it works great, except that the data returned is off by one row. For example, the correct value for the sample name in B107 is located in G107, but the formula returns the value in cell G106. I've tried changing the TRUE to FALSE and that returns #N/A.

View 5 Replies
View Related
May 15, 2012

I want the below coding to check if cells(i,9).value exists in range x4:x12, if yes cells(i,18).value should become "Pend to Audit" otherwise next.

Code:

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

Dim StateName, ST As Variant

Dim CName As String

Dim LastRow As Long

[Code] .........

View 1 Replies
View Related
Jun 10, 2014

When I drag my VLOOKUP formula down a column in Excel 2010, the return value copies the formula result from the original VLOOKUP formula result. For example, if the first VLOOKUP returns a value of 0.5, I expect to see 0.5 or 1 in the cell below that one. However, I get 0.5 which is not the expected result for the cell below.

When, I click the fx on the cells below, the expected return values appear in the formula result. After I click OK, the expected formula results updates and now appears in the cell.

I'm not sure what is causing this issue. My computer was updated recently from an old machine to a new one. I have never experienced this issue before.

View 3 Replies
View Related
Jul 27, 2014

I have a two different formulas the return a numbered result(PO Number) in the same column. I then vlookup both of them with the same formula into a pivot table, one returns the result one doesn't. format appears to be the same.

View 6 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
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
Dec 29, 2008

I have a worksheet called "Raw Data" where in columns J, I and G contain values. I would like to write a formula whereby if all 3 conditions are met, it will count the number of values found in column C.

I've tried to write an IF statement but it just returns FALSE, despite the result being true. Need the right combination of IF/AND statements that would do this?

=IF(AND('Raw Data'!$J:$J="Maintenance",'Raw Data'!$I:$I="Open",'Raw Data'!$G:$G="1-2008"),COUNT('Raw Data'!$C:$C)). I've tried to attach the workbook, but there's a problem with uploading attachments I think. Sorry if my explanation is unclear.

View 4 Replies
View Related
Jan 28, 2010

I have this COUNTIFS expression buried in a larger formula:

COUNTIFS(Table[C7],Table[C7]&"",Table[C21],">=1")

and it always returns a value of zero or some positive integer.

I'm now looking for a little "function" that I can wrap around this expression that will:

A) indicate any non-zero result as 1 or TRUE

and

B) indicate any zero result as 0 or FALSE

Something like...

AREYOUNONZERO( (COUNTIFS(Table[C7],Table[C7]&"",Table[C21],">=1") )

I'm sure there's a fairly efficient way to do this... but I'm totally stumped at the moment!

View 7 Replies
View Related
Jan 18, 2006

I have a simple formula subtracting one cell from another using =SUM(XX,-XX). When I click on fx and bring up the function arguments box, the formula result is displayed correctly in that box. However, the cell containing the formula will only display a zero. I have tried reformatting the cells to no avail. I have also tried getting a result using =XX-XX and that does not work either.

View 10 Replies
View Related
Jul 21, 2006

I have discovered a strange thing about excel and it is driving me mad and ruining my project.

Basically, If i enter the number 97.4 into cell A1 and then 97.165 into cell B1 and then enter the formula =A1-B1 into cell C1 i get the answer 0.235. Which is correct.

However, when you increase the number of decimal places to 30 the answer that is returned is 0.234999999999999000000000000000.

This calculation result seem to fluctuate wildly depending on the primary numbers in cells a1 and b1. Very rarely have i seen the full 30 decimal places without a bizarre result like this.

Maybe it has been too many years since i was at school and that i am confused with my numbers and that there is a real easy answer to why this result is returned.

As i said it is ruining my project that i am working on. Can anyone help? Why does excel do this? Is there a way to stop this happening? My project relies on this answer to be correct. Is there a way to force excel to stop doing this?

View 9 Replies
View Related
Aug 22, 2012

I'm compiling a list of names on a separate tab from a column that only lists the names sporadically. Problem: In the formula, the IF provides a TRUE, the row function, and consequently, the INDEX function (when I hit F9) provides the correct "name" and row number, but when I hit return, it provides the text 4 cells beneath what it should.

=IF(ROWS(F$5:F5)

View 7 Replies
View Related
Feb 15, 2007

I need a formula to count cells based on the date, so that I can have a blank cell when the answer is 0. I am adding values cumulative and future cells need to be blank because I have a graph that has a trend line and I don't want the trend line to fall off at the end. I also don't want to have to go back to this every month and update it.

Column A

Date

1/2/2007 0:00

1/3/2007 0:00

1/10/2007 0:00

2/10/2007 0:00

2/10/2007 0:00

2/15/2007 0:00

3/22/2007 0:00

3/22/2007 0:00

3/22/2007 0:00

4/31/2007 0:00

4/31/2007 0:00

4/31/2007 0:00

Column B

Invoice #

CM-0003881

CM-0003882

CM-0003883

CM-0003888

CM-0003928

CM-0003932

CM-0003933

CM-0003985

CM-0004007

CM-0004008

CM-0004009

CM-0004065

I have this formula in cell F3 that will add the dates through the end of January:

=SUMPRODUCT((A1:A1000>=DATEVALUE("1/1/2007"))*(A1:A1000

View 10 Replies
View Related
Apr 3, 2008

I have 2 tables, 1 beneath the other - table 1 columns represent date ranges and their values. Columns and their data are alternating color coding. Table 2 references, by means of array formula, this data - IS it possible to include the font color as a result?

BCDEFGH503/0310/0317/0324/03609/0316/0323/0330/03712348Prod113,91113,69713,58213,4849Prod21,9241,8943,1151,86510Prod31,2601,2401,2301,22121Age (Days)22Prod1211391123Prod22624Prod326

Formula in H22 = '{=SUMPRODUCT(((H$5-$D22)>=$E$5:$O$5)*((H$5-$D22)

View 9 Replies
View Related
Nov 20, 2013

I am looking up a risk matrix to return the risk rating... it is very simple, it works on one sheet, but on a different sheet (looking up different data, but same basic format) it returns exactly the opposite rating.

My formula is: =INDEX($G$6:$K$10,MATCH(I19,$G$5:$K$5,0),MATCH(J19,$F$6:$F$10,0))

Here is F4 to K10

I have data validation on I19 and J19 based on the cells below

Consequence

Priority

Very Low

Low

Medium

High

Very High

[Code] ..........

BUT... when I put Very Low and Very Low in the two cells (I19 and K19) I get Very High as the return.

View 1 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
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