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: [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

Reply via email to