Dynamic sum (non contiguous range)

ANTONIO1981

Board Regular
Joined
Apr 21, 2014
Messages
162
Dear all

I have the following spreadsheet

https://1drv.ms/x/s!Av0OR27GDzktgUPrcRv_W6YdhOjy



<tbody>
</tbody>

<tbody>
</tbody>
I would like to create a formulae in T4 based on a dynamic value placed in cell T2.

My target is to calculate Sum all months to get to a YTD value (YTD=year to date) .

Example: May 16 YTD = January+ February+March+April+May

The issue that i have is that i need to ignore the greyed cells ( cells that sum quarters)

I tried with OFFSET But it doesn't ignore particular cells.

thanks in advance

Antonio
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Book1
BCDEFGHIJKLMNOPQRST
2Aug-16
3US$Jan-16Feb-16Mar-16Q1Apr-16May-16Jun-16Q2Jul-16Aug-16Sep-16Q3Oct-16Nov-16Dec-16Q4FULL YEARYTD
4Volume95,14399,687110,521305,351114,324107,522120,864342,710105,919112,870171,018389,807169,027116,99595,552381,5741,419,442866,850
Sheet1
Cell Formulas
RangeFormula
T4{=SUM(IF($C$3:$Q$3<=$T$2,IF(MOD(COLUMN($C$3:$Q$3)-2,4)<>0,$C$4:$Q$4)))}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Upvote 0
HI - here is another option:

Code:
=SUMIFS(C4:INDEX(C4:R4,1,MATCH($T$2,$C$3:$R$3,0)),C3:INDEX(C3:R3,1,MATCH($T$2,$C$3:$R$3,0)),"<>Q*")
 
Upvote 0
just perfect, how the formulae will be if we were suming row 5 instead of row 4 , and the result was in T5? thank again!
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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