ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Quarterly inputs (https://www.excelbanter.com/excel-worksheet-functions/240980-quarterly-inputs.html)

Loadmaster

Quarterly inputs
 
How do i input the last day of the current quarter into cell B1? However, if
the date within cell A1 is within the current quarter then enter the last day
of the next quarter into cell B1. If the date in cell A1 is not at a minumum
of the previous quarter (two quarters ago), then I require a conditional
format to turn cell A1 red.

Sam Wilson

Quarterly inputs
 
1. Last day of current quarter in cell B1:

=DATE(YEAR(TODAY()),3*ROUNDUP(MONTH(TODAY())/3,0)+1,1)-1

2. Last day unless A1 is in the current qtr then next qtr last day:

=IF(ROUNDUP(MONTH(A1)/3,0)=ROUNDUP(MONTH(TODAY())/3,0),EDATE(DATE(YEAR(TODAY()),3*ROUNDUP(MONTH(TODA Y())/3,0)+1,1),3)-1,DATE(YEAR(TODAY()),3*ROUNDUP(MONTH(TODAY())/3,0)+1,1)-1)



"Loadmaster" wrote:

How do i input the last day of the current quarter into cell B1? However, if
the date within cell A1 is within the current quarter then enter the last day
of the next quarter into cell B1. If the date in cell A1 is not at a minumum
of the previous quarter (two quarters ago), then I require a conditional
format to turn cell A1 red.


Loadmaster

Quarterly inputs
 
Thank-you for the formula. I think I already have the conditional formattting
at work.

"Sam Wilson" wrote:

1. Last day of current quarter in cell B1:

=DATE(YEAR(TODAY()),3*ROUNDUP(MONTH(TODAY())/3,0)+1,1)-1

2. Last day unless A1 is in the current qtr then next qtr last day:

=IF(ROUNDUP(MONTH(A1)/3,0)=ROUNDUP(MONTH(TODAY())/3,0),EDATE(DATE(YEAR(TODAY()),3*ROUNDUP(MONTH(TODA Y())/3,0)+1,1),3)-1,DATE(YEAR(TODAY()),3*ROUNDUP(MONTH(TODAY())/3,0)+1,1)-1)



"Loadmaster" wrote:

How do i input the last day of the current quarter into cell B1? However, if
the date within cell A1 is within the current quarter then enter the last day
of the next quarter into cell B1. If the date in cell A1 is not at a minumum
of the previous quarter (two quarters ago), then I require a conditional
format to turn cell A1 red.



All times are GMT +1. The time now is 07:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com