I have search around the forums and have only been able to find a partial answer to my problem.
I have a table with say 5 columns.
Column1=Business Name
Column2=DebitMonth1
Column3=DebitMonth2
Column4=DebitMonth3
Column5=DebitMonth4
Column1 will have different business names, but it will also have the same business name multiple times (business location is different).
I would like to sum up all the same business names in column 1 and columns2-5 together.
Example:
Column1 has these entrys:
Staples
Officemax
Staples
Staples
Column2-5
1 1 3 4 5
5 5 8 1 2
5 0 5 4 5
5 1 1 3 3
I would like all the Staples to be summed up across columns 2-5 so the math would be for Staples (1+1+3+4+5)+(5+0+5+4+5)+(5+1+1+3+3)=46 and for Officemax (5+5+8+1+2)=21
So the output of the query would be
Customer Name Sum(DebitMonth1-DebitMonth4)
Staples 46
Officemax 21
I hope thats clear, any ideas?
I have a table with say 5 columns.
Column1=Business Name
Column2=DebitMonth1
Column3=DebitMonth2
Column4=DebitMonth3
Column5=DebitMonth4
Column1 will have different business names, but it will also have the same business name multiple times (business location is different).
I would like to sum up all the same business names in column 1 and columns2-5 together.
Example:
Column1 has these entrys:
Staples
Officemax
Staples
Staples
Column2-5
1 1 3 4 5
5 5 8 1 2
5 0 5 4 5
5 1 1 3 3
I would like all the Staples to be summed up across columns 2-5 so the math would be for Staples (1+1+3+4+5)+(5+0+5+4+5)+(5+1+1+3+3)=46 and for Officemax (5+5+8+1+2)=21
So the output of the query would be
Customer Name Sum(DebitMonth1-DebitMonth4)
Staples 46
Officemax 21
I hope thats clear, any ideas?