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.
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 | ||
---|---|---|
Range | Formula | |
F25:O25 | F25 | =$P$25 |
E26:F42,H26:O42 | F26 | =IF($D26="","",IF(F$25=$T$53,F88/$D26,IF(F$25=$T$52,F88,"CHECK"))) |
G26:G42 | G26 | =IFERROR(IF($D26="","",IF(G$25=$T$53,G88/$B$18,IF(G$25=$T$52,G88,"CHECK"))),0) |
F43 | F43 | =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:O43 | G43 | =SUM(G26:G42) |
B26 | B26 | =B21 |
C26 | C26 | =EOMONTH(B26-1,D26) |
B27:B42 | B27 | =IF(D27<1,"",EDATE(B26,D26)) |
C27:C42 | C27 | =IF(B27="","",EOMONTH(B27-1,D27)) |
A26:A42 | A26 | =ROUNDUP(SUM($D$26:D26)/12,0) |
A43 | A43 | =IF($P$25=$T$52, "Total Costs",IF($P$25=$T$53,"Monthly Average Costs", "CHECK")) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A26:O42 | Expression | =$D26=0 | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
E25:P25 | List | =$T$52:$T$55 |