$ and moving the cell not the formula

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
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.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]name[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]date[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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"))
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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