Sumifs not working

TWTHOMAS

Board Regular
Joined
Mar 26, 2010
Messages
96
Will sumifs work with a formula result?

I have a sheet this formula works perfectly on.

=SUMIFS(Schedule!C:H,Schedule!B:G,"Wildcats")

Columns c and h are both simply numbers.

However I have these two formulas in columns e and j ....

Column E
=IF(C3>H3,"3",IF(C3<H3,"0",IF(C3=H3,"1")))

Column J
=IF(H3>C3,"3",IF(H3<C3,"0",IF(H3=C3,"1")))

And this formula will only result in zero regardless of what I have tried.

=SUMIFS(Schedule!E:J,Schedule!B:G,"Wildcats")

If I input a number into either column and overwrite the formula, I get that sum. But although the formula results in a number, the sumifs will not work.

I've tried a simple =c2 in a new column and referenced that cell in the sumifs but still get zero as the result. I checked the format of the cells and they are definitely numbers. I've checked for invisible characters, and there appear to be none.

Help?
 

Attachments

  • 20230420_140831.jpg
    20230420_140831.jpg
    106 KB · Views: 8
  • 20230420_140819.jpg
    20230420_140819.jpg
    144.6 KB · Views: 8

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Note that when writing formulas, if you want numeric results, you should NOT enclose the number to return in double-quotes.
Double-quotes are used to denote text entries, not numeric ones.

So try changing your formulas in column E and J to:
Excel Formula:
=IF(C3>H3,3,IF(C3<H3,0,IF(C3=H3,1)))
and
Excel Formula:
=IF(H3>C3,3,IF(H3<C3,0,IF(H3=C3,1)))
 
Upvote 0
You need to get rid of the quotes surrounding the numbers in the columns E & J, otherwise they are text
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,215,222
Messages
6,123,717
Members
449,116
Latest member
Aaagu

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