[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
carl
Super User

Joined: 21 Apr 2003
Posts: 920
Location: Germany

 Posted: Tue Jan 27, 2004 1:58 am    Post subject: VLOOKUP guesses unknown names I ve set up a VLOOKUP which finds data on a separate sheet. It works fine but it guesses unknown names, seemingly at random. Any ideas welcomed._________________carl Using OpenOffice.org 2 on XP sp2
dfrench
Moderator

Joined: 03 Mar 2003
Posts: 1605
Location: Wellington, New Zealand

Posted: Tue Jan 27, 2004 11:27 am    Post subject:

Have a look at the HELP for this function ... the "sort" parameter is likely to be the source of your problem

 Quote: Sort order is an optional parameter that indicates whether the first column in the array is sorted in ascending order. Enter the Boolean value FALSE if the first column is not sorted in ascending order. Sorted columns can be searched much faster and the function always returns a value, even if the search value was not matched exactly, if it is between the lowest and highest value of the sorted list. In unsorted lists, the search value must be matched exactly. Otherwise the function will return this message: Error: Value Not Available.
carl
Super User

Joined: 21 Apr 2003
Posts: 920
Location: Germany

 Posted: Tue Jan 27, 2004 11:32 pm    Post subject: that seems like the answer. My formula =VLOOKUP(C912;.\$C\$16:\$D\$906; 2) works ok. the last digit 2 determines whether the info comes from col 2 ie D or col 1 ie C any other digit gives me an err: 502 : FALSE gives me #NAME? what should I do next?_________________carl Using OpenOffice.org 2 on XP sp2
dfrench
Moderator

Joined: 03 Mar 2003
Posts: 1605
Location: Wellington, New Zealand

 Posted: Wed Jan 28, 2004 2:29 am    Post subject: the sort parameter is the 4th so =VLOOKUP(C912;C\$16:\$D\$906; 2;1) or =VLOOKUP(C912;C\$16:\$D\$906; 2;0) is the complete formula (true and false are translated on input for some reason)
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum