Lookup field in table in google spreadsheet -
i have following table in google spreadsheet, main sheet scores entered:
b c d e 1) player game 1 game 2 game 3 2) 4/18/2013 adam 152 180 180 3) 4/18/2013 ben 100 180 170 4) 4/18/2013 chris 121 167 160 5) 5/2/2013 chris 143 153 140 6) 5/2/2013 ben 150 111 140 7) 5/2/2013 adam 115 100 130
i want able have 'adam' sheet shows each players individual scores:
b c d 1) adam game 1 game 2 game 3 2) 4/18/2013 x 180 180 3) 5/2/2013 115 100 130
what formula use populate x above table?
this formula populate x (and may copied across , down):
=index(filter('mainsheet'!c$2:c;'mainsheet'!$b$2:$b=$a$1;'mainsheet'!$a$2:$a=$a2);1)
this, entered in b2, populate b2:d2 (and may copied down):
=index(filter('mainsheet'!c$2:e;'mainsheet'!b$2:b=a$1;'mainsheet'!a$2:a=a2);1)
this, entered in a1, populate entire table:
=query('mainsheet'!a:e;"select a, c, d, e b = 'adam' label 'adam'";1)
Comments
Post a Comment