Using multiple IF functions?

Callaghan86

New Member
Joined
Feb 14, 2017
Messages
15
Hi all,

I've created a spreadsheet for work to show job completion dates. I have 3 columns with the following headers:

Job Completion date
Job Deadline date
Overdue?

I want a formula that can show whether a job is still on time or overdue, but also returning text saying "Not yet completed" if a completion date has not been entered, or "No deadline set" if the deadline box is blank. If both date boxes contain a date, then I want the "overdue?" cell to say "On time" or "Overdue"

For example:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Job Completion Date
[/TD]
[TD]Job Deadline Date
[/TD]
[TD]Overdue?
[/TD]
[/TR]
[TR]
[TD]01/02/2017
[/TD]
[TD][/TD]
[TD]No deadline set
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]21/02/2017
[/TD]
[TD]Not yet completed
[/TD]
[/TR]
[TR]
[TD]10/02/2017
[/TD]
[TD]01/02/2017
[/TD]
[TD]Overdue
[/TD]
[/TR]
</tbody>[/TABLE]
 
This formula takes into account a job actually finishing on time

=IF(AND(A2="",B2=""),"No deadline set",IF(AND(A2<>"",B2<1),"Job Completed",IF(AND(A2<B2,A2<>""),"Job Completed before deadline",IF(OR(B2<TODAY(),A2>B2),"Overdue",IF(B2>A2,"Not Yet Completed","Job Completed on Time")))))
 
Last edited:
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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