If/AND formula - calendar month from today??

weaholt

New Member
Joined
Oct 9, 2006
Messages
18
Hope someone can help – I have been struggling with this for ages!

I have a formula with a multiple IF/AND statement incorporating dates and I just can’t get it to work.

The conditions are as follows – A1 must be greater than 0, A2 must have YES entered, A3 contains a date which must be within 1 calendar month. If these conditions are satisfied then the value from cell B1 is displayed, if they are not satisfied then the cell remains blank.

I have – =IF(AND($A1>0,A2="YES",A3>=TODAY()+28),B1,"")

The plus 28 days from today part doesn’t work because I want one calendar month. I tried calculating the start and the end of the month in 2 helper cells and then including something in the formula to day that if TODAY() is between these dates, but I get an error? It’s driving me mad!!

TIA 
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I would replace

Code:
[LEFT][COLOR=#333333][FONT=Verdana]A3>=TODAY()+28
by

Code:
month(A3)=month(today()), year(A3)=year(today())
[/FONT][/COLOR][/LEFT]
 
Upvote 0
So sorry - my original post should have said that A3 must be more than one calendar month from today, not within!

Thank you for responding :)
 
Upvote 0
So sorry - my original post should have said that A3 must be more than one calendar month from today, not within!

Thank you for responding :)
Today is 13 March 2019.

A3 must be bigger or equal to 1 March 2019:
Code:
A3>=date(year(today()),month(today()),1)

A3 must be bigger or equal to 1st April 2019

Code:
A3>=date(year(today()),month(today())+1,1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
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