# SUMIf Formula

#### DCT01

##### New Member
I would like to write a formula that sums cells in column A if there is data in both column B and column C - please help.

### Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

#### Aladin Akyurek

##### MrExcel MVP
=SUMPRODUCT(\$A\$2:\$A\$100,--(\$B\$2:\$B\$100<>""),--(\$C\$2:\$C\$100<>""))

#### PATSYS

##### Well-known Member
Assuming your data is from A1:C10

=Sum(if(B1:B10<>"",if(C1:C10<>"",A1:A10)))

confirm with CTRL+SHIFT+ENTER

*REVISED*

#### DCT01

##### New Member
Thank you - Aladin's formula worked. Patsys I could not get your to work.

#### PATSYS

##### Well-known Member
It is an array formula that should give you results exactly just like that of Aladin's. Remember not just to press ENTER, you should press CTRL+SHIFT+ENTER.

Replies
2
Views
308
Replies
1
Views
162
Replies
8
Views
693
Replies
9
Views
1K
Replies
3
Views
129

Threads
1,172,168
Messages
5,879,432
Members
433,430
Latest member
lukerjordan7

### 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

### 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