Help with if(and) formula please

Jmoz092

Board Regular
Joined
Sep 8, 2017
Messages
182
I'm in need of a formula that compares a couple things and gives an answer, but I'm not having any luck. Any help would be appreciated.

Begin DateEnd Datetrue/falsetodayactive/expired
11-1-1711-30-17true=today()active
false=today()n/a
11-1-1711-2-17true=today()expired

<tbody>
</tbody>


I have 2 columns with a begin and end date.
I have a static cell that contains =today().
I have a column that contains true or false values

I need (in the active/expired/na column) to compare those in the active/expired column.

If the end date is less than today, = active
if the true/false column is false, = n/a
if the end date is in the past (compared to today), = expired

Thank you
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Assuming your data are in range A1:E4, try this:

Code:
[TABLE="width: 87"]
<tbody>[TR]
  [TD="width: 87"]=IF(C2="False","n/a",IF(B2>=D2,"active","expired"))[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hi there, I think your description is a little confused, because "If the end date is less than today" and "if the end date is in the past (compared to today)" are the same thing? But I think I know what you're after. Try the following:

ABCDE
1Begin DateEnd Datetrue/falsetodayactive/expired
211/01/201711/30/17TRUE28/11/2017=IF(C2,IF(B2>D2,"Active","Expired"),NA())
3FALSE28/11/2017Fill from above
411/01/201711/02/2017TRUE28/11/2017Fill from above

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,443
Messages
6,124,890
Members
449,194
Latest member
JayEggleton

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