# can anyone help with this

#### olive

##### New Member
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

### Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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

HI Lenze
Thank you ever so much that is exactly what I was looking for!!!!!

HI Lenze
Thank you ever so much that is exactly what I was looking for!!!!!

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?

Change the formula to

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

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.

See edit above. I forgot to disable hmlt

Thanks but did that except for the last bracket. Added that and still get yellow. Any other ideas?

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

Replies
6
Views
286
Replies
6
Views
104
Replies
4
Views
266
Replies
3
Views
136
Replies
1
Views
119

Threads
1,216,095
Messages
6,128,795
Members
449,468
Latest member
AGreen17

### 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

### 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