A B C
1 Fruit 0.34 Pear
2 Vegetable 0.62 Lettuce
3 Fruit 0.80 Apple
4 Fruit 0.86 Banana
Given the table above, I need to know the cost of all items above by type (fruits vs vegetables). In the above example, I'm looking for a formula that gives me Fruits=2.0 and Vegetables=0.62 and can apply to any number of rows.
Any help would be appreciated!