Is it possible if I have one column with names and another with pay. i.e.
John $120 John $100 Sally $90 Sally $100 Sally $80
to extract the values from column 2 for both John and Sally and then average them and place the results into two cells in another column? Could I use spreadsheet commands or do I need VBA to do this automatically.
You could use either
AVERAGEIFS(for xl07 and onwards)If your data was in
A2:B6then this formula inD1(with “John” inC1) works=AVERAGEIFS($B$2:$B$6,$A$2:$A$6,D1)