Formula to show if days are under 365

LindsayBiss

New Member
Joined
Aug 16, 2022
Messages
5
Office Version
  1. 2010
Hello,

I was looking to see if someone would know a formula to put in column N that will tell me if the numbers in column M are less then 360?

Is there a formula that could fill the cell in column N green if the number of days is less than 360, and red if it is over?

Thank you for you help !! :)

1700257783006.png
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Highlight column N. Then go to Conditional Formatting and add a new rule that uses a formula:
Excel Formula:
=AND(M<>"",M<360)
fill green

add another rule:
Excel Formula:
=AND(M>=360)
fill red

You just said over or under, but did not mention equals. Adjust formulas to suit.
 
Upvote 0
@6StringJazzer
I think those formulas would need some row numbers. :)
The second one would not need the AND either.

@LindsayBiss
I'm assuming the numbers in column M start at row 2. Select N2 down to wherever you want the colours to finish and then apply these Conditional Formatting formula rules.
Again you may need to adjust one of the rules to cover the 360 value itself.

23 11 18.xlsm
MN
1
278
352
4398
5200
6412
7
8399
9355
10
Red Green
Cells with Conditional Formatting
CellConditionCell FormatStop If True
N2:N10Expression=M2>360textNO
N2:N10Expression=AND(M2<>"",M2<360)textNO
 
Upvote 1
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,387
Messages
6,124,637
Members
449,177
Latest member
Sousanna Aristiadou

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