IF function with multiple conditions

nielf

Board Regular
Joined
Nov 13, 2012
Messages
69
Hi,

I'm trying to create an IF function with multiple conditions in Excel 2010 to be used as a report filer in a PivotTable.

My workbook has three columns - Status, Status Change Date and Award Date. I would like to end up with a formula that returns TRUE/FALSE based on the conditions of the table below:

GKmvIck.png


The formula below returns TRUE if the date in B2 is within the current year and month. Is it possible to extend the formula with the conditions of the table above?

Code:
=IF(AND(MONTH(NOW())=MONTH(B2);YEAR(NOW())=YEAR(B2));TRUE;FALSE)

I have uploaded a sampe file here.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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