On Mon, Dec 26, 2011 at 10:46 AM, Alan Boba <aboba0@gmail.com> wrote:
2011/12/26 Csányi Pál <csanyipal@gmail.com>
Hi,
I'm working on a spreadsheet and I want to copy/paste a function.
When I copy/paste the function Calc increase some address in the
functions that I have in the cell and those addresses aren't proper for my
purpose.
Eg. I want to copy/paste the value of a cell:
=HA(DARABÜRES('1.'.AD6);"0";**HA('1.'.AD6="1";"-";HA("1"<'1.**
'.AD6<"6";"+";"hamis")))
but when I paste it, I get:
=HA(DARABÜRES('1.'.AD7);"0";**HA('1.'.AD7="1";"-";HA("1"<'1.**
'.AD7<"6";"+";"hamis")))
and that isn't good for me, because I want to get
=HA(DARABÜRES('1.'.AD6);"0";**HA('1.'.AD6="1";"-";HA("1"<'1.**
'.AD6<"6";"+";"hamis")))
in the new cell;
actually I would like to get:
=HA(DARABÜRES('2.'.AD6);"0";**HA('2.'.AD6="1";"-";HA("1"<'2.**
'.AD6<"6";"+";"hamis")))
but I think that that this can't be achieve with Calc, right?
How can I copy/paste the function so so the addresses in the function
remain the same as in the original cell?
Best Regards, Pál
--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.**
org <users%2Bhelp@global.libreoffice.org>
Problems? http://www.libreoffice.org/**get-help/mailing-lists/how-to-**
unsubscribe/<http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/>
Posting guidelines + more: http://wiki.**documentfoundation.org/**
Netiquette <http://wiki.documentfoundation.org/Netiquette>
List archive:
http://listarchives.**libreoffice.org/global/users/<http://listarchives.libreoffice.org/global/users/>
All messages sent to this list will be publicly archived and cannot be
deleted
Two ways I know of...
1) use a "$" as the part of the address you don't want to change when
copy/pasting. So
=HA(DARABÜRES('1.'.AD6);"0";HA('1.'.AD6="1";"-";HA("1"<'1.'.AD6<"6";"+";"hamis")))
becomes
=HA(DARABÜRES('1.'.$AD$6);"0";HA('1.'.$AD$6="1";"-";HA("1"<'1.'.$AD$6<"6";"+";"hamis")))
I believe there is a function key that can be used to cycle through
absolute cell addresses when creating a formula, e.g. cycles through AD6,
$AD6, AD$6, $AD$6 as addresses when editing the formula. That avoids the
need to type in the "$"
2) name the cells you wish to stay the same as you copy the function from
cell to cell and use the cell names in the formula.
...one other thing using the "$" works for the row reference or the column
reference so two "$" are needed, one next to the column value one next to
the row value, to keep both from changing. If you want the column reference
to remain constant but allow the row to change only use "$" in front of the
column letter. If you want the row to remain constant but allow the column
to change only use the "$" in front of the row reference.
constant column when formula is copied $B6. A formula containing this
reference will always us "B" as the column but the row will change if the
formula is copied to a different row.
constant row when formula is copied B$6. A formula containing this
reference will always us "6" as the row but the column will change if the
formula is copied to a different column.
--
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.