Sumproduct with Table Rows doesn't work

Nicha

New Member
Joined
Feb 10, 2023
Messages
48
Office Version
  1. 2016
Platform
  1. Windows
I have a table wher I'm trying to use Sumproduct by row, and an Fixed Range out of the Table Range. The Table Range is [B4:I5] and I need to use SumProduct on [H] Column that must consider the current Row and the Price Values, on Fixed Range, [C3:G3], to calculate the Total on Column [H].

The problem is, when I inser values in the next row - Number 6 - The SumProduct Returns #Value. Can Anyone help please?

That Formula, must work for every new row, inserted in that table.

PEDIDOS_AGUAS.xlsx
BCDEFGHI
2Encomenda : 100001
3Price : 2,40 €2,80 €5,20 €2,80 €4,00 €
4NomeFonte Fraga/6Caramulo/6Caramulo/24Penacova/6Monchique/6Total €Pago
5Leopoldo Fernandes12,4
Sheet1
Cell Formulas
RangeFormula
C2C2=SUBTOTAL(9,Sheet1!$C$5:$C$5)
D2D2=SUBTOTAL(9,Sheet1!$D$5:$D$5)
E2E2=SUBTOTAL(9,Sheet1!$E$5:$E$5)
F2F2=SUBTOTAL(9,Sheet1!$F$5:$F$5)
G2G2=SUBTOTAL(9,Sheet1!$G$5:$G$5)
H2H2=SUM(C2:G2)
H5H5=SUMPRODUCT(Sheet1!$C5:$G5,$C$3:$G$3)



I have one more question. It's possible to put on column [I5] a Check Mark that could be Filtered, indicating that a person has already Payed?
When Cell is empty - means that the Total has not being payed; When the Cell has the CheckMArk - means that the Parson has already payed.


The Idea, as with the Sumproduct, is that when we insert values in a new row Both the Sumproduct and the CheckMark shuld be possible to insert.

Thank's in advance
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
1727172580519.png



When I insert number 3 on Row 6 the Sumproduct gives error, and the formula shows [=SUMPRODUCT(Sheet1!$C6:$G7;$C$3:$G$3)] instead of[=SUMPRODUCT(Sheet1!$C6:$G6;$C$3:$G$3)]. Sheet1!$C6:$G7 Shoul be Sheet1!$C6:$G6
 
Upvote 0
I apologize, I wrote something wrong. Is that what you wanted?
Book1.xlsm
BCDEFGHI
2Encomenda : 100001
3Price : 2,40 €2,80 €5,20 €2,80 €4,00 €
4NomeFonte Fraga/6Caramulo/6Caramulo/24Penacova/6Monchique/6Total €Pago
5Leopoldo Fernandes12,4ü
6Test0 
Sheet16
Cell Formulas
RangeFormula
C2C2=SUBTOTAL(9,Sheet16!$C$5:$C$6)
D2D2=SUBTOTAL(9,Sheet16!$D$5:$D$6)
E2E2=SUBTOTAL(9,Sheet16!$E$5:$E$6)
F2F2=SUBTOTAL(9,Sheet16!$F$5:$F$6)
G2G2=SUBTOTAL(9,Sheet16!$G$5:$G$6)
H2H2=SUM(C2:G2)
H5:H6H5=SUMPRODUCT(Sheet16!$C5:$G5,$C$3:$G$3)
I5:I6I5=IF([@[Total €]]>0,"ü",IF([@[Total €]]=0,""))

For the Pago column cells, select the Wingdings font to draw the check mark.
 
Upvote 0
Hi!
Replace $C6:$G6 with C$6:G$6
Thank you @*Sergius.

Using your sugestion on formula (tables first row [H5], when I inser a valur on a new row the formula end's like the image below.

1727177255662.png


Price is the Name I gave to the Price Range.

That doesn't work too. Is there any solution for a table? Or the solution is to convert table to excel range and use Autofill for the formula?

Many thank's to you.
 
Upvote 0
Did you see my post #4? It's fixed and shows what you wanted. Or is there something wrong? Let me know.
 
Upvote 0
Did you see my post #4? It's fixed and shows what you wanted. Or is there something wrong? Let me know.
The Problem is that initialy we only have row (5) with the formula [=SUMPRODUCT(Sheet16!$C5:$G5,$C$3:$G$3)] on H5. But if wu enter data on row (6)
the tableRange [H6] end up with the Formula [=SUMPRODUCT(Sheet16!$C5:$G7,$C$3:$G$3)], and the Result : #Value.
I don't understand how excel don't assume on [H6] the formula [=SUMPRODUCT(Sheet16!$C6:$G6,$C$3:$G$3)].

Thank you @*Sergius once more.
 
Upvote 0
Replace Sheet16 with the name of your sheet.
Hi @Sergius

Thank you for your help.
I can't make it work. I solved the problem Converting the Table to Range, Applyed the formula autofilling to 5 rows, and then converted back to table.

When I initially create the formula - as a table - the formula was : [=SUMPRODUCT(Table1[[Fonte Fraga/6]:[Monchique/6]];Price)], and when insert new values in table that doesn't worked too.

Thank you once more.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

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