ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Adding cells with similar descriptions (https://www.excelbanter.com/excel-worksheet-functions/46737-adding-cells-similar-descriptions.html)

Matt

Adding cells with similar descriptions
 
I want a cell from one sheet to return the sum of various cells in another
sheet.
For Example:
Sheet 1:
Description Quantity
Cat 7
Dog 3
Bird 9

Sheet 2:
Description Quantity
Cat 1
Dog 2
Cat 2
Bird 4
Dog 1
Cat 3
Cat 1
Bird 5

I want all the cells from sheet 2 with similar descriptions be added and the
value entered in a single cell on sheet 1.


Anne Troy

Try this, Matt. The first formula shows a regular COUNTIF, which is what you
need.
http://www.officearticles.com/excel/...ft_excel.h tm
************
Anne Troy
www.OfficeArticles.com

"Matt" wrote in message
...
I want a cell from one sheet to return the sum of various cells in another
sheet.
For Example:
Sheet 1:
Description Quantity
Cat 7
Dog 3
Bird 9

Sheet 2:
Description Quantity
Cat 1
Dog 2
Cat 2
Bird 4
Dog 1
Cat 3
Cat 1
Bird 5

I want all the cells from sheet 2 with similar descriptions be added and
the
value entered in a single cell on sheet 1.




pdberger

Matt --
If these two examples are in the upper left-hand corner of the respective
spreadsheets, then the formula you want looks like:

=SUMIF(Sheet2!A2:A10,A2,Sheet2!B2:B10)

HTH.

Peter

"Matt" wrote:

I want a cell from one sheet to return the sum of various cells in another
sheet.
For Example:
Sheet 1:
Description Quantity
Cat 7
Dog 3
Bird 9

Sheet 2:
Description Quantity
Cat 1
Dog 2
Cat 2
Bird 4
Dog 1
Cat 3
Cat 1
Bird 5

I want all the cells from sheet 2 with similar descriptions be added and the
value entered in a single cell on sheet 1.



All times are GMT +1. The time now is 05:54 AM.

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