Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default SUMPRODUCT help

A subset of my data starts out the same in a text column, Column A.
The last part of the text is different. Nevertheless, I want to
run a SUMPRODUCT function against columns that meet that
criterion in Column A. That is, for lines where Column A starts
out "XYZ " below.

I'm trying to find the average days held for stock meeting my
criterion, weighted by cost for the transaction.

A ... E ... N
Descr. Cost Days Held
======== ======= =========
XYZ ABCD 165.46 98
XYZ BCDE 195.62 15
XYZ CDEF 1240.54 42


I am able to do this weighted average of days held easily for the
rest of my data. E.g.:

=SUMPRODUCT(--($A$2:$A594=$A594),--($N$2:$N594),--($E$2:$E594))/$E595

(where E595 is the total cost for stock matching the description in
Column A).

But this one part of the data has only the beginning of the
description match, not the whole field. I'm stuck. I tried some
things with LEFT and with IF, but couldn't get it to work. Help
appreciated!

=dman=
 
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
SumProduct Moz Excel Discussion (Misc queries) 5 December 25th 06 01:09 PM
Like Sumproduct, But Different ericsh Excel Worksheet Functions 6 August 11th 05 05:49 PM
HELP!!! On SumProduct Wally Excel Worksheet Functions 2 July 17th 05 04:52 PM
Sumproduct Steved Excel Worksheet Functions 4 July 15th 05 07:22 AM


All times are GMT +1. The time now is 04:39 AM.

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

About Us

"It's about Microsoft Excel"