Using Sumproduct on blank cells

mjohnston0209

New Member
Joined
Nov 6, 2017
Messages
46
I am trying to pull information from one file to another that will be used in a report. In the data source file, there is a cost category (i.e. materials, subcontractor) which is further broken down into a specific vendor and how much each spent on a monthly basis. In the file used for the report, I just need to know how much was spent on materials and subcontractors on a monthly basis. The desired format is in the attached image.

The Sumproduct would normally work, however, for every blank cell in the data source file there is a formula that enters "" to make the cell appear blank. This is creating an error when you reference all the cells. I could reference the specific cells with values, but I am constantly adding vendors, which would require me to modify the formula. Is Sumproduct the correct formula to use here, or should I use Index Match which I have had no luck with as well.
 

Attachments

  • Sumproduct Format.PNG
    Sumproduct Format.PNG
    15.6 KB · Views: 4

Some videos you may like

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,259
Office Version
  1. 365
Platform
  1. Windows
Ok, try it like
Excel Formula:
=SUMPRODUCT($C$2:$E$10,($C$1:$E$1=$A14)*($A$2:$A$10=B$13))
 
Solution

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,259
Office Version
  1. 365
Platform
  1. Windows
It's the way that sumproduct works, with your original formula it's multiplying the "" which gives the #VALUE! error, whereas the other formula does not multiply the C2:E10 range.
 

mjohnston0209

New Member
Joined
Nov 6, 2017
Messages
46
It's the way that sumproduct works, with your original formula it's multiplying the "" which gives the #VALUE! error, whereas the other formula does not multiply the C2:E10 range.
Thanks! I never realized that before.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,259
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,231
Messages
5,600,427
Members
414,384
Latest member
joehalks

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
Top