Shifting Excel Formula for Quarter To Date Calculation?

Redfly88

New Member
Joined
Jul 31, 2018
Messages
5
Hi,

I am stuck on coming up for an excel formula that would calculate myQuarter to Date sales. I want the formula to return the sum for the months that have been concluded for that specific Quarter based on a drop-down pick list from my dashboard. (Future month sales are also in my excel table but are projections and not actuals) The fiscal year runs from March 1st to the end of February.

For example, if I picked the month of July, the formula should only return the sales for June and July since they both fall in quarter 2 and August has not concluded yet. However if I picked the month of May, the formula would then shift to give me total sales from March to May since May has concluded. I know I would need to use OFFSET, VLOOKUP, and potentially INDIRECT based on my month but I am not sure how I would account for the shift in quarters. My monthly data runs across in columns and has the industries in the rows.
MonthQuarter
Mar1
Apr1
May1
Jun2
Jul2
Aug2
Sep3
Oct3
Nov3
Dec4
Jan4
Feb4

<colgroup><col><col></colgroup><tbody>
</tbody>
<strike></strike>

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hello,

I had exactly the same problem couple of days ago. ;)
Maybe there is a better way to do that but...
I did two things.

I used a dictionary like you wrote in your post.
The other thing I did was to add a column helper where I placed a quarter number corresponding to the dictionary.

Data to sum up:
MonthQuarterAmount
mar11000
apr1500
may11500
jun22000

<tbody>
</tbody>

Then I used SUMIFS and INDEX+MATCH combo (I hate VLOOKUP)
=SUMIF(DATA!$B:$B;INDEX(DIC!$B:$B;MATCH(DASHBOARD!$A$1;DIC!$A:$A;0));DATA!$C:$C)

DASHBOARD!$A$1 - hold name of a month
INDEX+MATCH - will translate month name from DASHBOARD to a quarter number found in DIC worksheet
SUMIF - will do the rest

I hope it's clear.
 
Upvote 0
Hey, really sorry for such a delayed response. Wanted to thank you for your feedback, although ended up doing something slightly different.

I esentially just used a SUMIFS formula to calculate the QTD sales if there is an "X" under the completed month and if it is quarter "1", "2", "3', or "4".

Just easier to implement for me.
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

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