Conditional formatting in Excel for blank values & dates

David77

Board Regular
Joined
Jun 24, 2020
Messages
109
Office Version
  1. 365
Platform
  1. Windows
Hello everybody,

To make this quick, i have the following setup.

1603463566788.png


I want to create a conditional formatting formula so whenever I have a value in column M (basically whenever the corresponding cell in column M is not blank), then my corresponding cell in column G should turn yellow.

How do I do this? Does anybody know?

Furthermore,

I have the following setup on the right side in my excel sheet:

1603463647982.png


Is it possible to create a conditional formatting so once the order date has been entered into Excel in column L and we have passed that date + 4 additional days, the designated cell value in column L gets highlighted with a red color?

So for example, if cell L1 has order date 16-10-2020 and we are on the 20-10-2020 now (4 days later) and the value in cell M1 has not been removed (so it still has the long number 8000166464/8000216970), then cell L1 will be highlighted with a red color until the value from cell M1 is removed and that cell goes blank.

I hope this makes sense!

I would really appreciate some help here, I cannot explain how much this would mean to me, it would truly make my day! Thank you so very much everybody :)

PLEASE let me know if you want more photos or information as well! I will be happy to respond ASAP!

Kind regards,
David
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
He means to use the XL2BB add-in to post some sample data to the board, as he did in post#4.
 
Upvote 0
Hello Alan,

I am not quite sure what you mean, could you please elaborate?
What kind of screenshot?

BR
David
have a look if this works for you

Book1
GLMNO
11016/10/2020123454
22026/10/2020123454
33009/10/20201234510
44009/10/20201234520
55009/10/20208
66009/10/20201234518
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G:GExpression=LEN(M1)>0textNO
L:LExpression=AND(L1+O1<TODAY(),LEN(M1)>0,LEN(O1)>0)textNO
 
Upvote 0
Solution
have a look if this works for you

Book1
GLMNO
11016/10/2020123454
22026/10/2020123454
33009/10/20201234510
44009/10/20201234520
55009/10/20208
66009/10/20201234518
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G:GExpression=LEN(M1)>0textNO
L:LExpression=AND(L1+O1<TODAY(),LEN(M1)>0,LEN(O1)>0)textNO
Hello Alan,

I apologize for my late response, but truly appreciate your assistance (a lot!!!)

It definitely looks better now, but unfortunately it seems like the conditional formatting still does not work for me:

1604493270414.png


So right now it's showing some errors. For example, cell M2 should clearly be highlighted in red since it's been over 4 days since the good was ordered (2020-10-16 + 4 = 2020-10-20, which is around 15 days ago - and the number in cell N2 is also still there).

Likewise, it is highlighting some blank cells with a red color for some reason, which it should not be doing, these should just be ignored.

Can you help me out with solving this issue? I apologize for taking so much of your time, I literally cannot express how much I appreciate it!! :)

Best regards,
David
 
Upvote 0
He means to use the XL2BB add-in to post some sample data to the board, as he did in post#4.
So sorry Fluff, my technical language is still very limited. What is an "XL2BB add-in"?
 
Upvote 0
It's an add-in that allows you to copy usable data to the board, click the XL2BB link in the reply window for more information.

In conditional formatting the formula needs to match the first row in the applies to range, so you need to change the formula to look at M2, P2 etc.
 
Upvote 0
It's an add-in that allows you to copy usable data to the board, click the XL2BB link in the reply window for more information.

In conditional formatting the formula needs to match the first row in the applies to range, so you need to change the formula to look at M2, P2 etc.
It's an add-in that allows you to copy usable data to the board, click the XL2BB link in the reply window for more information.

In conditional formatting the formula needs to match the first row in the applies to range, so you need to change the formula to look at M2, P2 etc.
Hello Fluff,

Unfortunately I do not have that add-in available to me :(
 
Upvote 0
It's an add-in that allows you to copy usable data to the board, click the XL2BB link in the reply window for more information.

In conditional formatting the formula needs to match the first row in the applies to range, so you need to change the formula to look at M2, P2 etc.
Fluff,

You're an excel god incarnated haha :) I apologize for the mistake, you were right and it works now!!! :)

One final thing, then I shall promise not to bother you again :)

1604660667327.png


Is it possible to edit the formula so it also includes a final rule that: If the cell in Column O says "YES", then the cell in Column M (corresponding to the same cell number in column O) should not be highlighted with a red color and remain white.

I would really appreciate your final input/solution to this. Thank you so very much for your time! Both you and AlanY :)

Best regards,
David
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,397
Members
448,957
Latest member
Hat4Life

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