excel - Count/If/Sum formula -


i using spreadsheet count sold items several teams.

rows: individual seller
in column have specific team seller belongs to.
in column b have amount of items seller sold.

in separate row @ end of document, trying calculate total number of items being sold specific group.

can me write code needed return total number of items sold each specific team?

the image shows sample data in a1:c13, , 3 different ways sum amounts teams. there many others ways. of 3 recommend @jerry’s suggestion of pivottable (e2:f6) because easy set up, quick in operation , offers great deal of versatility beyond merely summing amounts team. example if data included dates of sales sort , group week, month, year etc. second version of (e8:f14) shows breakdown seller of 20 total, number of ‘sales’ (rows) rather number of items sold.

so22614038 example

the formula in d20 (copied down d22) is:

=sumifs(b$2:b$19,a$2:a$19,a20)   

however sumifs not available standard ms office function before excel 2007, though sumif was, in b20, copied down suit:

=sumif(a$2:a$19,a20,b$2:b$19)   

sumifs allows more conditions sumif, example can changed in d20 to:

=sumifs(b$2:b$19,a$2:a$19,a20,c$2:c$19,"seller1")  

to obtain amount of items comprising 2 distinct ‘sales’ seller1 shown 2 in lower pivottable.

since trying calculate total from specific group above may more elaborate immediate requirement version can placed anywhere in sheet (if example) , copied around, replaces variable fixed condition, have chosen teamb:

=sumif($a$2:$a$19,"teamb",$b$2:b$19)   

and provided formula kept out of columna might further simplified extending consider entire columns:

=sumif(a:a,"teamb",b:b) 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -