# Excel formula IF statement with SUMIF statement HELP

#### andycreber

##### Board Regular
Hi there, I am trying to write a formula that is a IF statement with 2 different SUMIF criteria based on the true of false result but the false default is overriding the true.

[FONT=Arial, Helvetica, sans-serif]my formula that I am using but it does not wotk the way I want it too:

in cell A63 I have text = abc company

in cell b63 i have text = xyz company

column C i have text various text that could be abc company or xyz company

I want to sum if a63 = b63 then add up the values in column P for that name in a63 or add up the value in column P if the name in b63 is found in column C

But i don't want dupplicate figures if the names both match.

Is there another way to write this formula?

### Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

#### RasGhul

##### Well-known Member
Hi Andy,

If the Company in A63 appears in column C, A63 wins & sumif column \$p:\$p against A63, If FALSE sumif against B63?

#### andycreber

##### Board Regular
Hi,

That worked perfectly, thanks very much

You're welcome

Replies
8
Views
113
Replies
5
Views
135
Replies
1
Views
50
Replies
5
Views
341
Replies
4
Views
135

### Forum statistics

1,127,407
Messages
5,624,587
Members
416,036
Latest member
eloisa manzanarez

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

### Which adblocker are you using?

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

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