Hi,
I have got b/m data in columns A,B,C
B 300 Others[/code]
B 600 Others[/code]
C 500 Others[/code]
I want to calculate -
Count of A,B & C
Sum of A,B & C
Count of India - A,B & C
Sum of India A,B & C
The formula that i am using for each is:
Count of A,B & C =COUNTIF($A$2:$A$11,"A"+COUNTIF($A$2:$A$11,"B"+COUNTIF($A$2:$A$11,"C"[/code]
Sum of A,B & C =SUMIF($A$2:$A$11,"A",$B$2:$B$11)+SUMIF($A$2:$A$11,"b",$B$2:$B$11)+SUMIF($A$2:$A$11,"c",$B$2:$B$11)[/code]
Count of India - A,B & C =COUNTIFS($A$2:$A$11,"A",$C$2:$C$11,"India"+COUNTIFS($A$2:$A$11,"b",$C$2:$C$11,"India"+COUNTIFS($A$2:$A$11,"c",$C$2:$C$11,"India"[/code]
Sum of India A,B & C =SUMIFS($B$2:$B$11,$A$2:$A$11,"A",$C$2:$C$11,"India"+SUMIFS($B$2:$B$11,$A$2:$A$11,"b",$C$2:$C$11,"India"+SUMIFS($B$2:$B$11,$A$2:$A$11,"c",$C$2:$C$11,"India"[/code]
But i think - though - i am getting desired result - this is not good formula.
Can you suggest a good formula to get the desired result?
<Regards>
Tarun
I have got b/m data in columns A,B,C
Code:
Options Sum Country
[code]A 500 India
[code]B 400 India
[code]C 600 India
[code]D 400 India
[code]A 500 Others
[code]E 200 India
[code]A 400 India
B 300 Others[/code]
B 600 Others[/code]
C 500 Others[/code]
I want to calculate -
Count of A,B & C
Sum of A,B & C
Count of India - A,B & C
Sum of India A,B & C
The formula that i am using for each is:
Count of A,B & C =COUNTIF($A$2:$A$11,"A"+COUNTIF($A$2:$A$11,"B"+COUNTIF($A$2:$A$11,"C"[/code]
Sum of A,B & C =SUMIF($A$2:$A$11,"A",$B$2:$B$11)+SUMIF($A$2:$A$11,"b",$B$2:$B$11)+SUMIF($A$2:$A$11,"c",$B$2:$B$11)[/code]
Count of India - A,B & C =COUNTIFS($A$2:$A$11,"A",$C$2:$C$11,"India"+COUNTIFS($A$2:$A$11,"b",$C$2:$C$11,"India"+COUNTIFS($A$2:$A$11,"c",$C$2:$C$11,"India"[/code]
Sum of India A,B & C =SUMIFS($B$2:$B$11,$A$2:$A$11,"A",$C$2:$C$11,"India"+SUMIFS($B$2:$B$11,$A$2:$A$11,"b",$C$2:$C$11,"India"+SUMIFS($B$2:$B$11,$A$2:$A$11,"c",$C$2:$C$11,"India"[/code]
But i think - though - i am getting desired result - this is not good formula.
Can you suggest a good formula to get the desired result?
<Regards>
Tarun