IF Statment Help

Morsey

New Member
Joined
Jun 30, 2015
Messages
8
Hello I am trying to create an IF Statment that creates a status based on date permeters, an i am coming across an issue

This is my table example

Start Date
End Date
Status
25/06/2015
29/06/2015
Preperation
Active
History

<tbody>
</tbody>

My Logic is this I need the status to report based on where the case is at today().

If today is less than the start date = Preperation
If today is between the start date and end date = Active
If today is greater than the end date = History

the problem I am encountering is that the end date can be a blank cell and causes the formula to show "FALSE", I am not sure how to resolve this.

Here is my formula

=IF(ISBLANK(L3),IF(TODAY()<=K3,"Preperation",IF(AND(TODAY()>=K3,TODAY()<=L3),"Active",IF(ISBLANK(L3),"Active",IF(TODAY()<=K3,"Preperation",IF(AND(TODAY()>=K3,TODAY()<=L3),"Active"))))))

any help would be greatly appreciated!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
depends on what will be the status with no end date.
 
Upvote 0
.....................
 
Last edited:
Upvote 0
don't know what happened to the last post, try this


Excel 2012
K
11Active
Sheet1
Cell Formulas
RangeFormula
K11=IF(TODAY()OR(TODAY()<=L3,ISBLANK(L3)),"Active","History"))
 
Upvote 0
don't know what happened to the last post, try this

Excel 2012
K
11Active

<colgroup><col style="width: 25pxpx"><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
K11=IF(TODAY()<K3,"Preperation",IF(OR(TODAY()<=L3,ISBLANK(L3)),"Active","History"))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Thank you, this works! Really appreciated!!!
 
Upvote 0

Forum statistics

Threads
1,214,621
Messages
6,120,568
Members
448,972
Latest member
Shantanu2024

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