SUMIFS with multiple criteria on different rows

commonproblems

New Member
Joined
Apr 25, 2018
Messages
7
Hi everyone,

i need help summing the population of birds whose age is greater than 60 weeks, on a row by row basis.

The data set is below:


ABCDEFGHIJKL
1PopulationAgeEggsFeedPopulationAgeEggsFeedPopulationAgeEggsFeed
2200076110100200061100100200050100100
3199077120100199062100100199051100100
4198078130100198063100100198051100100

<tbody>
</tbody>


So the answer for Row 1 is 4,000. this is a simplistic data set. The actual data set is very long.

thank you for you help!


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

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi everyone,

i need help summing the population of birds whose age is greater than 60 weeks, on a row by row basis.

The data set is below:


ABCDEFGHIJKL
1PopulationAgeEggsFeedPopulationAgeEggsFeedPopulationAgeEggsFeed
2200076110100200061100100200050100100
3199077120100199062100100199051100100
4198078130100198063100100198051100100

<tbody>
</tbody>


So the answer for Row 1 is 4,000. this is a simplistic data set. The actual data set is very long.

thank you for you help!


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


Try this formula: =sumproduct(--(B2:J2>60), A2:I2)
 
Upvote 0
Hi Ahennema,

thank you for your reply.

that doesn't solve the problem. it returns a value of 4,557, which is the sum of A2 to H2.
 
Upvote 0
Hi StephenCrump,

Thank you as well for the reply.

When I've extrapolated the formula to the large data set, this didn't solve the issue either - sorry.
 
Upvote 0
When I've extrapolated the formula to the large data set, this didn't solve the issue either - sorry.

Not a problem for me.

But if you want further assistance, perhaps you'd like to give us more information about your data set? We have nothing to go on except for what you've posted.
 
Upvote 0
Hi StephenCrump

Here is a snip of the data:

https://www.dropbox.com/s/yfh4jrqqicln5qb/Capture.PNG?dl=0

I need to sum the population of the flocks aged more than 60 weeks old on a week by week basis. For the first week, Row 25, the answer should be the population of flock 49 (2,151) and the population of flock 50 (2,182), total = 4,333.

the answer to the second week, row 26, is flock 49 (2,147), flock 50 (2,178) and flock 51 (2,213) = 6,538


thank you
 
Upvote 0
First row: =SUMIFS(B25:R25,C$24:S$24,"Age (Wks)",C25:S25,">60")

Note this requires an exact match on all the headers, so probably slightly safer to use:

=SUMPRODUCT(B25:R25,--(TRIM(C$24:S$24)="Age (Wks)"),--(C25:S25>60))
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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