Multiple conditions

jeremywessels70

New Member
Joined
Jun 6, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi guys, I need help applying conditional formatting to a large range of cells.
Condition 1: If the number is an even number and lower than 25, fill cell yellow
Condition 2: If the number is an odd number and lower than 25, fill cell blue
Condition 3: If the number is an even number and higher than 25, fill cell grey
Condition 2: If the number is an odd number and higher than 25, fill cell green

Is it possible to apply all these conditions in one formula in conditional formatting, or what would be the easiest way of going about this?

Thanks!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi & welcome to MrExcel.
You will need to create a rule for each colour.
 
Upvote 0
What should happen if the cell is 25?
Also could you have blank cells & if so should they be ignored?
 
Upvote 0
Ok, how about

+Fluff New.xlsm
ABCDEFGHIJK
1
24037371935243637616
3344216723631502824
4393402311159385037
5114825125113504314
6301582144322152831
7241449292224624233
847382622343735232630
938453936142612271029
104146132836151437135
111481629122447374019
12
Lookup
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:J11Expression=AND(A2>25,ISODD(A2))textNO
A2:J11Expression=AND(A2>25,ISEVEN(A2))textNO
A2:J11Expression=AND(A2<=25,ISODD(A2))textNO
A2:J11Expression=AND(A2<=25,ISEVEN(A2))textNO
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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