Excel formula to read prior quarter as "ABC Corp Q (#) yyyy taxpayment"?

streets

New Member
Joined
Mar 23, 2024
Messages
13
Office Version
  1. 365
Platform
  1. Windows
I desire an automatically updating excel formula, or formulas, that wiIl read the prior quarter as like "Q2 2024" and "2nd quarter 2024", with using the CONCATENATE formula, or similar functioning formula excel feature.

In order for excel to read the latest calendar year quarter, displaying digits for the date in the form of mm/dd/yyyy , there is this formula I use :

=TEXT(EOMONTH(TODAY(),-4)+1,"mm/dd/yyyy")&" - "&TEXT(EOMONTH(TODAY(),-1),"mm/dd/yyyy")

Presently, as of today's July 2024 date, that will show-up in excel as "04/01/2024 - 06/30/2024". Good. I desire to also use the formula, or similar type of formula, to read as, (1) "ABC Corp Q2 2024 tax payment to IRS" and (2) "ABC Corp 2nd quarter 2024 tax payment to IRS". The "ABC Corp" and the "tax payment to IRS" parts of it never change. The quarter of the year part, however, is always the latest quarter of year, which one that happens to be, as of today's date. I'd like to have excel formula for it to auto-update, to prevent human typing error. How to make it?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Something like this (though I am not sure how quarterly period is defined in this case)?

Excel Formula:
="ABC Corp "&LET(
t,TODAY(),
IFS(AND(t>=DATE(YEAR(t),1,1),t<=DATE(YEAR(t),3,31)),"Q1 "&YEAR(t),AND(t>=DATE(YEAR(t),4,1),t<=DATE(YEAR(t),6,30)),"Q2 "&YEAR(t),AND(t>=DATE(YEAR(t),7,1),t<=DATE(YEAR(t),9,30)),"Q3 "&YEAR(t),AND(t>=DATE(YEAR(t),10,1),t<=DATE(YEAR(t),12,31)),"Q4 "&YEAR(t)))& " tax payment to IRS"

Excel Formula:
="ABC Corp "&LET(
t,TODAY(),
IFS(AND(t>=DATE(YEAR(t),1,1),t<=DATE(YEAR(t),3,31)),"1st quarter "&" "&YEAR(t),AND(t>=DATE(YEAR(t),4,1),t<=DATE(YEAR(t),6,30)),"2nd quarter "&" "&YEAR(t),AND(t>=DATE(YEAR(t),7,1),t<=DATE(YEAR(t),9,30)),"3rd quarter"&" "&YEAR(t),AND(t>=DATE(YEAR(t),10,1),t<=DATE(YEAR(t),12,31)),"4th quarter "&" "&YEAR(t)))& " tax payment to IRS"
 
Upvote 0
Unfortunately it doesn't hit the spot, but I thank you for the help so far, in trying to help me figure this out. I think what you have there for me is mostly right, just a little off. It needs to be tweaked. Could you please tweak it?

The calendar year quarter for the formula to output is the latest completed prior quarter, and not the quarter of the year we are presently in, date-wise. Today's date is in July 2024, which is in 3rd quarter 2024, or 3Q 2024. The tax payments to IRS to which I refer are made in reference to the most recent quarter that has just ended, not long ago. For this formula, I want it to auto update to the latest prior quarter, which for today's date in July 2024 means it would auto-update for the 2nd quarter 2024, covering calendar date range 04/01/2024 - 06/30/2024.
 
Upvote 0
How about:

Book1
ABC
1
22024-01-204ABC Corp Q4-2023
32024-02-204ABC Corp Q4-2023
42024-03-204ABC Corp Q4-2023
52024-04-201ABC Corp Q1-2024
62024-05-201ABC Corp Q1-2024
72024-06-201ABC Corp Q1-2024
82024-07-202ABC Corp Q2-2024
92024-08-202ABC Corp Q2-2024
102024-09-202ABC Corp Q2-2024
112024-10-203ABC Corp Q3-2024
122024-11-203ABC Corp Q3-2024
132024-12-203ABC Corp Q3-2024
Sheet1
Cell Formulas
RangeFormula
B2:B13B2=IF(INT((MONTH(A2)-1)/3)=0,4,INT((MONTH(A2)-1)/3))
C2:C13C2= "ABC Corp Q" & IF(INT((MONTH(A2)-1)/3)=0,4,INT((MONTH(A2)-1)/3)) &"-"& YEAR(A2)-IF(INT((MONTH(A2)-1)/3)=0,1,0)
 
Last edited:
Upvote 0
It does one of the two exactly like I want. The solution you provided so far takes care of the # 1, which is automating the "ABC Corp Q2 2024 tax payment to IRS" line.

The other line I desire automation for is # 2, for the line "ABC Corp 2nd quarter 2024 tax payment to IRS". In this # 2, the number of the quarter is displayed first and using the ordinal numbering system, of "1st", "2nd", "3rd", "4th", followed by the word "quarter", then the year (which "2024" is the most recent prior quarter's end). Is it possible to get a formula set for # 2?
 
Upvote 0
how about:

Cell Formulas
RangeFormula
B2:B13B2=IF(INT((MONTH(A2)-1)/3)=0,4,INT((MONTH(A2)-1)/3))
C2:C13C2= "ABC Corp Q" & IF(INT((MONTH(A2)-1)/3)=0,4,INT((MONTH(A2)-1)/3)) &"-"& YEAR(A2)-IF(INT((MONTH(A2)-1)/3)=0,1,0)
D2:D13D2= CHOOSE(INT((MONTH(A2)-1)/3)+1,"4th","1st","2nd","3rd")
E2:E13E2="ABC Corp " & CHOOSE(INT((MONTH(A2)-1)/3)+1,"4th","1st","2nd","3rd") & " quarter, " & YEAR(A2) - IF(INT((MONTH(A2)-1)/3)=0,1,0) & " tax payment to IRS"
 
Upvote 0
Solution
awoohaw, thanks again. With these two automated excel formulas in-place, it is decreased, by quite a bit, the chance of human typing error of the quarter number and year, and/or not updating quarter number and year, for each quarter when taxpayment calculations are prepared.
 
Upvote 0
You're welcome. Thanks for the feedback.

Best Wishes!
 
Upvote 0

Forum statistics

Threads
1,223,929
Messages
6,175,448
Members
452,642
Latest member
acarrigan

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