Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple SUMIF

Status
Not open for further replies.

mar050703

Technical User
Aug 3, 2007
99
GB
Hi Guys

I have the following in Row 2 Column B:M April - March
Column A3:A68 are countries. What I want to do as add the value for each country dependant on a selected Month say in A1, and the selected Country is B1, in C1, I would have the value for the relevant Month and Country.

Please can you help?
 




Hi,

Please keep in mind that we have ONLY your description and cannot see what's in your head.

"add the value for each country " What value?

I'm assuming that you have values for each country by month.
[tt]
C1: =sumproduct({B2:M2=A1}*(A3:A68=B1)*(B3:M68))
[/tt]




Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
Sorry ... I misunderstood the question.

Go with Skip's solution with the following edited version ...
Code:
=SUMPRODUCT((B2:M2=A1)*(A3:A68=B1)*(B3:M68))


Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top