Question on Sumif

rices

New Member
Joined
Aug 23, 2006
Messages
36
I want to sum bsed on the range of data

Example

Data
75
46
98
125
89
69
50
79
I want to sum the data if is beween 60 and 89

I tried sum if but i could get it to work

Any ideas?

Thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try:

=SUMIF(A:A,"<89")-SUMIF(A:A,"<60")
 
Upvote 0
I want to sum bsed on the range of data

Example

Data
75
46
98
125
89
69
50
79
I want to sum the data if is beween 60 and 89

I tried sum if but i could get it to work

Any ideas?

Thanks
Try this...

With your data in the range A2:A9...

Use cells to hold the criteria:
  • C2 = 60
  • D2 = 89
=SUMIF(A2:A9,">="&C2)-SUMIF(A2:A9,">"&D2)
 
Upvote 0
i forgot part becaue i hit enter too fast

I want to sum data on another column based on the data in the one column

Here is my data:

34 80
39 106
35 30
62 79
55 66
53 28
50 105
16 64
46 42
17 107

I want to sum column a based on the whether column b is between 60 and 89
 
Upvote 0
i forgot part becaue i hit enter too fast

I want to sum data on another column based on the data in the one column

Here is my data:

34 80
39 106
35 30
62 79
55 66
53 28
50 105
16 64
46 42
17 107

I want to sum column a based on the whether column b is between 60 and 89
Try it like this...

=SUMIF(B2:B11,">="&C2,A2:A11)-SUMIF(B2:B11,">"&D2,A2:A11)
 
Upvote 0
i forgot part becaue i hit enter too fast

I want to sum data on another column based on the data in the one column

Here is my data:

34 80
39 106
35 30
62 79
55 66
53 28
50 105
16 64
46 42
17 107

I want to sum column a based on the whether column b is between 60 and 89

Either...

Control+shift+enter, no just enter:

=SUM(IF($A$2:$A$11>=60,IF($A$2:$A$11<=89,$B$2:$B$11)))

Or...

Just enter:

=SUMPRODUCT($B$2:$B$11,--($A$2:$A$11>=60),--($A$2:$A$11<=89))

Or...

Just enter if on Excel 2007 or later:

=SUMIFS($B$2:$B$11,$A$2:$A$11,">=60",$A$2:$A$11,"<=89")
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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