ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   worksheet function (https://www.excelbanter.com/excel-worksheet-functions/106924-worksheet-function.html)

tiq

worksheet function
 
On sheet 1 Ihave a list of numbers in column c.

On sheet 2 in column a will be numbers that correspond to sheet 1 column c.
Then sheet 2 column D will have a number hard keyed.

I need a formula on sheet 1 column I that finds the corresponding number on
Sheet 2 and adds up the numbers in column D.

sheet 1 Column c row 1 has 40
Sheet 1 Column c row 20 has 15

Sheet 2 Column a row 1 has 40 and column D has 10
Sheet 2 Column a row 2 has 15 and column D has 3
Sheet 2 Column a row 3 has 40 and Column D has 5

On sheet 1 Column I row 1 should read 15
On sheet 1 Column I row 20 should read 3



Harlan Grove

worksheet function
 
tiq wrote...
....
I need a formula on sheet 1 column I that finds the corresponding number on
Sheet 2 and adds up the numbers in column D.

sheet 1 Column c row 1 has 40
Sheet 1 Column c row 20 has 15

Sheet 2 Column a row 1 has 40 and column D has 10
Sheet 2 Column a row 2 has 15 and column D has 3
Sheet 2 Column a row 3 has 40 and Column D has 5

On sheet 1 Column I row 1 should read 15
On sheet 1 Column I row 20 should read 3


Sheet1!I1:
=SUMIF(Sheet2!$A$1:$A$1000,C1,Sheet2!$D$1:$D$1000)

Fill Sheet1!I1 down as far as needed.



All times are GMT +1. The time now is 09:26 PM.

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