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!
 

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,239
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
depends on what will be the status with no end date.
 

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,239
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
.....................
 
Last edited:

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,239
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
don't know what happened to the last post, try this

<b>Excel 2012</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>K</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">11</td><td style=";">Active</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">K11</th><td style="text-align:left">=IF(<font color="Blue">TODAY(<font color="Red"></font>)<K3,"Preperation",IF(<font color="Red">OR(<font color="Green">TODAY(<font color="Purple"></font>)<=L3,ISBLANK(<font color="Purple">L3</font>)</font>),"Active","History"</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 

Morsey

New Member
Joined
Jun 30, 2015
Messages
8
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!!!
 

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,239
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
you're welcome
 

Watch MrExcel Video

Forum statistics

Threads
1,123,323
Messages
5,600,954
Members
414,417
Latest member
Nobu

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