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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use SumIf for multiple columns of criteria 2

Status
Not open for further replies.

lcf14

Technical User
Dec 11, 2006
11
0
0
US
I would like to use a formula to search criteria in multiple columns. If the data in both columns matches the criteria, different set of criteria for each column, then sum figures in a another column. Example, if Obj=Bal and Tax=Non then sum "totals":

Total OBJ Tax
-------------- --- ---
20974625.09 Bal Tax
12749493.45 Bal Tax
11922405.7 Fix Tax
10393031.33 Bal Non
7689070.12 Fix Tax
6798423.8 Bal Non

Thanks for your help
 



Hi,

Using named ranges per your example...
[tt]
=SUMPRODUCT((Total)*(OBJ="Bal")*(Tax="Tax"))
[/tt]


Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
You could also use an array formula. Assume the data table is in A1 to C6.

=SUM(IF(B1:B6=OBJ,IF(C1:C6=Tax,A1:A6,""),""))

Enter the formula and press ctrl+shift+enter to get:

{=SUM(IF(B1:B6=OBJ,IF(C1:C6=Tax,A1:A6,""),""))}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top