ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Selective summing of table items? (https://www.excelbanter.com/excel-worksheet-functions/63670-selective-summing-table-items.html)

John

Selective summing of table items?
 
How do I write a function to sum the all the quatities in the item table
named named "Table" B2:C7 that match the product name in cell named "Product"
A1?
a b c
1 prodx
2 Item Quan
4 prodx 100
5 prodx 200
6 prody 20
7 prodz 40
8 prodx 100


RagDyer

Selective summing of table items?
 
Try this:

=SUMIF(B2:B7,A1,C2:C7)
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"John" wrote in message
...
How do I write a function to sum the all the quatities in the item table
named named "Table" B2:C7 that match the product name in cell named

"Product"
A1?
a b c
1 prodx
2 Item Quan
4 prodx 100
5 prodx 200
6 prody 20
7 prodz 40
8 prodx 100



John Michl

Selective summing of table items?
 
=SUMIF(B4:B8,A1,C4:C8)

- John



All times are GMT +1. The time now is 06:51 PM.

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