Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am looking a concatenated value which looks like this "16x16x8" the 8
represents the height of a box and vlookup always seems to go to a shorter box, so for example it would lookup value 16x16x8 and return 16x16x7.25 I would like it to return a taller box rather than the shorter box. Is there a way to this? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Check this list, especially item 4:
================================================== ======= Vlookup gives wrong answer Niek Otten, April 1 2006 Frequent causes: 1. Some cells look like numbers, but are actually text. You can check with the ISTEXT function. Check both the search arguments and the lookup table. Formatting as numbers afterwards doesn't help. Remedy: Format an empty cell as Number. Enter the number 1. EditCopy. Select your "numbers". EditPaste Special, check Multiply. 2. The data is not sorted ascending and the 4th argument of the VLOOKUP is TRUE or is omitted. 3. There are spaces or other invisible characters in either the search arguments or the lookup table. This often happens when you import data from other applications. Use the LEN() function to see how many characters there really are in the cell and compare that with what you see. Use the TRIM function to remove all spaces except single spaces between words. Use the CLEAN function to remove all nonprintable characters. HTML characters can be removed with a macro by David McRitchie, which can be downloaded he http://www.mvps.org/dmcritchie/excel/join.htm#trimall 4. The formula was copied from somewhere else, but the addresses of the lookup table were not absolute so have changed in the Paste process and now point to the wrong range. Use absolute addresses for the lookup table, like $A$1:$B$20 instead of relative addresses like A1:B20. When editing or entering a formula, use the F4 key to toggle between several forms of relative addresses and absolute ones (normally only for the table, not for the search argument, but this depends on your specific problem). The first hit of F4 changes the default relative address to an absolute one. That is usually what you need. Even better: use a Defined Name for the table instead of cell addresses; InsertNameDefine. 5. The table was extended after its initial use, but the definition of the table in the VLOOKUP or in the Defined Name was not adjusted accordingly. To prevent this from happening: always use explicit bottom and top rows (with dummy error values if necessary) and insert new rows or cells between those two. Then the definition of the range or the Defined Name will adjust automatically. Users of Excel 2003 and higher may profit from the List feature in the Data menu to maintain tables. ================================================== ======= -- Kind regards, Niek Otten Microsoft MVP - Excel "Robb" wrote in message ... |I am looking a concatenated value which looks like this "16x16x8" the 8 | represents the height of a box and vlookup always seems to go to a shorter | box, so for example it would lookup value 16x16x8 and return 16x16x7.25 I | would like it to return a taller box rather than the shorter box. Is there a | way to this? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Sep 24, 10:09*am, Robb wrote:
I am looking a concatenated value which looks like this "16x16x8" the 8 represents the height of a box and vlookup always seems to go to a shorter box, so for example it would lookup value 16x16x8 and return 16x16x7.25 I would like it to return a taller box rather than the shorter box. *Is there a way to this? have you tried doing Vlookup(A4,B1:B4,2,False) A4 being the lookup value, B1:B4 being the Array to look up in, and setting it to false will only return a column if it = the other exactly. Also make sure that the lookup values are sorted ascending. Thanks, Jay |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup in vlookup - taking the result as array name | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) | New Users to Excel | |||
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( | Excel Worksheet Functions | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |