Conditional formatting a complex condition - Need help creating the formula

Nebulous

New Member
Joined
Oct 7, 2015
Messages
37
Hello. Please reference the following table for my comments:

-- removed inline image ---



  • Request Date (O) will always contain a date
  • Original Promise Date (M) may be blank or it may contain a date
  • After Original Promise Date is populated, at some point Current Promise Date (N) will be given a date

I need to determine whether a Request Date is earlier than our Promise Date according to the following:

  • If $N3 contains data, shade $O1 red if it is less than $N3
  • If $N3 is blank and $M3 contains data, shade $O3 red if it is less than $M3
  • If $M3 is blank, do nothing

I need this same logic applied to all rows that have data in Column O, not just Row 3.

Can you please help me build this Conditional Formatting Rule? Thanks in advance!

~N
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I guess I'm not allowed to post a screenshot of my spreadsheet here. I'm attempting to recreate the gist of it as a table below for reference:

M
NO
1
2Original Promise DateCurrent Promise Date
Request Date
3
10/16/16

<tbody>
</tbody>
11/3/16

<tbody>
</tbody>
10/2/16

<tbody>
</tbody>
4
7/3/16

<tbody>
</tbody>
10/3/16

<tbody>
</tbody>
10/3/16

<tbody>
</tbody>
5
10/2/16

<tbody>
</tbody>
6
8/3/16

<tbody>
</tbody>
7/3/16

<tbody>
</tbody>
8/3/16

<tbody>
</tbody>
7
8
10/2/16

<tbody>
</tbody>
9
9/3/16

<tbody>
</tbody>
10/3/16

<tbody>
</tbody>
9/2/16

<tbody>
</tbody>
10
1/3/17

<tbody>
</tbody>
12/3/16

<tbody>
</tbody>
11/25/16

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Hi,

Is this what you mean?
I also assume do nothing if O column cell is blank.


Excel 2010
MNO
1Original Promise DateCurrent Promise DateRequest Date
2
310/16/201611/3/201610/2/2016
47/3/201610/3/201610/3/2016
510/2/2016
68/3/20167/3/20168/3/2016
7
810/2/2016
99/3/201610/3/20169/2/2016
101/3/201712/3/201611/25/2016
Sheet1


Conditional Formatting formula:

Code:
=IF(AND(O3<>"",M3<>""),OR(O3<M3,O3<N3),0)

Copy formatting down Column O with format painter.
 
Upvote 0
@jtakw - Not quite. [Note: I closed your formula with two extra parens].

I want Column O highlighted only when its date is earlier than the date in Column N (or earlier than the date in Column M if N is blank).

I tested your formula on cells with blanks and cells with data. Here's what happened:
- If Column M had any data at all - whether earlier, later, or equal to Column O - it highlighted Column O
- If Column M had no data it didn't highlight.

Note: "Request Date" in Column O will always have data. Leaving it out was my error when I tried to recreate the table.

Suggestions? And thanks for the attention to this!

~N
 
Upvote 0
Sorry, formula got cut off....it's supposed to be:

Code:
=IF(AND(O3<>"",M3<>""),OR(O3< M3,O3< N3),0)

Same instructions as before.

If you click Reply with Quote to my post #3, you'll see the entire formula within the quote, this forum has problems cutting off postings involving the < sign.
 
Last edited:
Upvote 0
@jtakw
Note: "Request Date" in Column O will always have data. Leaving it out was my error when I tried to recreate the table.

Suggestions? And thanks for the attention to this!

~N

In that case, just use:

Code:
=IF(M3<>"",OR(O3< M3,O3< N3),0)
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,822
Members
449,096
Latest member
Erald

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