View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
eggsell eggsell is offline
external usenet poster
 
Posts: 4
Default vba: Taking average of values in one column based on a corresponding value in another column

Excel XP, Windows XP

I have dynamically changing data in columns E and F that start at row
10 and continue down, I would like to be able to accomplish the
following using vba:

1) Take the average of all the data in E that has a corresponding
value (say, 24) in F and then enter that average in column G.
2) Find the last cell in F that contains 24 and enter its
corresponding value from E in column G.


Any help is greatly appreciated, as I am stuck in the mud when it
comes to vba.
Thanks