Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code:
'Average applicable cells ignoring zeros Worksheets("Summary").Range("H5").Formula = "=Average('" & startsheet & ":" & endsheet & "'!H5)" The problem is that the formula as written includes zeros in the average. I need to ignore zeros. Some background: This is only a portion of a subroutine The routine then goes on to copy the newly writtem formula (note the relative fererence) to other selected cells on the sheet "Summary" The "startsheet" and "endsheet" strings used in the formula can change depending on which sheets are specified by the user so I need to keep this logic Can anyone help we with a formula to average the range specified, ignoring zeros? --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Average formula where blank cells are counted as zeros | Excel Worksheet Functions | |||
Average from three different coworkers excluding zeros formula? | Excel Discussion (Misc queries) | |||
Average ignoring Zeros | Excel Worksheet Functions | |||
Averaging, ignoring zeros | Excel Worksheet Functions | |||
Formula to average ignoring negatives? | Excel Discussion (Misc queries) |