gh_user
asked on
Excel VLookup Problem
I am preparing a cost estimate in Excel 2010, and have also created a table with a set of cost rates for each item.
In the rates column in the cost estimate, I have used a vlookup function to insert the rate for the corresponding item. Its all working OK except for 2 items 'DLH' and 'LDE'. I get #N/A for those items. Have checked using same value category (eg text), and typing exactly same text. But still not resolved. If I change item description to say 'xxx', the problem goes and the corresponding rate appears. Seems to not like anything that starts with 'D'.
Hope someone can help
In the rates column in the cost estimate, I have used a vlookup function to insert the rate for the corresponding item. Its all working OK except for 2 items 'DLH' and 'LDE'. I get #N/A for those items. Have checked using same value category (eg text), and typing exactly same text. But still not resolved. If I change item description to say 'xxx', the problem goes and the corresponding rate appears. Seems to not like anything that starts with 'D'.
Hope someone can help
ASKER
Thanks
Here is file.
Abbreviation LD causing problem as can be seen.
For data logger, wanted to use DL, but same problem. So have shown as x1 at the moment. Price-Est.xls
Here is file.
Abbreviation LD causing problem as can be seen.
For data logger, wanted to use DL, but same problem. So have shown as x1 at the moment. Price-Est.xls
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks..that works...what did adding the '0' do to the formula?
The syntax of Vlookup is
VLOOKUP(lookup_value,table _array,col _index_num ,range_loo kup)
Where Range_lookup is a logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match. Here is an extract from Excel's Help.
HTH
Sid
VLOOKUP(lookup_value,table
Where Range_lookup is a logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match. Here is an extract from Excel's Help.
Range_lookup A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match:
If TRUE or omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned.
The values in the first column of table_array must be placed in ascending sort order; otherwise, VLOOKUP may not give the correct value. For more information, see Sort data.
If FALSE, VLOOKUP will only find an exact match. In this case, the values in the first column of table_array do not need to be sorted. If there are two or more values in the first column of table_array that match the lookup_value, the first value found is used. If an exact match is not found, the error value #N/A is returned.
HTH
Sid
I forgot to mention that you may either use 0 or FALSE which is basically the same.
Sid
Sid
ASKER
Very quick response also.
If you're using 2010, you may as well make use of it's functions...
=IFERROR(VLOOKUP(C8,Rates, 5,0),"Erro r")
This will take care of anything where there is no value found in your lookup table (i.e. Rates). If you're worried about backwards compatibility, you'll need a slightly longer, slower formula...
=IF(ISNA(VLOOKUP(C8,Rates, 5,0)),"Err or",VLOOKU P(C8,Rates ,5,0))
HTH
=IFERROR(VLOOKUP(C8,Rates,
This will take care of anything where there is no value found in your lookup table (i.e. Rates). If you're worried about backwards compatibility, you'll need a slightly longer, slower formula...
=IF(ISNA(VLOOKUP(C8,Rates,
HTH
ASKER
Thanks HTH
Sorry, HTH means Hope This Helps. My name is Zack (I should have put that in there!). :)
ASKER
Doppy me...thanks firefytr
Sid