Row Total Incorrect Using SumX

JNM

New Member
Joined
Jan 24, 2012
Messages
35
I have a simple table and am using sumx, but the row total is incorrect.

The measure is: =sumx(daily,[Gallons]*[NACVal]/[Acres])/[rows]

The output looks like this:
[TABLE="width: 613"]
<colgroup><col><col span="2"><col><col span="5"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 592"]
<colgroup><col span="2"><col><col span="5"><col><col></colgroup><tbody>[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]12[/TD]
[TD]Grand Total[/TD]
[TD]Should be:[/TD]
[/TR]
[TR]
[TD="align: right"]4.807[/TD]
[TD="align: right"]5.566[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]2.691[/TD]
[TD="align: right"]3.266[/TD]
[TD="align: right"]3.46[/TD]
[TD="align: right"]16.33[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]2.691[/TD]
[TD] [/TD]
[TD="align: right"]2.69[/TD]
[TD="align: right"]2.69[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]3.634[/TD]
[TD="align: right"]5.382[/TD]
[TD="align: right"]4.416[/TD]
[TD="align: right"]3.841[/TD]
[TD="align: right"]2.691[/TD]
[TD="align: right"]3.266[/TD]
[TD="align: right"]4.45[/TD]
[TD="align: right"]23.23[/TD]
[/TR]
[TR]
[TD="align: right"]4.807[/TD]
[TD="align: right"]5.566[/TD]
[TD="align: right"]3.634[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]4.74[/TD]
[TD="align: right"]14.00[/TD]
[/TR]
[TR]
[TD="align: right"]4.807[/TD]
[TD="align: right"]5.566[/TD]
[TD="align: right"]3.634[/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]3.841[/TD]
[TD="align: right"]2.691[/TD]
[TD="align: right"]3.266[/TD]
[TD="align: right"]4.27[/TD]
[TD="align: right"]23.80[/TD]
[/TR]
</tbody>[/TABLE]



[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 613"]
<colgroup><col><col span="2"><col><col span="5"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
would you be able to provide screenshot with headers? Perhaps try using brackets, all of your data is in the same row/table, no duplicate rows?
 
Upvote 0
ABCDEFG
DateFieldGridMonthValNACValGalAcres
Ourada, Ken-E
Ourada, Ken-E
Ourada, Ken-E
Ourada, Ken-E
Ourada, Ken-E
Ourada, Ken-E
Ourada, Ken-E
Ourada, Ken-E
Ourada, Ken-A
Ourada, Ken-I
Ourada, Ken-A
Ourada, Ken-E
Ourada, Ken-E
Ourada, Ken-I
Ourada, Ken-I
Ourada, Ken-I
Ourada, Ken-E
Ourada, Ken-I
Ourada, Ken-I
Ourada, Ken-E
Ourada, Ken-I
Ourada, Ken-I
Ourada, Ken-I
Ourada, Ken-E
Ourada, Ken-I
Ourada, Ken-I
Ourada, Ken-E
Ourada, Ken-E

<tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]1/10/2019[/TD]

[TD="align: right"]15[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]1/12/2019[/TD]

[TD="align: right"]16[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]1/15/2019[/TD]

[TD="align: right"]35[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]1/17/2019[/TD]

[TD="align: right"]25[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]1/18/2019[/TD]

[TD="align: right"]27[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]1/18/2019[/TD]

[TD="align: right"]37[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]1/20/2019[/TD]

[TD="align: right"]26[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]9[/TD]
[TD="align: right"]1/22/2019[/TD]

[TD="align: right"]38[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]10[/TD]
[TD="align: right"]1/23/2019[/TD]

[TD="align: right"]16[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]11[/TD]
[TD="align: right"]1/23/2019[/TD]

[TD="align: right"]16[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]12[/TD]
[TD="align: right"]1/24/2019[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]13[/TD]
[TD="align: right"]1/24/2019[/TD]

[TD="align: right"]39[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]14[/TD]
[TD="align: right"]1/26/2019[/TD]

[TD="align: right"]24[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]15[/TD]
[TD="align: right"]1/27/2019[/TD]

[TD="align: right"]17[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]16[/TD]
[TD="align: right"]1/27/2019[/TD]

[TD="align: right"]20[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]17[/TD]
[TD="align: right"]1/29/2019[/TD]

[TD="align: right"]21[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]18[/TD]
[TD="align: right"]1/30/2019[/TD]

[TD="align: right"]36[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]19[/TD]
[TD="align: right"]1/31/2019[/TD]

[TD="align: right"]11[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]20[/TD]
[TD="align: right"]1/31/2019[/TD]

[TD="align: right"]22[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.00209[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]21[/TD]
[TD="align: right"]2/1/2019[/TD]

[TD="align: right"]17[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.00242[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]22[/TD]
[TD="align: right"]2/1/2019[/TD]

[TD="align: right"]15[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.00242[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]23[/TD]
[TD="align: right"]2/2/2019[/TD]

[TD="align: right"]25[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.00242[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]24[/TD]
[TD="align: right"]2/2/2019[/TD]

[TD="align: right"]26[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.00242[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]25[/TD]
[TD="align: right"]2/3/2019[/TD]

[TD="align: right"]14[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.00242[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]26[/TD]
[TD="align: right"]2/6/2019[/TD]

[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.00242[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]27[/TD]
[TD="align: right"]2/6/2019[/TD]

[TD="align: right"]12[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.00242[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]28[/TD]
[TD="align: right"]2/7/2019[/TD]

[TD="align: right"]16[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.00242[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]29[/TD]
[TD="align: right"]2/8/2019[/TD]

[TD="align: right"]37[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.00242[/TD]
[TD="align: right"]4600[/TD]
[TD="align: right"]2[/TD]

</tbody>
Sheet1
There are no duplicates - there are multiple entries per day, but they would differ on field/grid combos. The NACVal changes monthly
 
Last edited:
Upvote 0
ok. looking at your data it is unclear what you are calculating. you are trying to save some ram or space not having an extra column, using sumx rather than sum. why do you divide by row?
i would first create simple formulas, make sure it works and then go on from there. perhaps rows is not connected to this table and you only get total row.
 
Upvote 0
I ended up creating a measure for each month, then a measure that added all the months together.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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