Monthly to quarterly timeline

welshwonder

New Member
Joined
Feb 20, 2012
Messages
15
Hi,

I have costs over a timeline in months with their assosiated quarter and year numbers like below on a seperate row underneath the month row:

Month 1 Month 2 Month 3 Month 4 etc etc
Y1 Qtr1 Y1 Qtr1 Y1 Qtr1 Y1 Qtr2 etc etc
Monthly costs........................ etc etc

What I need to do is "roll up" the costs (60 months worth) into the correct quarter. I can do the rollup bit, but how do I get a timeline in quarters without any blanks using worksheet functions? i.e.

Y1 Qtr1 Y1 Qtr2 Y1Qtr 3 Y1Qtr4 Y2 Qtr1 Y2 Qtr2 Y2 Qtr3 Y2 Qtr4 etc etc

Thanks in advance....
 
Ok, I solved it myself in the end, so here it is if anyone else has this issue in the future:

{=INDEX($AP$10:$FH$10, MATCH(0, COUNTIF($AO$55:AO55, $AP$10:$FH$10), 0))}

I used an array formula (hold down Ctrl, Shift and Enter when you have entered the formula in the formula bar).

Where AP10:FH10 is the area where the Financial Year Qtr numbers are held and AO55:CD55 is the new row where you want the Financial Year Qtr numbers to be without the duplicates.
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,216,526
Messages
6,131,187
Members
449,631
Latest member
mehboobahmad

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