I have a dataset that is a list of Sellers, years and values in a table called ?tData? [A2:C13]. Example data has only 2 names and 3 years, but actual data could have more.
I also have a named range that produces scores for Sellers in different years, which is a spilled array from the named range ?scoreArray?[U3#]. (arbitrary score values are used for the example)
Given a Seller name in [E2], I need to produce a list of years that are in the data for that name, stored in named range ?YearList? [E5#]
For each year, I need to sum all the value of their sales, and compare to the sales of the Sellers that sold the minimum amount that year.
Obviously, the number of years to be displayed and the number of Sellers involved changes depending on the dataset. My solution was to use dynamically sized spilled arrays that resize to match the unique entries in the dataset.
Now I can get formulas to work if I set manually fill down formulas to the correct number of rows. I can reference the scoreArray# and get a single result.
But I can't work out to get a spilled array that will get the correct number of rows dynamically by referencing YearList#. I would appreciate advice on fixing the formulas so that I can get spilled range outputs to match the expected output.
I have attached my example workbook. Range to be corrected in is Yellow (G5:K8)
Expected output is shown in Green (M5:Q8)
Formulas:
G5
Formula:Please Login or Register to view this content.
I5
Formula:Please Login or Register to view this content.
J5
Formula:Please Login or Register to view this content.
K5
Formula:Please Login or Register to view this content.
Bookmarks