can anyone help with this

olive

New Member
Joined
Oct 9, 2002
Messages
24
HI hope this explains itself better than I did in the past.
Book1.xls
ABCDEFGHI
111-October-0228-Jun-02condition:dateinb1lessthan5monthsoftodaysdate=green
21-May-02condition:dateinb1=5to6monthspastoftodaysdate=yellow
322-Mar-02condition:dateinb1morethanor=6monthsoftodaysdate=red
4condition:ifnodatecellstayswhite
5
Sheet1
 

Some videos you may like

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.

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Something like

Condition 1
Formula is =B1<Today()-180 Format Red
Condition 2
Formula is =B1<Today()-150 Format Yellow
Condition 3
Formula is =B1>=Today()-150 Format Green
This message was edited by lenze on 2002-10-11 16:57
 

olive

New Member
Joined
Oct 9, 2002
Messages
24
HI Lenze
Thank you ever so much that is exactly what I was looking for!!!!!
 

olive

New Member
Joined
Oct 9, 2002
Messages
24
HI Lenze
Thank you ever so much that is exactly what I was looking for!!!!!
 

olive

New Member
Joined
Oct 9, 2002
Messages
24

ADVERTISEMENT

SO sorry that was almost exact. Just ran the whole formula any everything is good except that cells with no date appear red also. Need the ones with no date to stay white.
Can you help with this, too?
 

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Change the formula to

=AND(NOT(ISBLANK(B3)),B3<TODAY()-180)
This message was edited by lenze on 2002-10-11 17:56
 

olive

New Member
Joined
Oct 9, 2002
Messages
24

ADVERTISEMENT

well either I am entering it wrong or that does not work. Turned the cell yellow not white. pPlus the format has gaps in it, was putting in different dates and some show as clear/white if within the gaps. How can I fill/get rid of the gaps. Sorry to be such a pain but am new to this kind of format.
 

olive

New Member
Joined
Oct 9, 2002
Messages
24
Thanks but did that except for the last bracket. Added that and still get yellow. Any other ideas?
 

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
Hi Olive:

I don't see Lenze around -- If I have understood you correctly, try my following formulas for the three conditions:

1. =and(A1-B1>180,b1<>"") ...font color 'Red'
2. =and(A1-B1>150,b1<>"") ...font color 'Yellow'
3. =and(A1-B1<150,b1<>"") ...font color 'Green'

there may be some redundancy in my formulas -- but they do seem to work.

Please post back if it works for you ... otherwise explain a little further and let us take it from there.

Regards!

Yogi
 

Watch MrExcel Video

Forum statistics

Threads
1,122,669
Messages
5,597,474
Members
414,145
Latest member
lonnie451

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
Top