Using Sumproduct on blank cells

mjohnston0209

Board Regular
Joined
Nov 6, 2017
Messages
55
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: 59

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Ok, try it like
Excel Formula:
=SUMPRODUCT($C$2:$E$10,($C$1:$E$1=$A14)*($A$2:$A$10=B$13))
 
Upvote 0
Solution
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.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,953
Members
448,535
Latest member
alrossman

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