#1   Report Post  
Posted to microsoft.public.excel.misc
Pai Pai is offline
external usenet poster
 
Posts: 18
Default Help With Sumif

Dear All

My Data is like this;

Name City Total Sum Average
ABC Delhi 7.8 24 6
ABC Delhi 6.8
ABC Delhi 5.23
ABC Delhi 4.23
ABC Noida 12 12 12
DEF Noida 24 47 24
DEF Noida 23
GHI Faridabad 24.3 24 24
JKL Mumbai 12 151 30
JKL Mumbai 56
JKL Mumbai 48
JKL Mumbai 12
JKL Mumbai 23
JKL Naskik 15 29 15
JKL Naskik 14
MNO Chennai 12 25 13
MNO Chennai 13
MNO Hyderabad 15 15 15
PQR Noida 12 12 12
PQR Delhi 14 26 13
PQR Delhi 12
STU Hyderabad 16 35 18
STU Hyderabad 19
VWX Gurgaon 17 35 18
VWX Gurgaon 18
VWX Delhi 21 21 21
XYZ Gurgaon 22 45 23
XYZ Gurgaon 23
XYZ Noida 26 26 26
XYZ Delhi 28 87 29
XYZ Delhi 29
XYZ Delhi 30


I want to Sum Column C Based on Column A as well as Column B.

For Example: In A2 to A5 (ABC) total =24 Becaue City is Different .In
A6(ABC) Total=12 City is Different and so on

Write now i am using SUMIF($A$2:$A$33,A2,$C$2:$C$33)
But i Give me the Total of All ABC i.e 36
Column D is the Total Which is My Requirement.

2) After Getting the total in Column D. Now I want the Average in Column E
as given in Example:

Say A2:A5 total= 6,Now i want to Divide 24/4 Result is 6
A6 has only one data then 12/1 Result is 12

And so on

Any type of Help is Appreciate

Thanks in Advance

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Help With Sumif

In D2:
=SUMPRODUCT(--($A$2:$A$33=A2),--($B$2:$B$33=B2),$C$2:$C$33)
In E2
=D2/SUMPRODUCT(--($A$2:$A$33=A2),--($B$2:$B$33=B2))

Adjust ranges and copy as required!

Regards,
Stefi

€˛Pai€¯ ezt Ć*rta:

Dear All

My Data is like this;

Name City Total Sum Average
ABC Delhi 7.8 24 6
ABC Delhi 6.8
ABC Delhi 5.23
ABC Delhi 4.23
ABC Noida 12 12 12
DEF Noida 24 47 24
DEF Noida 23
GHI Faridabad 24.3 24 24
JKL Mumbai 12 151 30
JKL Mumbai 56
JKL Mumbai 48
JKL Mumbai 12
JKL Mumbai 23
JKL Naskik 15 29 15
JKL Naskik 14
MNO Chennai 12 25 13
MNO Chennai 13
MNO Hyderabad 15 15 15
PQR Noida 12 12 12
PQR Delhi 14 26 13
PQR Delhi 12
STU Hyderabad 16 35 18
STU Hyderabad 19
VWX Gurgaon 17 35 18
VWX Gurgaon 18
VWX Delhi 21 21 21
XYZ Gurgaon 22 45 23
XYZ Gurgaon 23
XYZ Noida 26 26 26
XYZ Delhi 28 87 29
XYZ Delhi 29
XYZ Delhi 30


I want to Sum Column C Based on Column A as well as Column B.

For Example: In A2 to A5 (ABC) total =24 Becaue City is Different .In
A6(ABC) Total=12 City is Different and so on

Write now i am using SUMIF($A$2:$A$33,A2,$C$2:$C$33)
But i Give me the Total of All ABC i.e 36
Column D is the Total Which is My Requirement.

2) After Getting the total in Column D. Now I want the Average in Column E
as given in Example:

Say A2:A5 total= 6,Now i want to Divide 24/4 Result is 6
A6 has only one data then 12/1 Result is 12

And so on

Any type of Help is Appreciate

Thanks in Advance

  #4   Report Post  
Posted to microsoft.public.excel.misc
Pai Pai is offline
external usenet poster
 
Posts: 18
Default Help With Sumif

Awesome Stefi Awesome

Greeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeet


Pai

"Stefi" wrote:

In D2:
=SUMPRODUCT(--($A$2:$A$33=A2),--($B$2:$B$33=B2),$C$2:$C$33)
In E2
=D2/SUMPRODUCT(--($A$2:$A$33=A2),--($B$2:$B$33=B2))

Adjust ranges and copy as required!

Regards,
Stefi

€˛Pai€¯ ezt Ć*rta:

Dear All

My Data is like this;

Name City Total Sum Average
ABC Delhi 7.8 24 6
ABC Delhi 6.8
ABC Delhi 5.23
ABC Delhi 4.23
ABC Noida 12 12 12
DEF Noida 24 47 24
DEF Noida 23
GHI Faridabad 24.3 24 24
JKL Mumbai 12 151 30
JKL Mumbai 56
JKL Mumbai 48
JKL Mumbai 12
JKL Mumbai 23
JKL Naskik 15 29 15
JKL Naskik 14
MNO Chennai 12 25 13
MNO Chennai 13
MNO Hyderabad 15 15 15
PQR Noida 12 12 12
PQR Delhi 14 26 13
PQR Delhi 12
STU Hyderabad 16 35 18
STU Hyderabad 19
VWX Gurgaon 17 35 18
VWX Gurgaon 18
VWX Delhi 21 21 21
XYZ Gurgaon 22 45 23
XYZ Gurgaon 23
XYZ Noida 26 26 26
XYZ Delhi 28 87 29
XYZ Delhi 29
XYZ Delhi 30


I want to Sum Column C Based on Column A as well as Column B.

For Example: In A2 to A5 (ABC) total =24 Becaue City is Different .In
A6(ABC) Total=12 City is Different and so on

Write now i am using SUMIF($A$2:$A$33,A2,$C$2:$C$33)
But i Give me the Total of All ABC i.e 36
Column D is the Total Which is My Requirement.

2) After Getting the total in Column D. Now I want the Average in Column E
as given in Example:

Say A2:A5 total= 6,Now i want to Divide 24/4 Result is 6
A6 has only one data then 12/1 Result is 12

And so on

Any type of Help is Appreciate

Thanks in Advance

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
sumif Shi Gharib Excel Discussion (Misc queries) 1 February 5th 08 10:29 AM
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 03:37 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"