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
1-Aug-2018
31-Oct-2012
31-Oct-2014
Ended
31-Oct-2020
31-Jun-2017
30-Oct-2017
None Announced
30-Mar-2018
TBD

<tbody>
</tbody>
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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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