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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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
 
Upvote 0

Forum statistics

Threads
1,215,653
Messages
6,126,046
Members
449,282
Latest member
Glatortue

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