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


Hi,

Message du 14/12/11 14:29
De : "Ian "Witty" Whitfield" 
A : users@global.libreoffice.org
Copie à : 
Objet : [libreoffice-users] Syntax Question

Hi All

Can someone help me with some syntax please??

I have a two-sheet Calc Spreadsheet. All my data lives on the first 
sheet called "Data" and my Analysis Reports are on Sheet Two.

I have the same values in any given Column in my Data Sheet, (ie all my 
Totals are in Column D), and - as per my last posting here - I can now 
ID which Row I need to use each month.

So on my Analysis Sheet I want to fetch all the needed data but it must 
be dynamic.

If my Column Identifier is at Data.H5 and my Row Identifier is at 
Data.M9 I can place the cell reference on my Second Sheet with
'=Data. H5&((M9)' [Lets say I put this into Cell M10]

I have tried - '=INDIRECT(Data.M10)' and 'INDIRECT(Data.&(M10))' and 
'=INDIRECT(Data.+(M10)) etc etc but nothing works. Can anyone give me 
the correct syntax for this please? It seems as soon as I cross sheets 
the syntax changes because a straight typed-in '=Data.M10' works fine!!

What I need is - '=THE VALUE IN CELL(Data.H5)&(Data.M9).

Thanks a lot. (I'm using LO 3.4)

Ian Whitfield.


=INDIRECT("Data."&Data.H5&Data.M9)
with Letters column identifier in Data.H5 and number row identifier in Data.M9

If column identifier is a number, you can use INDIRECT & ADDRESS
=INDIRECT(ADDRESS(Data.M9;Data.H5;4;;"Data"))

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.