sum an excel field that equals a criteria

P

PaulC

ie. list has sales, state info etc. Calculate a total of sales by state (not
subtotal as state field is not sorted)
 
A

Aladin Akyurek

PaulC said:
ie. list has sales, state info etc. Calculate a total of sales by stat
(not
subtotal as state field is not sorted)

Create a list of distinct states and use:

=SUMIF(StateRange,State,SalesRange)

where State is the first cell of the distinct list
 
Top