SUM OFFSET but subtracting subtotals

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
375
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am using the following standard sum offset to do a year to date formula, the A3 and V8:AJ8 are just matching the names of the month from a dropdown list and lookup.

The formula works fine, but my rows across are:

JAN FEB MAR Q1 APR MAY JUNE Q2 JULY AUG SEP Q3 OCT NOV DEC Q4

so the sum formula is also adding in the Q1 and Q2 (since we are currently doing August).

Is there any way to update this formula to NOT include the totals in Q1, Q2, Q3, and Q4, regardless of what month is showing and only include the monthly totals?

Thanks so much!



=SUM(OFFSET(V13,0,0,1,MATCH($A$3,$V$8:$AJ$8,0)))
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
As per your table and formula it seems, Dec is in cell AJ13 so Q4 will never get added, if i am correct here below formula should work:

=SUM(OFFSET(V13,0,0,1,MATCH($A$3,$V$8:$AJ$8,0)))-if(MATCH($A$3,$V$8:$AJ$8,0)>=12,AG13,if(MATCH($A$3,$V$8:$AJ$8,0)>=8,AC13,IF(MATCH($A$3,$V$8:$AJ$8,0)>=4,Y13,0)))
 
Upvote 0
As per your table and formula it seems, Dec is in cell AJ13 so Q4 will never get added, if i am correct here below formula should work:

=SUM(OFFSET(V13,0,0,1,MATCH($A$3,$V$8:$AJ$8,0)))-if(MATCH($A$3,$V$8:$AJ$8,0)>=12,AG13,if(MATCH($A$3,$V$8:$AJ$8,0)>=8,AC13,IF(MATCH($A$3,$V$8:$AJ$8,0)>=4,Y13,0)))



Thank you KUYJS, that didn't completely work but I think you are on the right track, I will try to play with it a bit further, but im sure this template will be extremely helpful as I tweak it.

As per the data below, the correct YTD answer thru August should be $1.887M, whereas this formula returns $2.55M. Thanks though, cheers!





Jan-18 Feb-18 Mar-18 Q1:2018 Apr-18 May-18 Jun-18 Q2:2018 Jul-18 Aug-18 Sep-18 Q3:2018 Oct-18 Nov-18 Dec-18 Q4:2018 2018
Plan Plan Plan Plan Plan Plan Plan YTD



213,000 217,167 232,586 662,752 241,666 241,666 241,666 724,999 241,666 258,333 267,258 767,257 267,258 267,258 267,258 801,774 2,550,502.67
 
Upvote 0
With the data in the range you describe extended to column AK try this.
Code:
=SUMIF($V$8:INDEX($V$8:$AK$8,,MATCH($A$3,$V$8:$AK$8,0)),"<>Q*",$V$9:INDEX($V$9:$AK$9,,MATCH($A$3,$V$8:$AK$8,0)))
 
Last edited:
Upvote 0
hmm, that didnt work either. All of the months are in row 8, not 9. I changed the 9s to 8s but that was unsuccessful as well.

But thanks for the effort, I sincerely appreciate it! :)
 
Upvote 0
This is how I understood the layout. Formula is in V3.


A
V
W
X
Y
Z
AA
AB
AC
AD
AE
AF
AG
AH
AI
AJ
AK
1
2
3
AUG​
$22,956​
4
5
6
7
8
JAN​
FEB​
MAR​
Q1​
APR​
MAY​
JUNE​
Q2​
JULY​
AUG​
SEP​
Q3​
OCT​
NOV​
DEC​
Q4​
9
$4,420​
$4,141​
$1,114​
$9,675​
$2,003​
$4,578​
$1,662​
$8,243​
$2,579​
$2,459​
$4,047​
$9,085​
$4,818​
$3,624​
$4,103​
$12,545​
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,156
Messages
6,129,192
Members
449,492
Latest member
steveg127

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