$ and moving the cell not the formula

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,672
Office Version
  1. 365
Platform
  1. Windows
Hi
I fixed $J$1 in the formula and accidentally moved J1 (dragged and drop it somewhere else), the formula below will update $J$1 to the new location for example $L$20. I thought $ will fix the address? I know I am not moving the formula but still? Thank you so much.

IJ
name
date

<tbody>
</tbody>

J10 =COUNTIF(C2:C30,$J$1)
 

Some videos you may like

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
23,959
If you drag and drop or Cut/Paste a range all formulas referencing that cell will adjust to the new location of the cell.

The $ determines how the formula will act when copied to other cells (or fill downed or ....).
But when a cell is moved, all formulas referring to that cell are adjusted to track the cell's new location.

"Don't move J1" is the best advice, but if you absolutly have to and still want the formula to refer to the new J1, use INDIRECT

=COUNTIF(C2:C30, INDIRECT("J1"))
 

Watch MrExcel Video

Forum statistics

Threads
1,127,488
Messages
5,625,069
Members
416,067
Latest member
newb08

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