SumIF generates a #VALUE!

ClausSkeel

New Member
Joined
Jun 3, 2022
Messages
11
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all.

I got a sum if function, that looks like this:
Excel Formula:
=SUMIF('(PATH)'!$F:$F;">"&(EOMONTH(TODAY(); -1)+1);'(PATH)'!$H:$H)/1000

But it generates an error, because of the closed workbook.
Can somebody help me create a SUMPRODUCT or SUM(IF - function?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
See if this works for you.
Excel Formula:
=SUM(IF('(Path)'!$F:$F>(EOMONTH(TODAY(),-1)+1);'(Path)'!$H:$H/1000;0))

PS: Based on your formula are you sure you don't want >= (instead of >) ?
Excluding the 1st of the month seems unlikely.
 
Upvote 0
See if this works for you.
Excel Formula:
=SUM(IF('(Path)'!$F:$F>(EOMONTH(TODAY(),-1)+1);'(Path)'!$H:$H/1000;0))

PS: Based on your formula are you sure you don't want >= (instead of >) ?
Excluding the 1st of the month seems unlikely.
Sure of course Alex, sorry :)
 
Upvote 0
Value is an issue with the data not the formula.
Do you have any text in column H of the closed workbook ?
 
Upvote 0
Since you are using whole column referencing I imagine you have a Text heading it's picking up.
Try this
Excel Formula:
=SUM(IF(('(Path)'!$F:$F>(EOMONTH(TODAY();-1)+1))*ISNUMBER('(Path)'!$H:$H);'(Path)'!$H:$H/1000;0))
 
Upvote 0
Solution
Since you are using whole column referencing I imagine you have a Text heading it's picking up.
Try this
Excel Formula:
=SUM(IF(('(Path)'!$F:$F>(EOMONTH(TODAY();-1)+1))*ISNUMBER('(Path)'!$H:$H);'(Path)'!$H:$H/1000;0))
It works perfect! - many thanks :D
 
Upvote 0

Forum statistics

Threads
1,216,759
Messages
6,132,558
Members
449,735
Latest member
Gary_M

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