Change the status of a cell depend on the date of another cell

ENI

New Member
Joined
Oct 2, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Web
Hi, I have added status on column A (ongoing, closed, not started,Waiting to receive the product ) and different dates on column B (received date). How can i use conditional formating on column A to change the status from ongoing or not started to "Alert" if the received date on column B is older than 30 days? But not change the status if the status is close (even though the date is older then 30 days).
 

Attachments

  • test.JPG
    test.JPG
    30.5 KB · Views: 6

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Welcome to the Board!

I think you may be confused about Conditional Formatting. Conditional Formatting only affects the formatting of a cell (color, font size, etc). It does NOT affect the value shown in the cell.
Only formulas and VBA can change the contents shown in the cell.

What you would use Conditional Formatting for here is what color to make the cell dependent on the value being shown in the cell (i.e. if the cell value is "Ongoing", make the cell orange, if the cell value is "Closed", make the cell green, etc).

So do you really need help with Conditional Formatting, or with formulas in column A?
If you need help with formulas in column A, what are the formulas in there right now?
If there are hard-coded values in column A and not formulas, but you want to change the value in column A depending upon conditions, that will require VBA (as any cell can have EITHER a formula or a hard-coded value, but never both at the same time).
 
Upvote 0
Hi Joe,

Thank you for your reply!
I don't have formulas now on the column A, I have just i.e. if the cell value is "Ongoing", make the cell orange, if the cell value is "Closed", make the cell green, etc). How can i make the cell from orange (ongoing ) to red?
I don't mind to use formulas as well, just need to make this work (have some red color yelling at me if we are more then 30 days late.
What would you suggest?

Thank you in advance!
 
Upvote 0
If you want to change the color of column A to red when the value in column A is "Ongoing" and the date in column B is more than 30 days past, then choose the "Use a formula to determine which cells to format" option of Conditional Formatting and enter this formula (for row 2, in this example):
Excel Formula:
=AND($A2="Ongoing",TODAY()-$B2>30)
and then choose the red cell color formatting option.
 
Upvote 0

Forum statistics

Threads
1,224,764
Messages
6,180,840
Members
453,000
Latest member
JAO Esq

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