#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 184
Default Sum Formula

I am trying to find a way of using a formula for a large range of data that
would do a sum if formula or equivalent. Below is an example of what I am
looking of knowns are what is in columns a, b and c. D is where the formula
is. It needs to give the totals of what is in c if a and b match. In terms
I am wanting d to be the sum of c if the data alike in a and b. So rows 1
and 2 added is 20 because a is 10 and b is one.


A b c d
1 10 1 10 20
2 10 1 10 20
3 10 2 12 12
4 15 1 12 23
5 15 1 11 23
6 16 5 12 12
7 17 2 12 12

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Sum Formula

Hi,

I'm struggling with the logic here

A B C D
10 1 10 20 A1=B1 & C1=D1 so you sum C1 & C2
10 1 10 20 The logic breaks down on this line.
10 2 12 12
15 1 12 23
15 1 11 23
16 5 12 12
17 2 12 12

Please explain.

Mike


"Jeremy" wrote:

I am trying to find a way of using a formula for a large range of data that
would do a sum if formula or equivalent. Below is an example of what I am
looking of knowns are what is in columns a, b and c. D is where the formula
is. It needs to give the totals of what is in c if a and b match. In terms
I am wanting d to be the sum of c if the data alike in a and b. So rows 1
and 2 added is 20 because a is 10 and b is one.


A b c d
1 10 1 10 20
2 10 1 10 20
3 10 2 12 12
4 15 1 12 23
5 15 1 11 23
6 16 5 12 12
7 17 2 12 12

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Sum Formula

I of course meant

A B C D
10 1 10 20 A1=A2 & B1=B2 so you sum C1 & C2
10 1 10 20 The logic breaks down on this line.
10 2 12 12
15 1 12 23
15 1 11 23
16 5 12 12
17 2 12 12

"Mike H" wrote:

Hi,

I'm struggling with the logic here

A B C D
10 1 10 20 A1=B1 & C1=D1 so you sum C1 & C2
10 1 10 20 The logic breaks down on this line.
10 2 12 12
15 1 12 23
15 1 11 23
16 5 12 12
17 2 12 12

Please explain.

Mike


"Jeremy" wrote:

I am trying to find a way of using a formula for a large range of data that
would do a sum if formula or equivalent. Below is an example of what I am
looking of knowns are what is in columns a, b and c. D is where the formula
is. It needs to give the totals of what is in c if a and b match. In terms
I am wanting d to be the sum of c if the data alike in a and b. So rows 1
and 2 added is 20 because a is 10 and b is one.


A b c d
1 10 1 10 20
2 10 1 10 20
3 10 2 12 12
4 15 1 12 23
5 15 1 11 23
6 16 5 12 12
7 17 2 12 12

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 184
Default Sum Formula

Lets see if I can help

Colum A and B has a set of numbers that need to sum the total in c if the
numbers in A and B combined are duplicated on rows. Does this help?

"Mike H" wrote:

I of course meant

A B C D
10 1 10 20 A1=A2 & B1=B2 so you sum C1 & C2
10 1 10 20 The logic breaks down on this line.
10 2 12 12
15 1 12 23
15 1 11 23
16 5 12 12
17 2 12 12

"Mike H" wrote:

Hi,

I'm struggling with the logic here

A B C D
10 1 10 20 A1=B1 & C1=D1 so you sum C1 & C2
10 1 10 20 The logic breaks down on this line.
10 2 12 12
15 1 12 23
15 1 11 23
16 5 12 12
17 2 12 12

Please explain.

Mike


"Jeremy" wrote:

I am trying to find a way of using a formula for a large range of data that
would do a sum if formula or equivalent. Below is an example of what I am
looking of knowns are what is in columns a, b and c. D is where the formula
is. It needs to give the totals of what is in c if a and b match. In terms
I am wanting d to be the sum of c if the data alike in a and b. So rows 1
and 2 added is 20 because a is 10 and b is one.


A b c d
1 10 1 10 20
2 10 1 10 20
3 10 2 12 12
4 15 1 12 23
5 15 1 11 23
6 16 5 12 12
7 17 2 12 12

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Sum Formula

Look at line 2 thats were you have to start with your logic(make line 1
all zeros or whatever)

So then the logic is (If A2=A1 and B2=B1 then D2=C2+C1) OR (If A2=A3
and B2=B3 then D2=C2+C3 ) else D2 = C2

Jeremy wrote:

Lets see if I can help

Colum A and B has a set of numbers that need to sum the total in c if the
numbers in A and B combined are duplicated on rows. Does this help?

"Mike H" wrote:


I of course meant

A B C D
10 1 10 20 A1=A2 & B1=B2 so you sum C1 & C2
10 1 10 20 The logic breaks down on this line.
10 2 12 12
15 1 12 23
15 1 11 23
16 5 12 12
17 2 12 12

"Mike H" wrote:


Hi,

I'm struggling with the logic here

A B C D
10 1 10 20 A1=B1 & C1=D1 so you sum C1 & C2
10 1 10 20 The logic breaks down on this line.
10 2 12 12
15 1 12 23
15 1 11 23
16 5 12 12
17 2 12 12

Please explain.

Mike


"Jeremy" wrote:


I am trying to find a way of using a formula for a large range of data that
would do a sum if formula or equivalent. Below is an example of what I am
looking of knowns are what is in columns a, b and c. D is where the formula
is. It needs to give the totals of what is in c if a and b match. In terms
I am wanting d to be the sum of c if the data alike in a and b. So rows 1
and 2 added is 20 because a is 10 and b is one.


A b c d
1 10 1 10 20
2 10 1 10 20
3 10 2 12 12
4 15 1 12 23
5 15 1 11 23
6 16 5 12 12
7 17 2 12 12


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"