Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
average values in non-contiguous cells, ignoring 0 values
How do I average the values in non-contiguous cells, while ignoring cells
with 0 values? I tried the average function, but the IF conditional seems to recognize only contiguos cells. I keep getting the "The formula you entered contains an error..." message, and cannot execute the F2 ctl+shift+enter command. Any ideas? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
average values in non-contiguous cells, ignoring 0 values
One way, assuming the noncontiguous range is G7:G9,G12:G14
=SUM(G7:G9,G12:G14)/SUMPRODUCT((G7:G9<0)+(G12:G14<0)) "RWormdahl" wrote: How do I average the values in non-contiguous cells, while ignoring cells with 0 values? I tried the average function, but the IF conditional seems to recognize only contiguos cells. I keep getting the "The formula you entered contains an error..." message, and cannot execute the F2 ctl+shift+enter command. Any ideas? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
average values in non-contiguous cells, ignoring 0 values
Sorry - that doesn't work if the ranges are not the same size.
See Ragdyer's post here - I think your question is that same as this one: http://www.microsoft.com/office/comm...6-53b7536f6155 "JMB" wrote: One way, assuming the noncontiguous range is G7:G9,G12:G14 =SUM(G7:G9,G12:G14)/SUMPRODUCT((G7:G9<0)+(G12:G14<0)) "RWormdahl" wrote: How do I average the values in non-contiguous cells, while ignoring cells with 0 values? I tried the average function, but the IF conditional seems to recognize only contiguos cells. I keep getting the "The formula you entered contains an error..." message, and cannot execute the F2 ctl+shift+enter command. Any ideas? |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
average values in non-contiguous cells, ignoring 0 values
Or it could be modified
SUM(G7:G9,G12:G15)/(SUMPRODUCT(--(G7:G9<0))+SUMPRODUCT(--(G12:G15<0))) "JMB" wrote: One way, assuming the noncontiguous range is G7:G9,G12:G14 =SUM(G7:G9,G12:G14)/SUMPRODUCT((G7:G9<0)+(G12:G14<0)) "RWormdahl" wrote: How do I average the values in non-contiguous cells, while ignoring cells with 0 values? I tried the average function, but the IF conditional seems to recognize only contiguos cells. I keep getting the "The formula you entered contains an error..." message, and cannot execute the F2 ctl+shift+enter command. Any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Average only cells that contain numbers | Excel Worksheet Functions | |||
Excel-only average cells if two cells in same row, meet two condit | Excel Worksheet Functions | |||
average formula ingoring empty cells | Excel Worksheet Functions | |||
omiting cells in average calcs | Excel Discussion (Misc queries) | |||
30 Day Moving Average Ignoring Blank Cells | Excel Worksheet Functions |