I think what I want to do here is easiest illustrated by a 'Before' and 'After' spreadsheet - see attached.
You'll see in the 'Before' spreadsheet at B13-16 there are a range of '1s' and in the column immediately to the right, various different numbers.
I would like a macro to identify all the '1s' in this column and then insert a cell in C13 averaging all the numbers immediately to the right of a '1' in column B. The average should go in C3. Then do the same thing for all the '2s' with the average going in C4, and the same thing for the 3s in C5.
See the 'After' spreadsheet for what I mean.
I know it's possible to design macros where the actions are based on cell contents. Can this be done here?
Thanks in advance!
Bookmarks