#ref!

jarhead58

Active Member
Joined
Sep 21, 2017
Messages
367
Office Version
  1. 2021
Platform
  1. Windows
After deleting a record, my coditional formating goes from this "=MATCH(M12,($B$2:$F$2),0) to this "=MATCH(M12,(#REF!),0)" even though the records have shifted up into the pertinent cells!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Did you delete row 2?

Note that you formula has a hard-coded absolute reference to row 2, so deleting that row will cause that to happen, as that row no longer exists, and there were no other rows in that range to start with.
 
Upvote 0
Is there anyway to use OFFSET or something?

Did you delete row 2?

Note that you formula has a hard-coded absolute reference to row 2, so deleting that row will cause that to happen, as that row no longer exists, and there were no other rows in that range to start with.
 
Upvote 0
Please explain the structure of your data, how it is all laid out, the relationship between your ranges, what you may be deleting and why.
Also, exactly which range is the Conditional Formatting being applied to?
 
Last edited:
Upvote 0
Unfortunately, that does not really answer the questions I asked.
You are going to need to explain it, if you want me to help you.
 
Upvote 0
The numbers,B2:H2 are entered via the form! B2:G2 are compared to M12:Q16! If they match, the conditional format fills the matching fields blue. Also, If M12:Q12, M13:Q13....down to M16:Q16 cells in relative rows are blue and >=3 than Q40, 42, 44, 46 and/or 48 flag to True and Change the Yellow fields from "Nope to Winner" The same with Q50. Everything else is basically a manual function. Sheet 1 is the only pertinent sheet.
 
Upvote 0
That appears to have worked for the B2:F2 conditional. I tried this =MATCH(R12,INDEX($G,2,0),0) for the R12:R16 conditional but still getting #REF ! What am I missing? TIA

Try this:

=MATCH(M12,INDEX($B:$F,2,0),0)
 
Upvote 0
You still need to repeat the column letter for one column:

=MATCH(R12,INDEX($G:$G,2,0),0)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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