Sep 26 2023 03:18 AM
Hello,
I'd like to copy a formula in a cell to another cell without refreshing references, I mean, exactly the same formula en other location. I know that i can move the formula with "CtrlX" but I want to do it without cutting the previous formula (I want a copy process). Is it possible?
Thanks in advance.
Sep 26 2023 03:42 AM
Let's say you have a formula such as
=SUM(A1:A4)
If you copy the cell with the formula and paste it elsewhere, the range in the formula will change. You can prevent this by making the range reference absolute:
=SUM($A$1:$A$4)
The range will then remain the same when you copy/paste the cell with the formula.
Another option:
Sep 26 2023 04:02 AM
Sep 26 2023 04:05 AM
I'm not aware of another built-in way to do what you want.
A VBA macro would be another possibility, but that is probably overkill.
Sep 26 2023 04:06 AM - edited Sep 26 2023 04:13 AM
@JJVega - If you don't want to change the reference to absolute then this should help.
Let's say you have this formula in cell B1 = SUM(A1:A5). We first need to replace = with #. We can use CTRL+H to do this. Now formula is gone in cell B1 and only the text #SUM(A1:A5) is left.
Copy the text #SUM(A1:A5) , paste it in the cell you want and do the reverse replace( # to=)
Hope this helps!
Sep 26 2023 04:44 AM