Hi All,
I need help with an excel sheet where I have to conditional sum.
I have data in 6 columns like this:
[TABLE="width: 601"]
<tbody>[TR]
[TD]Col A
[/TD]
[TD]Col B
[/TD]
[TD] Col C
[/TD]
[TD]Col D
[/TD]
[TD]Col E
[/TD]
[TD]Col F
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]25-Jan-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]25-Feb-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]25-Feb-11
[/TD]
[TD] 2RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]25-Feb-11
[/TD]
[TD] 2RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]25-Mar-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
</tbody>[/TABLE]
I want to do a conditional sum where we look for unique combination of Col A, B and C and do the sum of values for Col D, E and F
The end result should look something like this:
[TABLE="width: 601"]
<tbody>[TR]
[TD]Col A
[/TD]
[TD]Col B
[/TD]
[TD] Col C
[/TD]
[TD]Col D
[/TD]
[TD]Col E
[/TD]
[TD]Col F
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]25-Jan-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]25-Feb-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]25-Feb-11
[/TD]
[TD] 2RENTAL
[/TD]
[TD]8
[/TD]
[TD]3763.2
[/TD]
[TD]4139.52
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]25-Mar-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
</tbody>[/TABLE]
I have highlighted an example in bold. The unique combination of Col A:2, Col B: 25-Feb-11 and Col C: 2Rental will get the appropriate result.
Thanks for your help.
I need help with an excel sheet where I have to conditional sum.
I have data in 6 columns like this:
[TABLE="width: 601"]
<tbody>[TR]
[TD]Col A
[/TD]
[TD]Col B
[/TD]
[TD] Col C
[/TD]
[TD]Col D
[/TD]
[TD]Col E
[/TD]
[TD]Col F
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]25-Jan-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]25-Feb-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]25-Feb-11
[/TD]
[TD] 2RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]25-Feb-11
[/TD]
[TD] 2RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]25-Mar-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
</tbody>[/TABLE]
I want to do a conditional sum where we look for unique combination of Col A, B and C and do the sum of values for Col D, E and F
The end result should look something like this:
[TABLE="width: 601"]
<tbody>[TR]
[TD]Col A
[/TD]
[TD]Col B
[/TD]
[TD] Col C
[/TD]
[TD]Col D
[/TD]
[TD]Col E
[/TD]
[TD]Col F
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]25-Jan-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]25-Feb-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]25-Feb-11
[/TD]
[TD] 2RENTAL
[/TD]
[TD]8
[/TD]
[TD]3763.2
[/TD]
[TD]4139.52
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]25-Mar-11
[/TD]
[TD] 1RENTAL
[/TD]
[TD]4
[/TD]
[TD]1881.6
[/TD]
[TD]2069.76
[/TD]
[/TR]
</tbody>[/TABLE]
I have highlighted an example in bold. The unique combination of Col A:2, Col B: 25-Feb-11 and Col C: 2Rental will get the appropriate result.
Thanks for your help.