Thread: sumproduct
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bumblebee Bumblebee is offline
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%