Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index

Le 14/02/2014 23:06, Carl Paulsen a écrit :

A few hints for vlookups:  I find I usually want to add "hard"
references for the array so that it always looks at the intended rows of
the array.  To do that, you need to add $ before each cell reference in
the array.  So if the array of the function is A1:C100, I enter it as
$A$1:$C$100.  This forces vlookup to always look at those cells
regardless of what row the calculation is happening on.

Another way of achieving that is to name the array. This has my
preference because a named array makes formulae easier to understand.

Finally, be mindful of the implications of the sort order variable in
the function.  If it is 1 or TRUE, the array must be sorted ascending,
and the function returns the nearest value "below" or "before" the
looked up value.  If you want to force it to return only exact matches
and/or don't want to or can't sort the array, be sure to set sort order
to 0 or FALSE.

+1 to all of these. The 0 (FALSE) parameter is the one I always use by
default for the reason you stated (getting an error when no match is found).

Jean-Francois Nifenecker, Bordeaux

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.