Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Hi I have 4 columns with an average function on the bottom, however not all the columns are used all the time, resulting in an error (#DIV/0!). How do I calculate the average only if the cells are used. If I don't used one of the columns I would like it to stay blank or return 0 thanks marvin -- marvinks ------------------------------------------------------------------------ marvinks's Profile: http://www.excelforum.com/member.php...o&userid=37188 View this thread: http://www.excelforum.com/showthread...hreadid=568964 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() enter following formula at the bottom of your columns instead of simple AVERAGE function. suppose your data is in col A range(A1:A50), you should change this range for each column. =IF(ISERROR(AVERAGE(A1:A50)),"",AVERAGE(A1:A50)) marvinks Wrote: Hi I have 4 columns with an average function on the bottom, however not all the columns are used all the time, resulting in an error (#DIV/0!). How do I calculate the average only if the cells are used. If I don't used one of the columns I would like it to stay blank or return 0 thanks marvin -- starguy ------------------------------------------------------------------------ starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434 View this thread: http://www.excelforum.com/showthread...hreadid=568964 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() marvinks wrote: Hi I have 4 columns with an average function on the bottom, however not all the columns are used all the time, resulting in an error (#DIV/0!). How do I calculate the average only if the cells are used. If I don't used one of the columns I would like it to stay blank or return 0 thanks marvin -- marvinks Hi marvinks Try: =IF(ISERR(AVERAGE(A1:A4)),0,AVERAGE(A1:A4)) Adjust ranges as necessary. Regards Steve |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() thanks everyone, I'm off to the races Marvin -- marvinks ------------------------------------------------------------------------ marvinks's Profile: http://www.excelforum.com/member.php...o&userid=37188 View this thread: http://www.excelforum.com/showthread...hreadid=568964 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
omiting cells in average calcs | Excel Discussion (Misc queries) | |||
Average range including blank cells: #DIV/0! | Excel Worksheet Functions | |||
Imported Data creates blank cells that aren't really blank | Excel Worksheet Functions | |||
average price of 4 columns of figures but some cells can be blank | Excel Worksheet Functions | |||
average price of 4 columns of figures but some cells can be blank | Excel Worksheet Functions |