Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do i write a macro that will move to each cell in a
column and, if the value meets a certain "IF" requirement, select it and add it to the data range for the "average function" to evaluate? (for xl 97) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How about using worksheet functions to calculate average as follows:
=SUMIF(A1:A1000,"apples")/COUNTIF(A1:A1000,"apples") mcb wrote: How do i write a macro that will move to each cell in a column and, if the value meets a certain "IF" requirement, select it and add it to the data range for the "average function" to evaluate? (for xl 97) |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
JWolf,
Thanks a million for your help. I didn't know those functions existed. It sure simplified things didn't it? You saved me a lot of grief! Thanks again, mcb -----Original Message----- How about using worksheet functions to calculate average as follows: =SUMIF(A1:A1000,"apples")/COUNTIF(A1:A1000,"apples") mcb wrote: How do i write a macro that will move to each cell in a column and, if the value meets a certain "IF" requirement, select it and add it to the data range for the "average function" to evaluate? (for xl 97) . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
using a cell value to control a counter inside a macro and displaying macro value | Excel Worksheet Functions | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |