
Originally Posted by
BenHatton
Hi All,
I have a table with Countries (A,B,C etc) and Cities (1,2,3 etc). A value is calculated for each Country and City.
I then have a calculation to identify the top X number of values associated to the country/city.
However, I do not want the country to be returned in these results. The rows that I want to include are not in bold (the rows that I do not want to include are in bold) and they are also on different rows.
I would prefer not to have more than 1 table, and I would prefer not to have a column dedicated to the value for A,B,C etc and a separate column for the value for 1,2,3 etc. Unfortunately I have no understanding of VBA.
I am struggling to explain this well, so I have attached a sheet of sample data where it is fairly self explanatory, and I hope you can understand from that!
I think there are a few ways to solve this, but I can't seem to beat it! Perhaps by adding a "if bold" to =IF(I8=" "," ",INDEX($A$2:$A$9,AGGREGATE(15,6,(ROW($G$2:$G$9)-ROW($G$2)+1)/($G$2:$G$890=K8),COUNTIF(K$7:$S8,K8))))
Any help or suggestions would be much appreciated.
Thanks,
Ben
Bookmarks