I Have a problem about Cross table,You can see the attachment of the Cross table that I want it.
First. The total position that I just want to give it a style to the total text,but the style use to the list range.
Second. I want to get the price which is divide by the sum amount and the sum qty. but it give me the sum of price
third . you give me the expression e.Value=Cells[1,0]/Cells[-1,0]。if Cells[-1,0]==0, it can get error.
Can I alter it like this?
Code: Select all
if(Cells[-1,0]!=0)
{
e.Value=Cells[1,0]/Cells[-1,0];
}
else
{
e.Value=0;
}
Thank You!