CF Formula : Allowed 0 (Not highlighted red)

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,102
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all.

how to make formula in CF
- if cell contains 0 --- not highlighted red..
- if cell contains not 0 - highlighted with red

thanks in advance..

.susanto
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Is it EXACTLY equal to 0, or just that 0 is contained anywhere in the entry?
Are your entries text or numeric?
Can you provide a few entry examples?
 
Last edited:
Upvote 0
My workplace blocks those sites and all file download sites.
Can you just answer the three questions I asked?
 
Upvote 0
if data entry exactly 0, NOT highlighted red...otherwise if blank, any text or any number entries are highlighted red
 
Last edited:
Upvote 0
Try this formula:
Code:
=OR(A1<>0,LEN(A1)=0)
and choose your red formatting option.
 
Last edited:
Upvote 0
High light range and in Formual box from CF i.e.

A1<>0

Select the fill you want

Anthing ther than 0 will reult in fill red. It will NOTfill blank cells
 
Upvote 0
hi Joe....not fully working if data blank should be red formatting...
Go back and look at my previous reply.
I had originally used an AND statement, but that was not picking up the blanks.
I changed it to an OR statement, but you must have seen my reply before the update.
 
Upvote 0
hi Joe,,,great working well!!!
Code:
=OR(A1<>0,LEN(A1)=0)

thank you so much...
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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