ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   "Conditional" summing (https://www.excelbanter.com/excel-worksheet-functions/9308-re-%22conditional%22-summing.html)

Aladin Akyurek

"Conditional" summing
 
In B2 on the destination sheet enter & copy down:

=SUMIF(Sheet1!A:A,A2,Sheet1!B:B)

Replace Sheet1 with the name of your source sheet.

Gilbert De Ceulaer wrote:
How do I do this ?

I have a datebase in one sheet.
In column A are names, let us say of products; they are NOT unique, and NOT
sorted.
In column B there are numbers, let us say amounts.

In another sheet, I want to know the total number for the different names.
In column A are the names, unique in that sheet, but not necessarily sorted.
In column B I would like to have the total of the numbers corresponding to
that name from sheet number one.

As normal, I already tried several possibilities.
Gilbert De Ceulaer





All times are GMT +1. The time now is 04:58 PM.

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