if with some condition

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
Hi all,

we have the following sheet, and want to change the color if the condition meet according to E

MAX LEVELQuantityExtra
15001600Normal
50035060 - 40% balance
20071BELOW 30%
10025


help pls
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,

You may follow the below steps:
  • from the home ribbon, click on Conditional Formatting >> New Rule
  • Choose "Format only cells that contain"
  • put the desired value brackets (between), (less than) or (greater than)
  • Press Format to select the desired color and font
  • repeat the process for other value brackets
Best Regards
M. Yusuf
 
Upvote 0
Hi Vishaal,

I'm confused by a few things:
  1. Your "Extra" heading looks like it belongs on the row below so I've moved all conditional formats down one row
  2. 71 is 35.5% of 200 so that row doesn't seem to meet the criteria. I've added another row of data to trigger the 40%-60% rule
  3. Because there are gaps (30% to 40%?) I don't know if that should be "Normal" or blank. I've left those blank.

Does this do what you want?

Book1
BCDEF
1MAX LEVELQty
215001600
3500350
420071
510025
65525
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:E6Expression=C2/B2<=0.3textNO
E2:E6Expression=AND(C2/B2<=0.6,C2/B2>=0.4)textNO
E2:E6Expression=AND(C2<=B2,C2/B2>0.6)textNO
E2:E6Expression=C2>B2textNO
 
Upvote 0
Thanks Toadstool,

very good formula, its working in my case, thanks for your help
 
Upvote 0
Hi Toadstool,

Pls guide me how can we copy this in other column, because when we do that its not changing the cell ref

I have also started a new post for this query

Thanks
 
Upvote 0

Forum statistics

Threads
1,215,584
Messages
6,125,669
Members
449,248
Latest member
wayneho98

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