Change text based on another cell's condition

nate777

New Member
Joined
Aug 2, 2006
Messages
27
Hi there,

I have three column headings


Due Date Closed Date Status
28-Sep-06 21-Sep-06 Closed
23-Aug-06 21-Aug-06 Closed
10-Sep-06 ----------- Overdue
24-Sep-06 ----------- Open


Note: Status column has data validation list "Open", "Closed" and "Overdue"


I want to do the following.

If Due Date is a day in the future and corresponding Closed Date field is empty or blank....I want Status to show as "Open"

If Due Date is past due(<Today()?), and Closed Date field is blank, Status to show as "Overdue"

If Closed Date field has a date entry, then Status to show as "Closed"

Any suggestions ?

Thanks,
Nate
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,004
Office Version
  1. 365
Code:
C2=IF(B2<>"","Closed",IF(A2<TODAY(),"Overdue","Open"))
Copy C2 down.
Book9
ABCD
1Due DateClosed DateStatus
228-Sep-0621-Sep-06Closed
323-Aug-0621-Aug-06Closed
410-Sep-06Overdue
524-Sep-06Open
Sheet1
 

Watch MrExcel Video

Forum statistics

Threads
1,133,458
Messages
5,658,884
Members
418,475
Latest member
ExcelBeginner233

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
Top