Stop conditional formatting in one cell when adjacent cell contains data

win1forgipp

New Member
Joined
Apr 27, 2015
Messages
7
This sheet monitors individual's physical fitness scores. If members score <90 they must retest every 6 months with a diagnostic performed two months prior (4 months mark). If they score 90 or higher they will retest yearly with a diagnostic performed at 10 months.

I have several rows of dates, corresponding to when an individual took the test. In the second column is the score the individual received. The third column contains this formula:

=IF(B4>89.9,(A4+300),(A4+120))

This formula is adding 300 days to the next time the individual tests vice 120 if they scored under a 90%. (I'm sure there is a better way than 300 because thats not accurate)

A4 represents the date they took the test.

The third column is conditionally formatted with three rules. IF date is THIS month, it turns green, LAST month it turns red and NEXT month it turns yellow.

My question resides with my 4th column...In this column will be the date they performed the diagnostic to judge progress before actual test.

When I place a date in that field, I'd like the column that is conditionally formatting based on dates to stop formatting color and remain white basically showing on a spreadsheet that they were once overdue (red) but have since taken the diagnostic which puts them back in the white.

Here is the file on my Drive account.
https://drive.google.com/file/d/0By3TusOiWiVUb0V6cE5kbVF1T0k/view?usp=sharing

Thanks for helping me out. :)

cheers,
Gipp
 
[TABLE="width: 1063"]
<colgroup><col><col><col><col><col><col><col><col span="5"><col><col span="2"></colgroup><tbody>[TR]
[TD]name[/TD]
[TD]last test[/TD]
[TD]score[/TD]
[TD]retest in 6m[/TD]
[TD]retest in 12m[/TD]
[TD]retest due[/TD]
[TD]retest taken ?[/TD]
[TD]status[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]let today's date be[/TD]
[TD="align: right"]05/10/2015[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]fred[/TD]
[TD="align: right"]01/04/2015[/TD]
[TD="align: right"]92[/TD]
[TD]no[/TD]
[TD]yes[/TD]
[TD="align: right"]31/03/2016[/TD]
[TD]no[/TD]
[TD]green[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]bill[/TD]
[TD="align: right"]02/04/2015[/TD]
[TD="align: right"]88[/TD]
[TD]yes[/TD]
[TD]no[/TD]
[TD="align: right"]01/10/2015[/TD]
[TD]yes[/TD]
[TD]no colour[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]sam[/TD]
[TD="align: right"]01/11/2014[/TD]
[TD="align: right"]93[/TD]
[TD]no[/TD]
[TD]yes[/TD]
[TD="align: right"]01/11/2015[/TD]
[TD]no[/TD]
[TD]orange[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]joe[/TD]
[TD="align: right"]01/08/2014[/TD]
[TD="align: right"]94[/TD]
[TD]no[/TD]
[TD]yes[/TD]
[TD="align: right"]01/08/2015[/TD]
[TD]no[/TD]
[TD]red[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]the retest due column is coloured[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]CORRECTLY[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]to my made up rules[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 6"]I used the max 3 cond format conditions for my version of excel (2000)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]giving green[/TD]
[TD="colspan: 3"]=AND(G2="no",F2-$M$1>90)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]giving orange[/TD]
[TD="colspan: 3"]=AND(G2="no",F2-$M$1>0,F2-$M$1<90)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]giving red[/TD]
[TD="colspan: 2"]=AND(G2="no",F2<$M$1)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]Bill stays uncoloured because G3 is not equal to "no"[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
.. perhaps if I showed you on a Google Sheet where we could all edit and comment that would make more sense? Just trying to think of a way to collaborate.
Many of the experienced helpers here choose not to download files from other sites or, due to security restrictions at work sites, are unable to download such files.

You will get many more potential helpers if you explain your problem clearly in words and, if needed, post a small (copyable) screen shot or two directly in your post - as I did in post #4. My signature block below has help regarding that.

Also, #4 of the Forum Rules is partly aimed at trying to prevent situations where the problem is basically resolved other than directly in the forum.


When I apply the condition, random cells in the column are reacting to other cells changing dates.
This sounds like you are most likely using a formula that points to the wrong row. It seems that you have altered columns & rows since your earlier post. Your earlier sample had the CF working in column C based on that value and the value in column D. The actual data started on row 4. Now your actual data starts on row 2 and you appear to be trying to CF column I based on its value and the value in some other column, I'm not sure which other column, as the headings have also changed.

I suggest that you set up a test sheet with sample data as I have in post #4 & see if you can get that to work. Once you understand how that works you should be able to apply it to your actual sheet.

Referring to post #4 sample, the important thing when applying the rule to column C is to select from C4 down to C14 with C4 being the Active Cell
When entering the CF formula, say this one:

=AND(D4="",EOMONTH(TODAY(),1)=EOMONTH(C4,0))

1. Note that all the row numbers are 4 - the row of the Active Cell

2. The C in my formula is the column that you have selected & are trying to Conditionally Format.

3. The D in my formula is the other column that you want to check to see that it is empty.
 
Upvote 0
Thanks, Peter. I actually created a brand new sheet just to mimic what you pasted and it did not work. I was doing this in the newest version of Excel for Mac. Also, regarding the linking...I'll avoid doing that in the future. With the way online collaboration has evolved, it almost seems like if you're not doing it, you're falling behind. I work on a .mil domain so I understand the restrictions. In fact, this forum is not accessible while at work. I will continue to try all of the posted responses. I'm sure I'm just missing one thing somewhere. Thanks again to everybody for all of the help and explaining your posts in a non condescending manner. I'm no MrExcel MVP, but I've been working with Excel for several years and can appreciate the 'skip the basics and go straight to the meat and potatoes" approach.

cheers,
Gipp
 
Upvote 0
.. Excel for Mac.
I don't think you mentioned that earlier. Although this forum caters for Mac users, the vast majority of members are not Mac users, so it is wise to always state that clearly in your first post of a thread. As I am not a Mac user I shall withdraw. Perhaps a Mac user will now see this and be able to contribute.
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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