Two Sum IF Formulas in one Statement

merrille

New Member
Joined
Aug 9, 2005
Messages
20
Hello Everyone,


I am looking to do 2 sum if formulas in one statement can anyone tell me how to get the second half done? I will be using the same data sheet columns the second formula would look like this both work now seperately but I need them both at the same time.



First Statement

=SUMIF(Data!H:H,"ALASKAN",Data!D:D)

Second Statement

=SUMIF(Data!G:G,"RATEING",Data!D:D)


Thanks

merrile
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

indiantrix

Well-known Member
Joined
Oct 17, 2002
Messages
943
If your intent is to sum column D whenever column H is "Alaskan" AND column G is "Rateing" then try the following array entered formula:
=SUM((H:H="Alaskan")*(G:G="Rateing")*(D:D))
and enter the formula with Control+Shift+ENTER to make it function as an array formula.
Others likely will offer sumproduct solutions. HTH. Larry
 

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,942
Office Version
  1. 365
Platform
  1. Windows
Try...

=SUMPRODUCT(--(Data!$G$2:$G$100="RATEING"),--(Data!$H$2:$H$100="ALASKAN"),Data!$D$2:$D$100)

Adjust the range accordingly. Note that SUMPRODUCT does not accept whole column references.

Hope this helps!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,322
Messages
5,769,448
Members
425,547
Latest member
Iano

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
Top