Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50158

searching for different string values and then sum

$
0
0
Hi all,

I hope you can help

I have a table that list various products say apples, bananas, oranges etc

Example

Product Quantity Total
Apple 5
Orange 2
Banana 4

I need to be able to search the product column A, and if apple is found then sum Quantity (column B) by a specific number held in another column and show the result in column C "Total" --- or if orange is found, then sum the quantity column by a different number and so on

Can anyone suggest how I can achieve this please.

Thanks

Viewing all articles
Browse latest Browse all 50158

Trending Articles