ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   multiple ranges & criteria for SUM-IF challenge (https://www.excelbanter.com/excel-worksheet-functions/147918-multiple-ranges-criteria-sum-if-challenge.html)

akumudzi

multiple ranges & criteria for SUM-IF challenge
 
Not sure if this is the function for the job but I need to have SUMIF
compare values in multiple ranges/columns and add if the values match
in those columns
e.g.

if the
value in range A5:A10 = value in P5 and
value in range B5:B10 = value in Q5 and
value in range C5:C10 = value in R4 and
value in range D5:D10 = value in S5 and
value in range E5:E10 = value in T5
sum range being Z5:Z10

I hope this makes sense. Can clarify further on request.

Thanks


T. Valko

multiple ranges & criteria for SUM-IF challenge
 
Try this:

=SUMPRODUCT(--(A5:A10=P5),--(B5:B10=Q5),--(C5:C10=R4),--(D5:D10=S5),--(E5:E10=T5),Z5:Z10)

Biff

"akumudzi" wrote in message
oups.com...
Not sure if this is the function for the job but I need to have SUMIF
compare values in multiple ranges/columns and add if the values match
in those columns
e.g.

if the
value in range A5:A10 = value in P5 and
value in range B5:B10 = value in Q5 and
value in range C5:C10 = value in R4 and
value in range D5:D10 = value in S5 and
value in range E5:E10 = value in T5
sum range being Z5:Z10

I hope this makes sense. Can clarify further on request.

Thanks





All times are GMT +1. The time now is 10:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com