# SUMIF Formula not working

#### RIP2632

##### New Member
I have a SUMIF formula that is not bringing back the correct data. Here is one of the formulas, =SUMIF(\$C\$2:\$T\$43,"704",N\$2:N\$43). The range is the same for all of the formulas but the criteria changes as well as the sum range. There are 4 columns (sum ranges) that I am trying to sum. The first one worked correctly and the last one worked correctly, but the two in the middle do not bring back the correct data.

Any help would be appreciated.

Cameron

### Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
need more info can you post a sample?

=SUMIF(\$C\$2:\$T\$43,"704",N\$2:N\$43)

Please explain in words what you would like this formula to return.

With SUMIF the sum range must be the same size as the criteria range. If you don't specify it that way then Excel forces it anyway. Your formula is the same as

=SUMIF(\$C\$2:\$T\$43,"704",N\$2:AE\$43)

i.e. if only T43 in your criteria range is equal to "704" then it'll return the value from AE43.

I would like the formula to retrun the sum of all cells in column "N" that have "704" in the same cell in column "C". I have double checked the calculation and it grabbing extra data as it is not the correct figure.

=SUMIF(\$C\$2:\$C\$43,"704",N\$2:N\$43)

If you have numbers, not text, in column C then you shouldn't use the quotes

it does not change the outcome of this particular formula.

Have you tried without the quotes?

=SUMIF(\$C\$2:\$C\$43,704,N\$2:N\$43)

What result do you get, zero, incorrect sum or an error?

I get the same as with the quotes, I have also referenced a cell and still the same answer.

Hi:

You might try verifying that the items in column N are numbers and not text.

plettieri

Replies
2
Views
291
Replies
2
Views
290
Replies
7
Views
237
Replies
1
Views
318
Replies
6
Views
510

1,221,510
Messages
6,160,230
Members
451,632
Latest member
purpleflower26

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

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