Copying Formulas into another cell

Icehoose

New Member
Joined
Nov 28, 2005
Messages
12
Hi all,
I am trying to copy a formula from one cell into about another 1600 cells. But when I paste it, it puts in the incorrect cell number for example:

=IF(COUNTIF(G3:G1609,C3)>=1,"KEEP","DELETE") this is the formula I want to copy it and paste it into the next row down. But I get I get this:

=IF(COUNTIF(G4:G1610,C4)>=1,"KEEP","DELETE") How can I keep it the same formula like this

=IF(COUNTIF(G3:G1609,C4)>=1,"KEEP","DELETE") and so on. I got 1609 rows and don't really want to go and edit every cell.

Many Thanks.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Jon von der Heyden

MrExcel MVP, Moderator
Joined
Apr 6, 2004
Messages
10,808
Office Version
  1. 365
Platform
  1. Windows
Hi,

You need to anchor the range:

=IF(COUNTIF($G$3:$G$1609,C3)>=1,"KEEP","DELETE")

Use the excel help menu and look up "Switch between relative, absolute, and mixed references".

regards,
Jon :)
 

Forum statistics

Threads
1,136,269
Messages
5,674,743
Members
419,525
Latest member
helensesc

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
Top