Automatic Population of Rows for 12 Quarters from Selected Quarter

gannybun

New Member
Joined
Dec 10, 2021
Messages
16
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Apologies in advanced as my excel is unable to load XL2bb. Can someone help me with this.

I've this in my drop down list
Part of the Drop down List for selection
1Q24
2Q24
3Q24
4Q24
1Q25
2Q25
3Q25
4Q25
1Q26
2Q26
3Q26
4Q26
1Q27
2Q27
3Q27
4Q27
(to be expanded)

Example 1 : when i select "2Q24". i want to create a Row in excel that will be automatically populated when qtr(2Q24) in list is selected, spanning 12 quarters starting from the selected quarter.
("|" being the cell, no need to formulate "|" )

| 2Q24 | 3Q24 | 4Q24 | 1Q25 | 2Q25 | 3Q25 | 4Q25 | 1Q26 | 2Q26 | 3Q26 | 4Q26 | 1Q27 |

Example 2 : when i select "4Q25". i want to create a Row in excel that will be automatically populated when qtr(4Q25) in list is selected, spanning 12 quarters starting from the selected quarter.

| 4Q25 | 1Q26 | 2Q26 | 3Q26 | 4Q26 | 1Q27 | 2Q27 | 3Q27 | 4Q27 | 1Q28 | 2Q28 | 3Q28 |



many thanks in advanced :)
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try:

Book2
CDEFGHIJKLMN
1Selection
22Q24
3
42Q243Q244Q241Q252Q253Q254Q251Q262Q263Q264Q261Q27
Sheet3
Cell Formulas
RangeFormula
C4:N4C4=LET(s,SEQUENCE(,12,RIGHT(C2,2)+(LEFT(C2)-1)*0.25,0.25),MOD(s,1)*4+1&"Q"&INT(s))
Dynamic array formulas.
 
Upvote 0
Try:

Book2
CDEFGHIJKLMN
1Selection
22Q24
3
42Q243Q244Q241Q252Q253Q254Q251Q262Q263Q264Q261Q27
Sheet3
Cell Formulas
RangeFormula
C4:N4C4=LET(s,SEQUENCE(,12,RIGHT(C2,2)+(LEFT(C2)-1)*0.25,0.25),MOD(s,1)*4+1&"Q"&INT(s))
Dynamic array formulas.
it works!!! thank you so much!!!

If i would to put the 12 qtrs in a column, how should i modified the formula?
 
Upvote 0
You just need to move the first comma in the SEQUENCE like this:

Excel Formula:
=LET(s,SEQUENCE(12,,RIGHT(C2,2)+(LEFT(C2)-1)*0.25,0.25),MOD(s,1)*4+1&"Q"&INT(s))
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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