Apache OpenOffice (AOO) Bugzilla – Issue 63259
VLOOKUP trouble between version 1.1.5 and 2.0.1
Last modified: 2006-04-07 11:36:05 UTC
I use a file sxc made with OO version 1.1.5 (lets call it file1) This file is linked to another file (sxc)(lets call it file2) via the "FindV" function ("recherchev" in french). When I open file1 with openoffice calc v 1.1.5 every cells are correctly set according to datas contained in file2. (This works also if file2 is converted to ods and formula changed to point to the new ods file) But when I open file1 with openoffice calc v 2.0.1 some cells are correctly set according to datas contained in file2 but most of them have "NA" value.I tried to convert file1 and file2 to ods format but the trouble remains. I did not change the formula(except the filename extension from sxc to ods),I've only converted the files to new format (ods). Last test: when I open ,with version 1.1.5, file1 converted to ods pointing to file2 converted also to ods , everything is fine!! I'm not sure to be clear, if you need more details contact me.
I believe the English equivalent of RECHERCHEV is VLOOKUP, not FINDV -- adjusted Summary. What arguments are you passing, and is your data sorted? The behavior of LOOKUP on unsorted data changed with 2.0, see issue 58286, perhaps VLOOKUP did as well. If you wish to pass unsorted data, you'll need to pass FALSE in the fourth argument.
Arguments used are : - The value I wan't to find (ex : $E9) - Matrix where to search (this is the link to the external file) (Ex:'file:///C:/Xchange/composants.ods'#$Composants.$A$2:$J$101) - Index of the column inside the matrix (EX:7) - Boolean to specify if the matrix is sorted or not. (Ex: false, because datas are not sorted) Here is the complete formula : "=RECHERCHEV($E10;'file:///C:/Xchange/composants.ods'#$Composants.$A$2:$J$101;7)" As I said in the first description, I have "#NA" inside some cells and as you told me, I've just added "false" argument inside the formula and I receive "#NOM?" ("#NAME?") inside ALL cells. Any idea?
I don't know much about localized OO: perhaps, en francais, OO doesn't like FALSE. Try entering the number 0, or FAUX? If that doesn't resolve your problem, please upload an example spreadsheet (or spreadsheets) which demonstrate the problem.
That's it sir!! "FAUX" or "0" instead of "FALSE". Formula works fine but I think it's a bit strange to be obliged to set an optionnal argument,isn't it?? Thanks a lot.
I think if you read the docs carefully, you may discover that you were supposed to either set that argument or have presorted your data already in 1.5. I'm glad to hear it's now working for you. I'll close this issue as a dupe of issue 58286. *** This issue has been marked as a duplicate of 58286 ***
closed