Special Conditional Sum

OscarAGC

New Member
Joined
Feb 25, 2009
Messages
5
Column A Column B

Apple-Red 10
Apple-Green 10
Apple- Yellow 10
Orange-Navel 5
Orange-Tangelo 7
Grape-Purple 30
Grape-Green 30

I want to sum Column B if Colum A contains Apple. The answer here would be 30.

I've tried a combination of sum, vlookup, and search with wildcard "* *", but I can't get it.:confused:

PLEASE HELP!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the Board!

Try:

=sumif(A:A,"*Apple*",B:B)

But depending on your circumstances you may want:

=sumif(A:A,"*Apple-*",B:B)

Because the former would also count Grape-GreenApple as apple. Which I don't think you want.

Hope that helps.
 
Upvote 0
Schielrn- YOU ARE THE MAN!-I'm also an accountant, so I'm glad you were vibin' on this one. MUCH APPRECIATED! :laugh::cool::biggrin::rofl:
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top