Quote:
Originally Posted by zomg
Ok not sure if this will work in OO, if it doesn't let me know and i'll download it and try there
Assuming your first range is in cells A1:B4 and your second range is in cells D1:E4 so the formula would start in E2 then be copied down to E4 and E1 would be xxx
Code:
=VLOOKUP(D2,$A$1:$B$4,2,0)-MAX(B1:$B$4)
great, thank you very much! I got it to work with a little tweaking; had to change the "," for ";".
Also I just removed all the "$" as they seem to do nothing? I can't see a difference between
Code:
=VLOOKUP(D2;A1:B4;2;0)-MAX(B1:$B$4)
and
Code:
=VLOOKUP(D2;A1:B4;2;0)-MAX(B1:B4)
both give the same (correct) output - what was the $ supposed to do?
Code:
player1 1000 player1 XXX
player2 500 player2 -500
player3 300 player3 -200
player4 50 player4 -250
dfgdfg 20 dfgdfg -30
dfgdfg1 3 dfgdfg1 -17
so as far as I can see my problem is solved, thank you again!
on to my next question (lol):
Is it possible to have the player list automatically obfuscated with a command or something in OO/excel?
Ideally I would like to push a button and make the left part look like the right part
Code:
player1 XXX XXXyer1 XXX
player2 -500 XXXyer2 -500
player3 -200 XXXyer3 -200
player4 -250 XXXyer4 -250
dfgdfg -30 XXXdfg -30
dfgdfg1 -17 XXXdfg1 -17
I *think* something similar could be achieved with vlookup again,
by having a list of all player names and their "aliases" looking like this:
Code:
player1 XXXyer1
player2 XXXyer2
player3 XXXyer3
player4 XXXyer4
dfgdfg XXXdfg
dfgdfg1 XXXdfg1
and then having vlookup look up the alias from that list?
I wouldn't know how to implement that though, what I *think* should be possible is:
Code:
A B C D E F G H
player1 1000 player1 XXXyer1 player1 XXXyer1
player2 500 player2 XXXyer2 -500 player2 XXXyer2
player3 300 player3 XXXyer3 -200 player3 XXXyer3
player4 50 player4 XXXyer4 -250 player4 XXXyer4
dfgdfg 20 dfgdfg XXXdfg -30 dfgdfg XXXdfg
dfgdfg1 3 dfgdfg1 XXXdfg1 -17 dfgdfg1 XXXdfg1
where column G,H is my static list of players names and their aliases and column E is a vlookup thing that for example in E2 looks for the phrase in D2, then looks for the same phrase in column Gx and shows me what is written in Hx right?
thanks again for any help!