# Sum IF problem

#### Matt_Thompson

##### Board Regular
Hi,

I'm really sorry if this is simple but it has had me stumpeed now for the best part of 2 hours.

I have a SUMIF formula =(SUMIF(STI!\$C:\$C,\$C15&"NAT ACCS",STI!\$S:\$S).
The data in STI cannot be manipulated as it feeds several other spreadsheets but what I have been asked to do is subtract 2million from the total that the SUMIF returns.

I tried =((SUMIF(STI!\$C:\$C,\$C15&"NAT ACCS",STI!\$S:\$S)-2) which sisn't work and I've tried a few other variations on this but nothing seems to work.

If anyone can help I'd be really greatful.

Thanks,

Matt

### Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Matt

In the formula you posted you have two brackets after the equals sign ie:

=(( Sumif...

when in the given formula you only need 1 - is this just a typo? Your formula should work otherwise.

Best regards

Richard

Sorry I was being stupid!

And also the spreadsheet shanged itself from auto calculate to manual calculate just to confuse me even more!

Thanks,

Matt

Hi, Matt,

your formula works for me (without some brackets)
=SUMIF(STI!\$C:\$C,\$C15 & "NAT ACCS",STI!\$S:\$S)
with ThisText in C15
and this table
C                D  S
2 ThisTextNAT ACCS    1
3 ThisTextNAT ACCS    2
4 ThisText other      3
5 ThisText            4
6 other               5
7 other               6
8 other               7
9 ThisTextNAT ACCS    100

STI

[Table-It] version 05 by Erik Van Geit

the result would be 103

kind regards,
Erik

EDIT: seems like my post took its time to come trough

Replies
0
Views
240
Replies
3
Views
244
Replies
0
Views
134
Replies
3
Views
517
Replies
0
Views
218

1,203,465
Messages
6,055,574
Members
444,799
Latest member
CraigCrowhurst

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