kinkart
Member
Hello,
After hours trying to understand a little bit of array to do what I wanted, I find myself stuck again with INDEX and MATCH. I'm actually not sure I'm using the right formulae :-s
So here's my setup in the file attached.
The worksheet "MASTER" is my ... welll ... master table. This is where I entered all the data I want to play with, and it is formatted as a table, not a range.
The worksheet "RANKING" is where I'd like to display a TOP 15 of the dragons that generates the most gold, per habitat.
Now, that's where it gets complicated (for me!): the possible habitats can be in MASTER column B, C, D or E
So I created a helper column, that "add" the text from each to create one word (for example B2=Water, C2=Dark, F2=WaterDark)
that column is then being searched for in RANKING to get the amount of gold IF column F contains a specific word (ie "Dark").
So far, that works. Probably not pretty (ideas to make it more elegant most welcome, especially if you can help me get rid of the array), but it gets me the correct gold value.
But I can't find a workaround to display, next to that amount, the name of the dragon. See what I've done, RANKING column B is all messed up. Something wrong with the match range I think, but no idea how to fix it.
So anyone can help, that would be much appreciated!
Oh, and if you have better ways to display a top 10, or top 15 whatever, it is most welcome too! I tried with pivot, but too much data and it slows down really badly.
Thanks in advance!
After hours trying to understand a little bit of array to do what I wanted, I find myself stuck again with INDEX and MATCH. I'm actually not sure I'm using the right formulae :-s
So here's my setup in the file attached.
The worksheet "MASTER" is my ... welll ... master table. This is where I entered all the data I want to play with, and it is formatted as a table, not a range.
The worksheet "RANKING" is where I'd like to display a TOP 15 of the dragons that generates the most gold, per habitat.
Now, that's where it gets complicated (for me!): the possible habitats can be in MASTER column B, C, D or E
So I created a helper column, that "add" the text from each to create one word (for example B2=Water, C2=Dark, F2=WaterDark)
that column is then being searched for in RANKING to get the amount of gold IF column F contains a specific word (ie "Dark").
So far, that works. Probably not pretty (ideas to make it more elegant most welcome, especially if you can help me get rid of the array), but it gets me the correct gold value.
But I can't find a workaround to display, next to that amount, the name of the dragon. See what I've done, RANKING column B is all messed up. Something wrong with the match range I think, but no idea how to fix it.
So anyone can help, that would be much appreciated!
Oh, and if you have better ways to display a top 10, or top 15 whatever, it is most welcome too! I tried with pivot, but too much data and it slows down really badly.
Thanks in advance!