|
|
|
|
|
|
Registered
|
Quick Excel for the Geeks
D38
1000 is List A of stock tickers.E38:E1000 is a list of portfolio weights corresponding to each ticker in List A. F7:F20 is List B of stock tickers, some will be in List A, some will not. I want a formula that gives me the sum of weights for the tickers in List A that are also tickers in List B. I know how to do this in two steps (pulling weights from E38:E1000 for each List B ticker into G7:G20, then summing G7:G20), but I want to do it all in one cell, one formula. Thanks!
__________________
1989 3.2 Carrera coupe; 1988 Westy Vanagon, Zetec; 1986 E28 M30; 1994 W124; 2004 S211 What? Uh . . . “he” and “him”? |
||
|
|
|
|
Takin' hard left turns
Join Date: Dec 2004
Location: So Cal
Posts: 1,413
|
=sum(sumif(d38:d1000,f7:f20,e38:e1000))
|
||
|
|
|
|
Back in the saddle again
Join Date: Oct 2001
Location: Central TX west of Houston
Posts: 57,239
|
I'm not an Excel expert by any stretch of the imagination, but I know how to do several things and have done lots of various sorts of formulas over the years. It was just last week that I used "sumif" and then "sumifs" for the first time.
__________________
Steve '08 Boxster RS60 Spyder #0099/1960 - never named a car before, but this is Charlotte. '88 targa SOLD 2004 - gone but not forgotten
|
||
|
|
|
|
Registered
|
Thank you!
__________________
1989 3.2 Carrera coupe; 1988 Westy Vanagon, Zetec; 1986 E28 M30; 1994 W124; 2004 S211 What? Uh . . . “he” and “him”? |
||
|
|
|
|
Model Citizen
Join Date: May 2007
Location: The Voodoo Lounge
Posts: 19,573
|
PPOT perfectly summed up in one thread.
__________________
"I would be a tone-deaf heathen if I didn't call the engine astounding. If it had been invented solely to make noise, there would be shrines to it in Rome" |
||
|
|
|
|
Registered
|
I am bad at array formulae :-(
__________________
1989 3.2 Carrera coupe; 1988 Westy Vanagon, Zetec; 1986 E28 M30; 1994 W124; 2004 S211 What? Uh . . . “he” and “him”? |
||
|
|
|
|