Hello,
I am trying to get the weighted average of values in several rows of a column in which there are several matches in the lookup column. For example, column A has price and column B has returns. If column A has four rows with the same price, I need to get the weighted average of the corresponding returns in column B. Here is a test formlua that I got to work with values across multiple columns, but cannot figure out how to get it to work across multiple rows.
=AVERAGE(VLOOKUP($D$2,$A$2:$C$8,{2,3},FALSE))
Any help would be greatly appreciated.
Thanks
Bookmarks