excel formulae

philb99

Active Member
Joined
Feb 3, 2014
Messages
410
Office Version
  1. 2013
Platform
  1. Windows
Hi - having an issue copying excel formulae from tab = Interest which has linked formulae to a tab=Assets to a new sheet.

I have tried Paste Special but doesn't like it

On the Interest tab two of the formulae are

=SUM(Assets!AT5:AT6)
=SUM(Assets!AT11:AT12)+Assets!AT15
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
What is the issue, exactly?
What is happening, and what is your expected result?
 
Upvote 0
what is the error message? the error may be in your data and not in your formula?

sharing the data in the cells and and expected outcome would be helpful.
 
Upvote 0
What is the issue, exactly?
What is happening, and what is your expected result?
I wish to copy the formula - =SUM(Assets!AT5:AT6) into a new sheet

When doing so I get the following reported #REF!

Therefore when i click into the cell the following is displayed
=SUM(Assets!#REF!)
 
Upvote 0
what is the error message? the error may be in your data and not in your formula?

sharing the data in the cells and and expected outcome would be helpful.
error message #REF!

Therefore when I click into the cell the following is displayed
=SUM(Assets!#REF!)
 
Upvote 0
What cell address are you copying the formula from?
And what cell address are you copying the formula to?
Excel automatically tries to adjust the formula to offset the difference in the ranges.

If you want the EXACT same formula, one trick is to not simply copy/paste the cell, but go into the formula, and select and copy everything after the "=".
So you are just really copying the string:
Excel Formula:
SUM(Assets!AT5:AT6)
Then, go to where you want to paste it, type in the "=" and then paste string you have in copy mode.

Since you are copying/pasting a string (and not a formula) in that case, it will not alter it.
But putting the "=" in front of it makes it a formula again.
 
Upvote 0
Solution
error message #REF!

Therefore when I click into the cell the following is displayed
=SUM(Assets!#REF!)
To add onto what @Joe4 wrote. One meaning of the REF# error is to notify you the way that excel tries to find that cell is not possible. So, if you were copying a formula from cell C5 that references cell B3. B3 in reference to cell C5 is two cells up and and on cell to the left. So, if you copy the formula of C5 into a new sheet into cell A1... how can excel find a cell one to the left and two up... The cell doesn't exist!

To show this: Type the word "Green" into a worksheet in cell A5, then in cell D7 type "=A5". Now try to copy cell D7 onto a new worksheet in cell A1.
 
Upvote 0
What cell address are you copying the formula from?
And what cell address are you copying the formula to?
Excel automatically tries to adjust the formula to offset the difference in the ranges.

If you want the EXACT same formula, one trick is to not simply copy/paste the cell, but go into the formula, and select and copy everything after the "=".
So you are just really copying the string:
Excel Formula:
SUM(Assets!AT5:AT6)
Then, go to where you want to paste it, type in the "=" and then paste string you have in copy mode.

Since you are copying/pasting a string (and not a formula) in that case, it will not alter it.
But putting the "=" in front of it makes it a formula again.
perfect thanks - is there anyway to get around this if I had 20 cells to copy over
 
Upvote 0
perfect thanks - is there anyway to get around this if I had 20 cells to copy over
Is there any pattern, rhyme or reason to where these cells are coming from and where they are being copied to?
Are they all grouped together?

Possibly may be able to use VBA, depending on your answers.

But maybe let's take a step back.
Why not just reference the cell that has the formula you want the value from?

For example, let's say that the formula:
Excel Formula:
=SUM(Assets!AT5:AT6)
is found on Sheet1 cell A1.

Then, if you want that same value on Sheet2, why not just reference that cell like this?
Excel Formula:
=Sheet1!A1
You don't need the underlying the formula if you simply reference the cell that contains that formula.
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,616
Members
452,661
Latest member
Nonhle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top