![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Northern Ireland
Posts: 113
|
I have a table with 4 columns.
Col 1 has the numbers that I wish to search through, (This is in ascending order and is formatted as a general number). Col 3 has text which I want to appear when the VLOOKUP returns an exact match. I am using false The problem is that VLOOKUP returns the answer sometimes but for some reason is not consistent. Has anyone come across this problem before? and if so how could I resolve it? [ This Message was edited by: barrettm on 2002-04-09 00:57 ] |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
make sure the last bit of the vlookup statement is set to FALSE
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
the FALSe statemnt is normally what gives the error.
also make sure the loojup covers all the relevant cells, and that formatting is consistent. and make sure the 1st column is sorted correctly and there should be no problems at all. |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
The first column of your lookup table must be really number-formatted, if the lookup value that you feed to your VLOOKUP formula is a number. Try: =VLOOKUP(A1+0,lookup-table,3,0) where A1 is your lookup-value. Adjust to suit. If this leads to the expected results, then the first column of your lookup-table is not numeric but text-formatted. [ This Message was edited by: Aladin Akyurek on 2002-04-09 01:17 ] |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
ok.
is the lookup only in one cell or multiple cells? are the errors only occuring in ceratin lookups, are the lookups all the same lookup matrix? |
|
|
|
|
|
#6 | |
|
Board Regular
Join Date: Mar 2002
Location: Northern Ireland
Posts: 113
|
Quote:
The errors are occuring for particular lookups. I don't understand what you mean by lookup matrix. |
|
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
lookup matrix is the area of the lookups. but is not the problem if you only have one lookup.
can you send me the sheet or not? |
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Mar 2002
Location: Northern Ireland
Posts: 113
|
I can send you the workbook, it was created in excel 97.
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
ok. send it to me.
i do alot of work with lookups and have 97 running. |
|
|
|
|
|
#10 |
|
Board Regular
Join Date: Mar 2002
Location: Northern Ireland
Posts: 113
|
On 2002-04-09 00:17, BarrettM wrote:
I have a table with 4 columns. Col 1 has the numbers that I wish to search through, (This is in ascending order and is formatted as a general number). Col 3 has text which I want to appear when the VLOOKUP returns an exact match. I am using false The problem is that VLOOKUP returns the answer sometimes but for some reason is not consistent. Has anyone come across this problem before? and if so how could I resolve it? The first column of your lookup table must be really number-formatted, if the lookup value that you feed to your VLOOKUP formula is a number. Try: =VLOOKUP(A1+0,lookup-table,3,0) where A1 is your lookup-value. Adjust to suit. If this leads to the expected results, then the first column of your lookup-table is not numeric but text-formatted. Aladin, Does the look upvalue have to formatted to number as I am looking up values such as 018 038 048 etc? My 1st column is formatted to General number. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|