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


Hello,



Message du 29/08/11 01:18
De : "minnesotauser" 
A : users@global.libreoffice.org
Copie à : 
Objet : [libreoffice-users] Problems using VLOOKUP in Libreoffice Calc

I have two columns set up like so:

a | 1
b | 2
c | 3

I want to be able to use a number from column B and have the text from
column A displayed.
But when I put {=vlookup(B4,A1:B3,1,0)} in cell A4, and {=max(B1:B3)} in B4
(minus the brackets for both), I get back, correctly, 3 for the max, but
#N/A for the VLOOKUP.
Putting in the letters a, b, or c in B4 correctly returns the number it's
next to, so it seems like only the first column in the array is searched.

Is it possible to flip the way the columns are searched?
Thanks for any help.


VLOOKUP search in the 1st column of the array, so you can't get a result in a left column.
Use INDEX and MATCH for this :
=INDEX(A1:A3,MATCH(B4,B1:B3,0))

Gérard
-- 
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


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.