#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default sumproduct

I have a column of ISIN codes and next to it a colum of weights and I want to
add up the weights of only those ISIN codes that start with ES. Lets say one
ISIN code is ES098430202, another one is FR099878324, etc. How would I
construct the function?

Imagine

ES098430202 4%
FR099878324 6%
DE957632458 8%

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default sumproduct

one way
=sum(if(left(ISIN_range)="ES",other_range,0)
entered as an array control-shift-enter

"Bumblebee" wrote:

I have a column of ISIN codes and next to it a colum of weights and I want to
add up the weights of only those ISIN codes that start with ES. Lets say one
ISIN code is ES098430202, another one is FR099878324, etc. How would I
construct the function?

Imagine

ES098430202 4%
FR099878324 6%
DE957632458 8%

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default sumproduct

One way:

=SUMPRODUCT(--(LEFT(A1:A100,2)="ES"),B1:B100)


In article ,
Bumblebee wrote:

I have a column of ISIN codes and next to it a colum of weights and I want to
add up the weights of only those ISIN codes that start with ES. Lets say one
ISIN code is ES098430202, another one is FR099878324, etc. How would I
construct the function?

Imagine

ES098430202 4%
FR099878324 6%
DE957632458 8%

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default sumproduct

Thank you. Just one thing, it worked only when I stuck a 2 after ISIN_range.
Like this:
=sum(if(left(ISIN_range,2)="ES",other_range,0)


"bj" wrote:

one way
=sum(if(left(ISIN_range)="ES",other_range,0)
entered as an array control-shift-enter

"Bumblebee" wrote:

I have a column of ISIN codes and next to it a colum of weights and I want to
add up the weights of only those ISIN codes that start with ES. Lets say one
ISIN code is ES098430202, another one is FR099878324, etc. How would I
construct the function?

Imagine

ES098430202 4%
FR099878324 6%
DE957632458 8%

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default sumproduct

Thanks for the correction.

In article ,
Bumblebee wrote:

Thank you. Just one thing, it worked only when I stuck a 2 after ISIN_range.
Like this:
=sum(if(left(ISIN_range,2)="ES",other_range,0)



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default sumproduct

THANK YOU

"JE McGimpsey" wrote:

One way:

=SUMPRODUCT(--(LEFT(A1:A100,2)="ES"),B1:B100)


In article ,
Bumblebee wrote:

I have a column of ISIN codes and next to it a colum of weights and I want to
add up the weights of only those ISIN codes that start with ES. Lets say one
ISIN code is ES098430202, another one is FR099878324, etc. How would I
construct the function?

Imagine

ES098430202 4%
FR099878324 6%
DE957632458 8%


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default sumproduct

I appologize, I got sloppy in my typing, I remember thinking the ",2". I
just didn't add it

"Bumblebee" wrote:

Thank you. Just one thing, it worked only when I stuck a 2 after ISIN_range.
Like this:
=sum(if(left(ISIN_range,2)="ES",other_range,0)


"bj" wrote:

one way
=sum(if(left(ISIN_range)="ES",other_range,0)
entered as an array control-shift-enter

"Bumblebee" wrote:

I have a column of ISIN codes and next to it a colum of weights and I want to
add up the weights of only those ISIN codes that start with ES. Lets say one
ISIN code is ES098430202, another one is FR099878324, etc. How would I
construct the function?

Imagine

ES098430202 4%
FR099878324 6%
DE957632458 8%

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
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Help with SUMPRODUCT FrankTimJr Excel Discussion (Misc queries) 4 October 12th 05 04:27 PM
Sumproduct? cjjoo Excel Worksheet Functions 9 October 11th 05 12:31 PM
sumproduct? cursednomore Excel Worksheet Functions 2 October 10th 05 08:45 PM
Sumproduct ?? PhilGTI Excel Worksheet Functions 3 September 22nd 05 05:41 PM


All times are GMT +1. The time now is 06:31 PM.

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"