OfficeForLawyers.com |
| Home | Word | Outlook | Excel | PowerPoint | OneNote |
1. How can I get an average of a group of cells but IGNORE any with a value of zero?
A: Use a formula like this: =SUMIF(your cells,>0)/COUNTIF(your cells, >0). Naturally you replace "your cells" with the cell range you're working with. That will total the values of all greater-than-zero cells and divide that total by the number of cells with greater-than-zero values. If you might also have some negative numbers in there you want to include then use "<>" instead of ">".