Help with a lookup formula

Acallys

New Member
Joined
Nov 21, 2013
Messages
12
I've created this spreadsheet to record my stats for playing the game Hearthstone. In the columns T, U, V and W I have my class vs class statistics that I've just started recording. The idea behind this is to have it correlating to a table that shows percentages in rows 33-42 using columns A-J. You can see that I have only recorded one stat so far with this which is Shaman vs Mage with a 1 - 0 win rate. V and W will always either be a 1 or a 0 depending on who won the game as they are best of ones.

So the trouble I'm having was to turn the T-W and get a percentage total in the lower table. The only way I could think of that was to have a step in between which is further right on the spreadsheet, starting from AA and onwards. Then the bottom table takes it from there and turns it into a percentage. If there is an easier way to do that to not have all that stuff convoluting the spreadsheet, that would be great to know.

Above that table is the last thing that I'm working on. Underneath the "TOP 5" in cells A-C and rows 27-31 I'm wanting to do the last table. The idea is to have the class that I'm playing in A (ex. Shaman from the one statistic I have recorded), and the played against class in B, and the percentage winrate in C. I tried to do an HLOOKUP and VLOOKUP formula taking information from the table below, but I couldn't get it to work. I can't think of a way of getting this to work as there is too much info to do a nested IF function. I also don't know how to get it to read the information and place the played and played against class into A and B respectively.

Your help for these formulae would be much appreciated, thanks in advance!

TL;DR - Trying to get cells A-C, 27-31 filled with: A = class played, B = class played against, C = winrate %. Used by taking the information from the table below, which takes the info from cells AA and onwards to the right, which takes info from columns T-W.


https://mega.co.nz/#!yowm1aKZ!ZlLRySDRWDiwJoTv6HmQCV_Dn6dTTltg7qbRMoSCdCA - link to the spreadsheet
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I have had a quick look at the spreadsheet but cannot clearly see what you are trying to do. Can you make a pretend spreadsheet say with only 4 players, show the results eg who won, make it clear if A plays B more than once, maybe a list of names with played, won, lost and say what you want. When we sort that you can scale it up to your own results.
 
Upvote 0
Here's a scaled down one that I put together. Obviously the statistics don't make sense from the rough tally to the table at the bottom, it's all just to give you an idea. I skipped the stuff I did to the far right in the initial spreadsheet, that was a bit more involved but just reference that if you need that step in there still. I feel like there might be a way to not need that in there, but I don't know how to do it.

What I'm struggling with is getting the "Top 5" list, and having it draw directly from the table below it automatically. I want it to automatically pick up which are the top 5 highest percentages when things change and put them in order under the "Top 5" heading, and for it to so who it was played by (column A), and who it was against (column B). The table below is column A being my played characters, and going across in row 11 being who I played against. The percentages are my winrate.

Thank you for your help!

https://mega.co.nz/#!jo4nkIiZ!cVVHpigQvmDaJjPC2YzQoE13Q64DVkKpoyGa1eWeTQE
 
Last edited:
Upvote 0
can you check it - you have hunter playing hunter - and what does your top 5 mean -- you have hunter mage 91% does this mean hunter has won 91% of games against mage? Anyway I will think about how to get info from your lower table into the top 5
 
Upvote 0
TOP 5ClassAgainstWinLoss
DruidMage10
HunterMage91%HunterHunter01
DruidHunter86%DruidHunter10
HunterHunter85%MageDruid10
MageHunter82%MageHunter10
MageDruid78%DruidMage01
DruidDruid01
DruidHunterMageThe stuff above here is the rough tally of whether
Druid67%86%73%the class I was playing (column G) won. If I won then a
Hunter58%85%91%1 goes in the "Win" column, and a loss puts a 1 in "Loss"
Mage78%82%65%
Above here is the class that I played being in column A
and the class played against being in row 10. The intersection
is my win rate against the relevant class
this is just a copy of your table
XXXXXXXDruidHunterMage
Druid67%86%73%
Hunter58%85%91%
Mage78%82%65%
alongdown
1167%DruidDruid
this table locates the score1286%DruidHunter
and the players by their1373%DruidMage
offset positions2158%HunterDruid
from the cell2285%HunterHunter
marked XXXXX2391%HunterMage
3178%MageDruid
3282%MageHunter
3365%MageMage
HunterMage91%
DruidHunter86%
HunterHunter85%
this table finds the biggest,MageHunter82%
second biggest etcMageDruid78%
scores from the table above
and then uses offset match function
to grab the correct namesnote that this will fail if there
are two identical scores
I am trying to work
round that

<colgroup><col span="12"></colgroup><tbody>
</tbody>
 
Upvote 0
can you check it - you have hunter playing hunter - and what does your top 5 mean -- you have hunter mage 91% does this mean hunter has won 91% of games against mage? Anyway I will think about how to get info from your lower table into the top 5

Yes mirror matchups can happen. Any class can play any class including the same one.

Top 5 means the highest winrate matchups. So I have currently a Hunter vs Mage matchup being 91%, which means when I'm playing Hunter against a Mage, I have won 91% of the games.
 
Upvote 0
I think I now know how to separate "identical" percentages

just add 0.00000001
to the first percentage
0.00000002
to the second
etc etc then they will all
be different for calculation
purposes
 
Upvote 0
can you play your druid against their druid?
Yes any class can play against any class, including itself. The percentages can be identical for a while but I guess the more I play and the more results I get, doubling up will be come more and more rare.
 
Upvote 0
40playedwon%
ShamanHunter1Shaman22100.0
PriestPaladin0Priest200.0
MageWarlock1Mage8562.5
HunterPaladin0Hunter200.0
PaladinRogue1Paladin6233.3
WarlockWarrior1Warlock4250.0
PaladinRogue0Rogue7685.7
RogueDruid1Warrior7342.9
WarriorWarlock0Druid22100.0
RogueMage1
DruidWarrior1
WarlockWarrior0
MageRogue1
WarriorHunter0
WarriorPaladin1
RogueWarlock1
MagePaladin0
MageRogue0
PaladinWarrior0
WarriorRogue1
ShamanDruid1
PriestWarlock0
MageMage1
HunterWarrior0
PaladinWarrior1
WarlockRogue1
PaladinHunter0
RoguePaladin1
WarriorWarlock0
RoguePaladin1
DruidRogue1
WarlockWarrior0
MageRogue1
WarriorDruid0
RogueWarlock1
RogueMage0
MageWarrior0
MageWarrior1
PaladinRogue0
WarriorRogue1

<colgroup><col width="64" span="9" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top