Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Help With Sumif
|
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
sumif | Excel Discussion (Misc queries) | |||
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" | Excel Worksheet Functions | |||
Embedding a Sumif in a sumif | Excel Worksheet Functions | |||
nested sumif or sumif with two criteria | Excel Worksheet Functions | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions |