Do sum of cells having specific code in front be done

Kunvarharsh

New member
Joined
Apr 6, 2014
Messages
3
Reaction score
0
Points
0
Hello,
I am Dr Kunvar Harsh from India
I wanted to know if there is any way I can put formula to sum all those items with code e.g E C, H C, K C, KH C (where C stands for-COMMON account) separately from the whole list of item codes having various codes like E H, E K, K H, K K etc..
Thank you
 
Try

=SUM(COUNTIF(A1:A100,{"E C","H C","K C","KH C"}))
 
Try

=SUM(COUNTIF(A1:A100,{"E C","H C","K C","KH C"}))

Monthly expensesCode meaning
DateAmountCodeCodesAccount used
1 April15000R CR CRepair Common
3 April3000F KF KFuel Common
5 April1400G KG KGrocery Kunvar
6 April1200G CG CGrocery Common
Common account expenses16200Desired result based upon code R C & G C
Kunvar expenses4400Desired result based upon code F K & G K
In the above given example, I want that the moment I enter respective code , its total is updated under its respective account expenses; common or Kunvar. I hope this time the problem is quite clear.
 
Proper spec always helps, the problem was clear the first time, just wrongly stated.

=SUM(SUMIF($E$3:$E$6,{"R C","G C"},$B$3:$B$6))

etc.
 
Back
Top