Sum data using sumif

Joined
Jun 11, 2011
Messages
14
Reaction score
2
I have a 2-column list of names and values:
StoreA Produce| 25.00
StoreC | 15.00
StoreA Dairy | 17.50
StoreD | 8.24
etc...

I'd like to sum all the values from Store A with a single formula.

So far I have made a separate column, using the formula
=IF(ISNUMBER(SEARCH("StoreA",$B29)), $D29,"------")
Which can be summed using Sum.
I'm pretty sure this can be replaced with a Sumif but I can't seem to get the right expressions.

Using Excel 2004, Win 10.
 
Joined
Jun 11, 2011
Messages
14
Reaction score
2
P.S. Can someone tell me how to format columnar text in this forum? I set it up in a mono font but the system removes extra spaces.
 
Joined
Aug 3, 2011
Messages
70
Reaction score
6
Yep, that's possible. You can use SUMIF as follows:

=SUMIF(A2:A5,"Store A",B2:B5)

Excel SUMIF example.jpg


Where A2:A5 is the range of cells which contain the different store names, and B2:B5 is range with the corresponding values. I've just used 2 to 5 for the illustration.

Is that what you are looking for?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top