Excel - IF formula with Text and Date range to return text

Bluebug_Rae

New Member
Joined
Nov 15, 2017
Messages
6
I need a formula column M to reflect CRITICAL, CURRENT, FUTURE based on text and/ date range within column K.

Column K
[TABLE="width: 112"]
<tbody>[TR]
[TD]1-Aug-2018[/TD]
[/TR]
[TR]
[TD]31-Oct-2012[/TD]
[/TR]
[TR]
[TD]31-Oct-2014[/TD]
[/TR]
[TR]
[TD]Ended[/TD]
[/TR]
[TR]
[TD]31-Oct-2020[/TD]
[/TR]
[TR]
[TD]31-Jun-2017[/TD]
[/TR]
[TR]
[TD]30-Oct-2017[/TD]
[/TR]
[TR]
[TD]None Announced[/TD]
[/TR]
[TR]
[TD]30-Mar-2018[/TD]
[/TR]
[TR]
[TD]TBD[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If Column K contain:
<12/31/2016, Ended
should be marked as CRITICAL in column M
>= 1/1/2017, <= 12/31/2017 should be marked as CURRENT in column M
> 1/1/2018, TBD, None Announced should be marked as FUTURE in column M

What is my formula for column M?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
BTW... Please and thank you.

I assume it will be an array, but need help; it is only recognizing about half of my formula.

Column K = [@EoSWM]

=IF([@EoSWM]<= 12/31/2016, "CRITICAL",IF(AND([@EoSWM]>="1/1/2017"+0,[@EoSWM]<="12/31/2017"+0),"CURRENT", IF([@EoSWM]> 1/1/2018, "FUTURE", IF([@EoSWM]="None Announced", "FUTURE", IF([@EoSWM]= "TBD", "FUTURE", IF([@EoSWM]="Ended", "CRITICAL", ""))))))
 
Upvote 0
I would suggest having a play with using Conditional Formatting to color the cells. IF's are not going to cut it. If that doesn't work, you will need to write a macro to make this rather complex decision and return CURRENT, CRITICAL, or FUTURE.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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