formula in conditional formatting

freeriding

New Member
Joined
Sep 21, 2015
Messages
22
Hallo! I set conditional formatting in the cells in red.

Untitled.jpg


The problem is that, when the formula in the conditional formatting is not true (i set the number 5 in cell A94, so it is not blank), then only the first row of the 3 gets white (while all 3 of the rows whould be white, since the conditional formatting applies to A94:C96)

Untitled2.jpg


This is solved if in the formula is set $A$94 instead of $A94, but this is not convenient for me in other functions.

Is there another solution?


PS. to make it more clear:

I want that when A1 is blank, then A1:C3 is colored.

When A1 has a number, then A1:C3 is non color filled.

1622112801543.png
 

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
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Please provide links to the other site(s) where you have asked this question.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
 
Upvote 0
you have to fix the cell with $
conditional formatting (CF) will
lets say you select the range A1 to C3
then CF will look at cell A1 and test
then it moves over to cell B1 against B1 then C1 and tests against C1 then down the rows
then it moves over to cell A2 against A2 then B2 and tests against B2etc

now by fixing the row A$1
It will check A1 with A1 , B1 with B1 , C1 with C1
then A2 with A1 , B2 with B1 , C2 with C1 - Because the $ fixes the row to always check row 1

Now by fixing the Column with $A$1
It will check A1 with A1 , B1 with A1 , C1 with A1
then A2 with A1 , B2 with A1 , C2 with A1 - Because the $ fixes the row & Column to always check row 1

BUT if in Conditional formatting you do not out the absolute reference ie $ then it will change

I think you may need VBA to fix the position of the lookup cell

WHY
but this is not convenient for me in other functions.
The $ are only set within the conditional format formula NOT needed in other functions

can you expand what the issue is
 
Upvote 0
Just read your cross post, and already been asked , so i will leave it with the other thread as that has progressed a lot further and awaiting updates
 
Upvote 0

Forum statistics

Threads
1,214,388
Messages
6,119,227
Members
448,878
Latest member
Da9l87

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