Sumproduct returning N/A

miami2k

Board Regular
Joined
Nov 1, 2017
Messages
58
Dear All,
I have this formula that works based on two sheets:

=SUMPRODUCT((Fatt!$G$2:$G$7338=Contr!G16)*(Fatt!$E$2:$E$7338=Contr!E16))

Columns E are dates Columns G are an amount.

If I change the formula using another field of the 2 tables the result is N/A:

=SUMPRODUCT((Fatt!$U$2:$U$7338=Contr!B17)*(Fatt!$E$2:$E$7338=Contr!E17))

In this case column U and B are both numbers. I've tried to change the format and other things but for some reason on this fields it's not returning the result.

Thank you!


miami2k
 

Attachments

  • Screenshot 2023-08-21 191648.png
    Screenshot 2023-08-21 191648.png
    9.2 KB · Views: 6
  • Screenshot 2023-08-21 191801.png
    Screenshot 2023-08-21 191801.png
    11 KB · Views: 6

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Check the range, Fatt!$U$2:$U$7338 for errors. There is no reason for the formula to return N/A other than existing errors in that range.

The other option is to use COUNTIFS (which will ignore the #N/A error as an alternative to SUMPRODUCT.
 
Upvote 0

Forum statistics

Threads
1,215,095
Messages
6,123,073
Members
449,093
Latest member
ripvw

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