#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default 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.




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default 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.






  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default 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.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
#VALUE! from SUMPRODUCT gte New Users to Excel 8 January 15th 08 06:16 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct help Sandy Excel Worksheet Functions 4 February 20th 07 05:45 PM
Sumproduct help Sandy Excel Worksheet Functions 2 February 19th 07 10:19 PM


All times are GMT +1. The time now is 02:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"