Conditional arguement formula with two conditions

stevembe

Well-known Member
Joined
Mar 14, 2011
Messages
501
Firstly thanks for taking the time to read. I need assistance with a conditional formatting issue in that in Column AD I have a two decimal point number which I need to turn shaded yellow if the number is greater than 8 but less than 12 and if column AI has the text Non Member. Also to turn shaded red if the number is 12 or greater and if column AI has the text Non Member.

Many thanks for any assistance.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
For first request try:
Code:
=AND(A1="Non Member",MEDIAN(AD1,8,12)=AD1)
and format cells to be Yellow when this is true

For second request try:
Code:
=AND(A1="Non Member",AD1>=12)
and format cells to be Red when this is true
 
Upvote 0
For first request try:
Code:
=AND(A1="Non Member",MEDIAN(AD1,8,12)=AD1)
and format cells to be Yellow when this is true

For second request try:
Code:
=AND(A1="Non Member",AD1>=12)
and format cells to be Red when this is true

Many thanks for the response but I tried both and whilst no error is returned the cells do not change fill colour and remain the same. Just to clarify the text Non Member is in Column AI2 and the number is in AD2 so I used:

Code:
[=AND(AI2="Non Member",MEDIAN(AD2,8,12)=AD2)
/CODE]
 
Upvote 0
I tried to mock up your sheet and it works for me. Have you checked the range it applies to matches the range your data is in?
 
Upvote 0
I tried to mock up your sheet and it works for me. Have you checked the range it applies to matches the range your data is in?

It's strange it picks up some but not others e.g. 28.05, 20.40 and 19.80 are some of the values that remain un-formatted.

Thanks for your time by the way.
 
Upvote 0
You're welcome. It may be different cells have different formatting or number types which is making it behave unexpectedly. Try checking the number format and data type is consistent.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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