Sum IF problem

Matt_Thompson

Board Regular
Joined
Apr 5, 2004
Messages
101
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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
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
 
Upvote 0
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
 
Upvote 0
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 :huh:
 
Upvote 0

Forum statistics

Threads
1,226,222
Messages
6,189,706
Members
453,566
Latest member
ariestattle

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
Back
Top