Cell Conditional Formatting

agonysWeeper

Board Regular
Joined
Feb 4, 2011
Messages
146
Hi Forum,

I have cell A1 and B1
A1 contain the qty
B1 contain the formula and I am looking for conditional formating or any other way because B1 has a shade (fill color) "black color, B1 has a formula of =IF(K28,IF(K28=1,"pc","pcs"),"") then I want a conditional formatting if A1 has a number the fill color black will turn to white.

looking forward for soonest reply
thanks.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

CWatts

Well-known Member
Joined
Jan 22, 2010
Messages
701
I'm having difficulty following, but you can attempt this:

=A1>0

Which basically tests if A1 is greater than 0. If that is true, then it will apply the format, which you can use the white background with.

I hope that's what you're looking for.
 

agonysWeeper

Board Regular
Joined
Feb 4, 2011
Messages
146
Sorry just to clarify
70074567.png


I try to put a conditional format in column B but showing like this, not working.
 

agonysWeeper

Board Regular
Joined
Feb 4, 2011
Messages
146
What I need is when A1 has 1 or more than 1 B1 should show pc or pcs while cell background clean color white, then when A1 has no data or number Cell B1 should look like B3.
70074567.png
 

CWatts

Well-known Member
Joined
Jan 22, 2010
Messages
701
Try these steps.

Select cell B1
Home Tab
Conditional Formatting
Manage Rules
New Rule
Use a Formula
=OR(A1="",A1=0)
Choose the formatting you want and click OK and click OK again so you're back at your list of rules.
When you have you list of rules, where it says "Applies to...", change the range to however far your data in column B goes, or just =B:B for the whole column.

Click Ok
 

Watch MrExcel Video

Forum statistics

Threads
1,130,119
Messages
5,640,218
Members
417,131
Latest member
Seanr19871

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
Top