CF Formula : Allowed 0 (Not highlighted red)

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,089
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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,223,893
Messages
6,175,244
Members
452,622
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