ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   sum if (text meets condition) (https://www.excelbanter.com/excel-discussion-misc-queries/191949-sum-if-text-meets-condition.html)

Jennifer

sum if (text meets condition)
 
Hi-

In column A I have many different names with corresponding values in column
B. Q: How do add the value of column B when the name in column A is met? In
example below, I'd like to be able to total B by category A.

I hope this makes sense, thanks in advance.

Jennifer

ex.

A B
apples 100
tomatoes 500
peas 250
apples 500

Bob Phillips[_3_]

sum if (text meets condition)
 
=SUMIF(A:A,"apples",B:B)

--
__________________________________
HTH

Bob

"Jennifer" wrote in message
...
Hi-

In column A I have many different names with corresponding values in
column
B. Q: How do add the value of column B when the name in column A is met?
In
example below, I'd like to be able to total B by category A.

I hope this makes sense, thanks in advance.

Jennifer

ex.

A B
apples 100
tomatoes 500
peas 250
apples 500





All times are GMT +1. The time now is 10:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com