how do i copy and paste a formula from one sheet to another

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi everyone,
I think i'm having a friday,

All i'm trying to do is copy a range of cell and get the formulas not the values
but for some reason i get REf#

VBA Code:
Group.Range("O154:O161").SpecialCells(xlCellTypeVisible).Copy 'Rate
Sheets("32 Invasive Species").Range("AJ143").PasteSpecial xlPasteformulas


so for example O154 might be a simple formula like =M11 but i get error?
not sure this has happened before?

please help if you can i must be doing something so obviouse
thanks
Tony
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi everyone,
dont worry, i've worked it out,
basicly, im an idiot lol!
 
Upvote 0
so for example O154 might be a simple formula like =M11 but i get error?
That is to be expected. Do the math, and you can see this.

If in cell O154 you have the formula =M11, the that formula is pulling the value from two columns to the left and 143 row above that cell (154-11=143).
However, if you are copy/pasting that formula to cell AJ143, you cannot go up 143 rows from there, as that would be row 0!
 
Upvote 0

Forum statistics

Threads
1,215,032
Messages
6,122,772
Members
449,095
Latest member
m_smith_solihull

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