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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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.
 
Upvote 0
Sorry just to clarify
70074567.png


I try to put a conditional format in column B but showing like this, not working.
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,513
Members
448,967
Latest member
screechyboy79

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