Vlookup/Sumif/or CSE formula quandry?

RickM

Board Regular
Joined
Dec 5, 2007
Messages
84
I am trying to return sum of quarterly data to another cell. Looking for a formula to return the sum of 11175 colC (120+117+234) in another cell and then (261+253+307) etc. Will need that for each ColumnC thru ColumnI. The Date will change each month. Next month the first date will be Feb/2010. So I am trying to get the first three cells in ColC and the next 3 cells in ColC. Not sure which formula to use??????
Excel Workbook
ABCDEFGHI
2Branch #DateABCDEFN
311175Jan/2010120101918103870
411175Feb/2010117112317107570
511175Mar/20102342214201090141
611175Apr/20102613430271086137
711175May/20102533619231059116
811175Jun/20103073551251283142
911175Jul/20102982442251042110
1011175Aug/20102191915191854111
1111175Sep/2010851615872763
1211175Oct/20106561231542
1311175Nov/201086114922758
1411175Dec/20102232525321285152
1511175Jan/20112353026181077125
1611200Jan/201026211114
1711200Feb/2010371212214
1811200Mar/201041211121
1911200Apr/201028221215
2011200May/2010332231614
2111200Jun/201034122133
2211200Jul/201029321316
2311200Aug/20105141324
2411200Sep/2010452221737
2511200Oct/2010543323749
2611200Nov/201044332322
2711200Dec/201035224
2811200Jan/20113724315
DATA
Excel 2007
 
Don't know why. May be your Branch # in Data tab & Lookup Branch in A39 are in different format.

Try this,

=SUMPRODUCT((DATA!$A$3:$A$752&""=$A$39&"")*(YEAR(DATA!$B$3:$B$752)=$A$42)*(DATA!$B$3:$B$752 < DATE($A$42,(3*ROWS(G$39:G39))+1,0))*INDEX(DATA!$C$3:$I$752,0,MATCH(G$38,DATA!$C$2:$I$2,0)))-SUM(G$38:G38)
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Yes it was a format issue. It works now. This works for a single year, but what is happening is the data file is a rolling 13 months of data. So the year will over lap. What would the formula be for G43 if that is the beginning of 2011?
 
Upvote 0
Try this;

G39, copy across & down...

=SUMIFS(INDEX(DATA!$C$3:$I$752,0,MATCH(G$38,DATA!$C$2:$I$2,0)),DATA!$A$3:$A$752,$A$39,DATA!$B$3:$B$752,">="&DATE($A$42,(3*ROWS(G$39:G39)-2),1),DATA!$B$3:$B$752,"<="&DATE($A$42,(3*ROWS(G$39:G39)+1),0))

Also Pivot table is better.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,728
Members
452,939
Latest member
WCrawford

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