Losing Absolute Cell Reference

kod2th3e

Board Regular
Joined
Apr 2, 2008
Messages
87
I have the following formula in a cell on one work sheet:

Code:
{=IF(ROWS($B$4:$B$4)>COUNTIF('Lab Submissions Ad 1'!$N:$N,"upper"),"",INDEX('Lab Submissions Ad 1'!$A:$A,SMALL(IF('Lab Submissions Ad 1'!$N:$N="upper",ROW('Lab Submissions Ad 1'!$N:$N)-ROW('Lab Submissions Ad 1'!$N$2)+2),ROWS($B$4:$B$4))))}

When I delete a row of data on the sheet that this formula looks at, the formula errors out because it loses it's reference to $N$2 even though I am utilizing the "$" to make it an absolute reference.

Any idea on a work around or how to solve this issue?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
If you delete row 2 on that sheet, you will always get a REF error from a formula referring directly to a cell in that row. You could simply use 2 rather than ROW('Lab Submissions Ad 1'!$N$2) if you really don't want it to adjust.
 
Upvote 0
RoryA,
Thanks for the advice, this worked like a charm.


If you delete row 2 on that sheet, you will always get a REF error from a formula referring directly to a cell in that row. You could simply use 2 rather than ROW('Lab Submissions Ad 1'!$N$2) if you really don't want it to adjust.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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