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


Hi.
I have been using VLOOKUP recently and notice that if I insert a column 
in the lookup range that the insertion is not reflected in VLOOKUP 
parameters. Should it in the same way that SUM does.
i.e. just by example I have a range A1:B25 and use 
=VLOOKUP(A30,A1:B25,2,0) to return the price (in B) for an item (in A).
I suddenly realise I need to include a column for the currency of B so I 
insert a colum before B  and I need to manually alter all my formulae to 
=VLOOKUP(A30,A1:C25,3,0). I can insert extra rows and the range extends 
in the formula, just not extra columns.
LO 3.6

Steve

Solved this with =VLOOKUP(A21,$A$1:$B$25,COLUMN($B$1),0) or more flexibly
=VLOOKUP(A21,$A$1:$B$25,COLUMN($B$1)-COLUMN($A$1)+1,0)






--
View this message in context: 
http://nabble.documentfoundation.org/VLOOKUP-adapting-to-changes-tp4057231p4057246.html
Sent from the Users mailing list archive at Nabble.com.

-- 
To unsubscribe e-mail to: users+unsubscribe@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.