Conditional formatting checking different cells wich equal FALSE

dragondrago

New Member
Joined
Apr 20, 2016
Messages
5
Hi,

I have column B with this formula: =IF(C3=A3; 1; "0"). Cells format is Custom "Yes"; "Yes"; "No". When C3=A3, I have value "Yes" and after conditional formatting cell becomes green. If i have FALSE, cell contains #N/A and warning "A value is not availableto the formula or function" (not sure if it is important).
I have column G which contains different numbers >=0.

I want to highlight cells in column G which are greater then 0 and if cell in same row in column B is 0/FALSE/#N/A

I tryed these formulas in conditional formatting:

=AND(G2>0; B2="0"/B2=""/B2="No"/B2="N/A"/B2="#N/A"/B2="FALSE" (all variants))
=IF(G2>0; IF (B2<>1 (different varinats too); 1; 0); 0)

In one of variants (not sure already in which one) I managed to highlight G2>0 and B2 containing text/=1 but I don want this.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
sorry I feel I am miss reading this but do you mean =IF(C3=A3, 1, 0)

When the two cells match I have yes and when they dont I have no

What is the data in your columns is it numbers or words.
 
Upvote 0
I then have conditional fomatting using

Format cells that contain
Choose specific text containing 0 fill red
and 1 fill green as they are what is acutally in the cell.

Hope that helps
 
Upvote 0
Sorry missread post thought you wanted coinditional formatting in B

In G use
=AND($B$3=0,$G$3>0)

As the formula above should only produce 1 or 0 (yes or No) in B not false or #

hope that helps
 
Last edited:
Upvote 0
Sorry missread post thought you wanted coinditional formatting in B

In G use
=AND($B$3=0,$G$3>0)

As the formula above should only produce 1 or 0 (yes or No) in B not false or #

hope that helps

I want formatting in column G. Column A and C contains text (A is text and C is formula which output same text in A in certain conditions). I think that formula for formatting in column G must not include $ in front of row and column because it must compare values for every row (G2>0 and B2=0, G3>0 and B3=0 etc.). I try formula above but it still didnt work. Your logic seems good but in 1st post I write that I already try it (I see that I dont post variant without quotes but I try it too).
 
Upvote 0
Ok the issue I think will be in the text in cell C do you have the forumla in cell c

Also in your initial post you put =IF(C3=A3; 1; "0") ie with ; not ,
 
Last edited:
Upvote 0
I have formula in C but later I need values in G and B, so main reason is how to check what is value in column B. How Excel treat this "0".
 
Upvote 0
Even if you format the cell as Yes no the cell is still 0 or 1 with the formula. the exmples I have given you work I have created it., the only issue I cant replicate is the conditional formatting of G because I do not know what is in C

I have just text in C so it is easy but without knowing what is in C I cannot help
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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