ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUMPRODUCT help (https://www.excelbanter.com/excel-worksheet-functions/208580-sumproduct-help.html)

Gaurav[_4_]

SUMPRODUCT help
 
Column A - name of the person. for example John Smith.
Column B - Primary ID JSMITH
Column C - Secondry ID JSMITH2

Column D needs to look for Primary and Secondry IDs in another workbook
column A and return the sum of the corresponding values in column D.

so other workbook

A1 - JSMITH.
A5 - JSMITH2
D1 - 15
D5 - 25

so i need the formula to return 40.

thanks in advance for any help.





Gaurav[_4_]

SUMPRODUCT help
 
well...SUMIF worked.

thanks for going through the post though. :)


"Gaurav" wrote in message
...
Column A - name of the person. for example John Smith.
Column B - Primary ID JSMITH
Column C - Secondry ID JSMITH2

Column D needs to look for Primary and Secondry IDs in another workbook
column A and return the sum of the corresponding values in column D.

so other workbook

A1 - JSMITH.
A5 - JSMITH2
D1 - 15
D5 - 25

so i need the formula to return 40.

thanks in advance for any help.







redbird

SUMPRODUCT help
 
Formula in cell D1 on first sheet:
=SUM((([SecondWorkbookName]SheetName!$A$1:$A$200=B1)+([SecondWorkbookName]SheetName!$A$1:$A$200=C1))*[SecondWorkbookName]SheetName!$D$1:$D$200)

Array enter (Shift-Ctrl-Enter)

"Gaurav" wrote in message
...
Column A - name of the person. for example John Smith.
Column B - Primary ID JSMITH
Column C - Secondry ID JSMITH2

Column D needs to look for Primary and Secondry IDs in another workbook
column A and return the sum of the corresponding values in column D.

so other workbook

A1 - JSMITH.
A5 - JSMITH2
D1 - 15
D5 - 25

so i need the formula to return 40.

thanks in advance for any help.








All times are GMT +1. The time now is 02:17 PM.

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