IF AND to define which date category

NJS1982

Board Regular
Joined
Sep 24, 2009
Messages
186
Office Version
  1. 365
Platform
  1. Windows
Hi all, I have a list of dates and I am trying to state (TEXT) which quarter of the year that they all fall into.
My formula is this:

=IF(AND(B47>="30/1/2017"+0,B47<="31/3/2017"+0),"Jan-Mar '17",
IF(AND(B47>="1/4/2017"+0,B47<="30/6/2017"+0),"Apr-June '17",
IF(AND(B47>="1/7/2017"+0,B47<="30/9/2017"+0),"Jul-Sept '17",
IF(AND(B47>="1/10/2017"+0,B47<="31/12/2017"+0),"Oct-Dec '17",
IF(AND(B47>="1/1/2018"+0,B47<="31/3/2018"+0),"Jan-Mar '18",
IF(AND(B47>="1/4/2018"+0,B47<="30/6/2018"+0),"Apr-June '18",
IF(AND(B47>="01/7/2018"+0,B47<="30/09/2018"+0),"Jul-Sept '18",
IF(AND(B47>="01/10/2018"+0,B47<="31/12/2018"+0),"Oct-Dec '18",
IF(AND(B47>="1/1/2019"+0,B47<="31/3/2019"+0),"Jan-Mar '19","")))))))))

It works fine, BUT, all of my cells with a date of 30/06/2017 or 31/03/2017 do not work and are blank. Can anyone tell me why this is?
The cells are not formatted any different, the return is simply blank? I can't see an error with the formula and all of the others work...
Is it something to do with the '=' part of the formula? I need to include those dates that fall onto the first and last day of the quarters...

Thanks!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
=CHOOSE(ROUNDUP(MONTH(B47)/3,0),"Jan-Mar '","Apr-Jun '","Jul-Sep '","Oct-Dec '")&TEXT(B47,"yy")
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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