Sumproduct question

keresztesi

Board Regular
Joined
Aug 14, 2017
Messages
64
Hi,

i have a following question.
What would be the correct formula to have the sum value?
I'd like to use sumproduct because I got the values in external excel files.

Variables:
From 02.okt
To 06.okt
only text4

1A1B1C1D1E1F1G1H1I1J1
2 01.oct02.oct03.oct04.oct05.oct06.oct07.oct08.oct09.oct
3text1991983377839994182173425
4text2112582505871685687295686421
5text32202994424886778797459392
6text43428829507898369354639925
7text5770386981548326170916129621
8text648856265827638009586361
9text767366467775405972869317333
10text8979741772552646182485405465
11text9473782335928548918627105804
12text10850206147967327278393528141
13text1195838322926823085415632842

<colgroup><col><col><col span="9"></colgroup><tbody>
</tbody>

Thx,
Zoli
 

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.
Hi, assuming the values in row 1 are dates with special formatting and the values in column A are unique - you could try this:


Excel 2013/2016
ABCDEFGHIJKL
101-Oct02-Oct03-Oct04-Oct05-Oct06-Oct07-Oct08-Oct09-Oct
2text19919833778399941821734252665
3text2112582505871685687295686421
4text32202994424886778797459392
5text43428829507898369354639925
6text5770386981548326170916129621
7text648856265827638009586361
8text767366467775405972869317333
9text8979741772552646182485405465
10text9473782335928548918627105804
11text10850206147967327278393528141
12text1195838322926823085415632842
Sheet1
Cell Formulas
RangeFormula
L2=SUMPRODUCT(INDEX($B$2:$J$12,MATCH("Text4",$A$2:$A$12,0),0),--($B$1:$J$1>=DATE(2017,10,2)),--($B$1:$J$1<=DATE(2017,10,6)))
 
Upvote 0
Hi, assuming the values in row 1 are dates with special formatting and the values in column A are unique - you could try this:


Excel 2013/2016
ABCDEFGHIJKL
101-Oct02-Oct03-Oct04-Oct05-Oct06-Oct07-Oct08-Oct09-Oct
2text19919833778399941821734252665
3text2112582505871685687295686421
4text32202994424886778797459392
5text43428829507898369354639925
6text5770386981548326170916129621
7text648856265827638009586361
8text767366467775405972869317333
9text8979741772552646182485405465
10text9473782335928548918627105804
11text10850206147967327278393528141
12text1195838322926823085415632842
Sheet1
Cell Formulas
RangeFormula
L2=SUMPRODUCT(INDEX($B$2:$J$12,MATCH("Text4",$A$2:$A$12,0),0),--($B$1:$J$1>=DATE(2017,10,2)),--($B$1:$J$1<=DATE(2017,10,6)))

It gives me "0" back. :(
 
Upvote 0
It seems Text4 occur more than once in column A.

If so, control+shift+enter, not just enter:

=SUM(IF($A$2:$A$12="Text4",IF($B$1:$J$1>=DATE(2017,10,2),IF($B$1:$J$1<=DATE(2017,10,6),$B$2:$J$12))))

Note that B1:J1 must house true dates, where, e.g., ISNUMBER(B1) yields TRUE.
 
Upvote 0
It seems Text4 occur more than once in column A.

If so, control+shift+enter, not just enter:

=SUM(IF($A$2:$A$12="Text4",IF($B$1:$J$1>=DATE(2017,10,2),IF($B$1:$J$1<=DATE(2017,10,6),$B$2:$J$12))))

Note that B1:J1 must house true dates, where, e.g., ISNUMBER(B1) yields TRUE.

Great, thank you, it works fine! :)
 
Upvote 0

Forum statistics

Threads
1,215,981
Messages
6,128,089
Members
449,418
Latest member
arm56

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