Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I need a formula to average cells only if there is a number in a cell.
Example in cell A1, A2,A3 A4 they all have a formulasand all 4 cells say 0.00 in cell A5 i have =average(A1:A4) So if I put 100 in cell A1 then my answer in cell A5 says 25 I Would like it to say 100 only average if the number is higher that 0.00 Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SUMIF(A1:A4,"0")/COUNTIF(A1:A4,"0")
or =AVERAGE(IF(A1:A40,A1:A4)) the latter entered with ctrl + shift & enter You might want to test for 0 in the cells because if all cells are zero it will return a div error =IF(COUNTIF(A1:A4,0)=4,0,rest of the formula -- Regards, Peo Sjoblom "delete automatically" wrote in message ... I need a formula to average cells only if there is a number in a cell. Example in cell A1, A2,A3 A4 they all have a formulasand all 4 cells say 0.00 in cell A5 i have =average(A1:A4) So if I put 100 in cell A1 then my answer in cell A5 says 25 I Would like it to say 100 only average if the number is higher that 0.00 Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() ok heres what I have. in cell D6 I have formula of =AVERAGE(D7:D10) which its at #div/0! in cell D11 = AVERAGE(D12:D15) which its at 85 in cell D16 =AVERAGE(D17:D210) which its at 50 in cell D3 I just want the average of cell D6,D11,and D16 is this possible and how? "Peo Sjoblom" wrote: =SUMIF(A1:A4,"0")/COUNTIF(A1:A4,"0") or =AVERAGE(IF(A1:A40,A1:A4)) the latter entered with ctrl + shift & enter You might want to test for 0 in the cells because if all cells are zero it will return a div error =IF(COUNTIF(A1:A4,0)=4,0,rest of the formula -- Regards, Peo Sjoblom "delete automatically" wrote in message ... I need a formula to average cells only if there is a number in a cell. Example in cell A1, A2,A3 A4 they all have a formulasand all 4 cells say 0.00 in cell A5 i have =average(A1:A4) So if I put 100 in cell A1 then my answer in cell A5 says 25 I Would like it to say 100 only average if the number is higher that 0.00 Thanks |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
So what was wrong with Peo's suggestion?
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "delete automatically" wrote in message ... ok heres what I have. in cell D6 I have formula of =AVERAGE(D7:D10) which its at #div/0! in cell D11 = AVERAGE(D12:D15) which its at 85 in cell D16 =AVERAGE(D17:D210) which its at 50 in cell D3 I just want the average of cell D6,D11,and D16 is this possible and how? "Peo Sjoblom" wrote: =SUMIF(A1:A4,"0")/COUNTIF(A1:A4,"0") or =AVERAGE(IF(A1:A40,A1:A4)) the latter entered with ctrl + shift & enter You might want to test for 0 in the cells because if all cells are zero it will return a div error =IF(COUNTIF(A1:A4,0)=4,0,rest of the formula -- Regards, Peo Sjoblom "delete automatically" wrote in message ... I need a formula to average cells only if there is a number in a cell. Example in cell A1, A2,A3 A4 they all have a formulasand all 4 cells say 0.00 in cell A5 i have =average(A1:A4) So if I put 100 in cell A1 then my answer in cell A5 says 25 I Would like it to say 100 only average if the number is higher that 0.00 Thanks |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
At one stage you say average only if there is a number in the cell, but
later you say only if the number is greater than zero. The AVERAGE function will only take account of cells with numbers in, and will ignore empty cells or those with text. If you want to ignore cells where the number is <=0, then try =AVERAGE(IF(A1:A40,A1:A4,"")) as an array formula (Control Shift Enter). -- David Biddulph "delete automatically" wrote in message ... I need a formula to average cells only if there is a number in a cell. Example in cell A1, A2,A3 A4 they all have a formulasand all 4 cells say 0.00 in cell A5 i have =average(A1:A4) So if I put 100 in cell A1 then my answer in cell A5 says 25 I Would like it to say 100 only average if the number is higher that 0.00 Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
from a group of cells.find average of cells containing values | Excel Discussion (Misc queries) | |||
Excel-only average cells if two cells in same row, meet two condit | Excel Worksheet Functions | |||
average cells, show 0 if nothing to average | Excel Discussion (Misc queries) | |||
average 2 cells (Mileage Divide by Gallons in two cells | Excel Discussion (Misc queries) | |||
Average Cells above 0 | Excel Discussion (Misc queries) |