Sumproduct with blank cells Returning #Value. Help w/ excel attached

hoops3335

New Member
Joined
Feb 3, 2016
Messages
11
Hi,

I'm trying to take the monthly average of a table by using sum product, and dividing by total months. However, the sumproduct is returning a #VALUE error. Attached is the sheet.

Cell Formulas
RangeFormula
F25:O25F25=$P$25
E26:F42,H26:O42F26=IF($D26="","",IF(F$25=$T$53,F88/$D26,IF(F$25=$T$52,F88,"CHECK")))
G26:G42G26=IFERROR(IF($D26="","",IF(G$25=$T$53,G88/$B$18,IF(G$25=$T$52,G88,"CHECK"))),0)
F43F43=IF($P$25=$T$52,SUM(F26:F42),IF($P$25=$T$53,SUMPRODUCT(NOT(ISBLANK($D26:$D42)),$D26:$D42,F26:F43)/$D$43,"CHECK"))
D43,G43:O43G43=SUM(G26:G42)
B26B26=B21
C26C26=EOMONTH(B26-1,D26)
B27:B42B27=IF(D27<1,"",EDATE(B26,D26))
C27:C42C27=IF(B27="","",EOMONTH(B27-1,D27))
A26:A42A26=ROUNDUP(SUM($D$26:D26)/12,0)
A43A43=IF($P$25=$T$52, "Total Costs",IF($P$25=$T$53,"Monthly Average Costs", "CHECK"))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A26:O42Expression=$D26=0textNO
Cells with Data Validation
CellAllowCriteria
E25:P25List=$T$52:$T$55
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
So essentially taking SumProduct of the $ amount in column F with the months in column D, divided by the total months in cell d43. Thus, returning the monthly average costs. I would then extrapolate the equation for columns G through O, holding constant the Column D and Cell D43 portions of the equation.
 
Upvote 0
You have a circular reference in F43
 
Upvote 0
Yikes had to slap my head on that one. I'll blame it on lack of sleep... All work, no play makes Jack a dull boy. Thanks, and sorry for being an idiot - I should have caught that one.
 
Upvote 0
Not a problem, we've all been there. Sometimes it just needs an extra set of ?
 
Upvote 0

Forum statistics

Threads
1,215,606
Messages
6,125,805
Members
449,262
Latest member
hideto94

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