CountsIFs Between Range of Values, SUM Adjacent Column

revocats10

New Member
Joined
Dec 17, 2019
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
I need a formula to lookup / COUNTIF the values in Column A, based on a condition
of being between a range greater than 0 and less than 50. Then SUM the values in the adjacent Column (Column B), for only the rows in Column A that match the criteria.
I tried doing like the formula below, but i can't get it to work
>==COUNTIFS(A:A,">0", A:A,"<50"),SUM(B:B). In the attached image of the spreadsheet, the correct total would = 32
I can do this manually but this is just an example, I need to work with a much larger list and also update the criteria range and then repeat for multiple other spreadsheets
Thanks for any assistance.
 

Attachments

  • Excel_CountIFS.JPG
    Excel_CountIFS.JPG
    21.4 KB · Views: 10

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
How about
+Fluff New.xlsm
ABCDE
1
2015Min value032
313Max value50
442
5105
6206
73511
8485
9506
10604
117510
12853
Main
Cell Formulas
RangeFormula
E2E2=SUMPRODUCT((A2:A12>D2)*(A2:A12<D3),B2:B12)
 
Upvote 0
Thanks for the
Why not just use sumifs?

=SUMIFS(B:B,A:A,">0",A:A,"<50")
This worked. I don't experience doing compound formulas like this as I usually will do things in stages so I really appreciate your help. thanks very much!
 
Upvote 0
How about
+Fluff New.xlsm
ABCDE
1
2015Min value032
313Max value50
442
5105
6206
73511
8485
9506
10604
117510
12853
Main
Cell Formulas
RangeFormula
E2E2=SUMPRODUCT((A2:A12>D2)*(A2:A12<D3),B2:B12)
this gave me a value = 0. The second post worked. Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

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