QTD Formula

woodams

New Member
Joined
Nov 26, 2003
Messages
25
I am currently using the formula below to sum a group of columns (months) to get a YTD total based on the current month entered in cell $D$3

=SUM(OFFSET(C8,0,0,1,MONTH($D$3)))

This works great !

However - I am having trouble getting a QTD result ...

I am hoping someone has a formula to calculate QTD values based the month entered in cell $D$3 ?

Thank you !!! :banghead:
 
Thank you very much for the help with this formula -

and such a quick reply ...

However,

I am wondering if anyone has a suggestion on how to do the QTD formula that would work anytime throughout the year based on a chosen month.

Example:
Jan Feb
2 3
QTD Feb: 5
:pray:
 
Upvote 0
Change the input to a number and either headers or look into the following in your match function:

=TEXT(d4,"mmm")

Edit: Wait what are you saying? How could Feb be 5? There's only 4 quarters in a year? Are you talking calendar quarters? Me confused... :-?

One thing's for certain, avoid Offset(). ;)

I think you may want to reconsider your thinking as to how this is done. If you simply want to grab any single Callendar quarter, or a shifted one due to fiscal reporting, use the logic in my previous post. Otherwise I find the logic of your quandary to be opaque... Are you talking about year-over-year comparisons?
 
Upvote 0
woodams said:
Thank you very much for the help with this formula -

and such a quick reply ...

However,

I am wondering if anyone has a suggestion on how to do the QTD formula that would work anytime throughout the year based on a chosen month.

Example:
Jan Feb
2 3
QTD Feb: 5
:pray:
Hi woodams:

Can you clarify what you mean by QTD value -- how about using the figures in Nate's post, what do you consider to be the QTD value, say for May.
 
Upvote 0
Thank you very much for all the help. Let me try and be more specific with my question. The answer I should get for QTD July Cell E4 is 260. The formula should sum the current quarter to date based on the current month from cell D4. Therefore, the formula must only add up the number of cells in the current QTR in order to get a QTD answer.

I am really stumped - but I am also very grateful for all the help I have already receivied.

Thank you again,

Jim :-D
QTD & YTD Formula.xls
ABCDEFGHIJKL
1
2
3YTDOct1100
4QTDJul480
5
6
7JanFebMarAprMayJunJulAugSepOctNovDec
820406080100120140160180200220240
Sheet1
 
Upvote 0
woodams said:
Thank you very much for all the help. Let me try and be more specific with my question. The answer I should get for QTD July Cell E4 is 260. The formula should sum the current quarter to date based on the current month from cell D4. Therefore, the formula must only add up the number of cells in the current QTR in order to get a QTD answer.

I am really stumped - but I am also very grateful for all the help I have already receivied.

Thank you again,

Jim :-D
QTD & YTD Formula.xls
ABCDEFGHIJKL
1
2
3YTDOct1100
4QTDJul480
5
6
7JanFebMarAprMayJunJulAugSepOctNovDec
820406080100120140160180200220240
Sheet1

Hi woodams:

May be I am missing something here -- Jul is the beginning of the 3rd Quarter, so shouldn't the QTD vlaue be 140? If this is so then you should find the following odf some interest ...
Book2
ABCDEFGHIJKL
3YTDOct1,100.00
4QTDJul140.00
5
6
7JanFebMarAprMayJunJulAugSepOctNovDec
820406080100120140160180200220240
9
102060120200300420560720900110013201560
Sheet12


The formula in cell E4 is ...

=SUM(A8:INDEX(A8:L8,MATCH(D4,A7:L7,0)))-IF(MATCH(D4,A7:L7,0)<4,0,SUM(A8:INDEX(A8:L8,INT(MATCH(D4,A7:L7,0)/3)*3-(MOD(E12,3)=0)*3)))

I am sure the formula can be simplified -- anyway first please post back and advise what should be the correct value for Jul!
 
Upvote 0
Yogi you are correct the correct calculated value for July should be 140, when Aug is input into cell D4 the resulting value should be 300. And another example would be Feb with a resulting QTD value of 60.

Again - I apoligize for any confusion ...

Thank you again,

:lookaway:
 
Upvote 0
Hi woodams:

The formulation I have posted does correctly give 300 for Aug, and 60 for Feb as shown in the following illustrations ...
y031128h1.xls
ABCDEFGHIJKL
3YTDOct1,100.00
4QTDAug300.00
5
6
7JanFebMarAprMayJunJulAugSepOctNovDec
820406080100120140160180200220240
9
102060120200300420560720900110013201560
Sheet12


and
y031128h1.xls
ABCDEFGHIJKL
3YTDOct1,100.00
4QTDFeb60.00
5
6
7JanFebMarAprMayJunJulAugSepOctNovDec
820406080100120140160180200220240
9
102060120200300420560720900110013201560
Sheet12


I hope this helps.
 
Upvote 0
Yogi -

Thank you agian for your help ...

Can you show me what formulas you have in Row 12 - they are not showing up on the HTML post. After I get this portio of the spreadsheet I would try and consolidate the formula into one cell.

Regards,

Jim
 
Upvote 0

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