SUMIF that only works if the cell it's counting is a typed number and not a formula

Tristram_ZX81

New Member
Joined
Jun 22, 2021
Messages
45
Office Version
  1. 365
Platform
  1. Windows
I'm using Microsoft 365 MSO. I have a SUMIF that only works if the cell it's counting is a number I've typed in and not the result of a formula.

So Sheet 2 has this formula

=SUMIFS('Sheet1'!A6:A1000, 'Sheet1'!G6:G1000, ">=08:00:00", 'Sheet1'!G6:G1000, "<=11:00:00", 'Sheet1'!D6:D1000, "Thursday*")

The cells in A6:A1000 display the numbers resulting from this formula, applying a value depending on phrases.

=IF(ISNUMBER(SEARCH("apples",O17)),".1",IF(ISNUMBER(SEARCH("oranges",O17)),".1",IF(ISNUMBER(SEARCH("bananas",I17)),"0",IF(ISNUMBER(SEARCH("kiwis",I17)),"1",IF(ISNUMBER(SEARCH("pears",I17)),"1",IF(ISNUMBER(SEARCH("satsumas",I17)),".5",""))))))

For reasons I can't fathom, the SUMIF was working earlier. But now it just shows 0.0 or #VALUE!. Any ideas?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Remove the quotes from your numbers, otherwise they are text & not numbers.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,515
Messages
6,125,279
Members
449,220
Latest member
Excel Master

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