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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,223,723
Messages
6,174,123
Members
452,546
Latest member
Rafafa

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