Hello,
> Message du 29/08/11 01:18 > De : "minnesotauser" > A : [email protected] > 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: [email protected] 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
