I have a large table of consumption records for various account numbers and locations. The account numbers are assigned to various locations, some locations have more than one account number. I am working on a report that will pull the 10 highest records for a given month and year. I am currently using the following array formula in A6:A15 to retrieve the top 10 locations by their consumption for a given month and year selected in C2 and C3, respectively:
and in B6:B15, the following array formula retrieves the consumption value for that location:Please Login or Register to view this content.
Both of these formulas are working, exceptPlease Login or Register to view this content.
1) they sometimes return duplicate values and
2) for those locations with multiple accounts, it retrieves each account for that location on a new line and I would like it to sum the consumption and return the location only once
As a more general question, is there a more efficient way to achieve what the two formulas above are doing? Thank you all!!
Bookmarks