Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Good afternoon!
I have a spreadsheet that includes all 12 month, however when it figures the yearly average I do not want it to include it when it does the average. I have posted the formula below. Can you please help me figure this out. =IF(C10=0,"0",AVERAGE(C10:N10)) Thank you in advance for your help. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
You may mean this =AVERAGE(IF(C10:N10<0,C10:N10,FALSE)) This will average c10:N10 excluding zero. It's an array which must be entered with CTRL+Shift+Enter. If you do it correctly Excel will put curly brackets around the formula {}. You can't type these yourself. Mike "C Kreig" wrote: Good afternoon! I have a spreadsheet that includes all 12 month, however when it figures the yearly average I do not want it to include it when it does the average. I have posted the formula below. Can you please help me figure this out. =IF(C10=0,"0",AVERAGE(C10:N10)) Thank you in advance for your help. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I read it that you are trying to exclude months that have a return of zero
or months that are still in the future. If so try: =IF(C10=0,0,SUM(C10:N10)/COUNT(C10:N10)) -- HTH Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "C Kreig" wrote in message ... Good afternoon! I have a spreadsheet that includes all 12 month, however when it figures the yearly average I do not want it to include it when it does the average. I have posted the formula below. Can you please help me figure this out. =IF(C10=0,"0",AVERAGE(C10:N10)) Thank you in advance for your help. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sandy-
It is not giving me the appropriate average of the months that have data. Jan - 127 Feb - 139 Mar - 157 Apr - 145 May - 125 Jun - 124 Jul - 123 Aug - 128 Sept - 0 Oct - 0 Nov - 0 Dec - 0 Year to date total is 1,068 Year to date Average is 133.50 With the formula you gave me it gives me an average of 89. "Sandy Mann" wrote: I read it that you are trying to exclude months that have a return of zero or months that are still in the future. If so try: =IF(C10=0,0,SUM(C10:N10)/COUNT(C10:N10)) -- HTH Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "C Kreig" wrote in message ... Good afternoon! I have a spreadsheet that includes all 12 month, however when it figures the yearly average I do not want it to include it when it does the average. I have posted the formula below. Can you please help me figure this out. =IF(C10=0,"0",AVERAGE(C10:N10)) Thank you in advance for your help. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Modify Sandy's formula to this
=IF(C10=0,0,SUM(C10:N10)/COUNTIF(C10:N10,"0")) Mike "C Kreig" wrote: Sandy- It is not giving me the appropriate average of the months that have data. Jan - 127 Feb - 139 Mar - 157 Apr - 145 May - 125 Jun - 124 Jul - 123 Aug - 128 Sept - 0 Oct - 0 Nov - 0 Dec - 0 Year to date total is 1,068 Year to date Average is 133.50 With the formula you gave me it gives me an average of 89. "Sandy Mann" wrote: I read it that you are trying to exclude months that have a return of zero or months that are still in the future. If so try: =IF(C10=0,0,SUM(C10:N10)/COUNT(C10:N10)) -- HTH Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "C Kreig" wrote in message ... Good afternoon! I have a spreadsheet that includes all 12 month, however when it figures the yearly average I do not want it to include it when it does the average. I have posted the formula below. Can you please help me figure this out. =IF(C10=0,"0",AVERAGE(C10:N10)) Thank you in advance for your help. |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Mike-
Thank you for your help, however I did this and now I get the #Value. Please advise. "C Kreig" wrote: Good afternoon! I have a spreadsheet that includes all 12 month, however when it figures the yearly average I do not want it to include it when it does the average. I have posted the formula below. Can you please help me figure this out. =IF(C10=0,"0",AVERAGE(C10:N10)) Thank you in advance for your help. |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Read my first reply again and enter the formula as an Array
Mike "C Kreig" wrote: Mike- Thank you for your help, however I did this and now I get the #Value. Please advise. "C Kreig" wrote: Good afternoon! I have a spreadsheet that includes all 12 month, however when it figures the yearly average I do not want it to include it when it does the average. I have posted the formula below. Can you please help me figure this out. =IF(C10=0,"0",AVERAGE(C10:N10)) Thank you in advance for your help. |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Mike-
You rock! Once I figured out the Array it worked!! "Mike H" wrote: Read my first reply again and enter the formula as an Array Mike "C Kreig" wrote: Mike- Thank you for your help, however I did this and now I get the #Value. Please advise. "C Kreig" wrote: Good afternoon! I have a spreadsheet that includes all 12 month, however when it figures the yearly average I do not want it to include it when it does the average. I have posted the formula below. Can you please help me figure this out. =IF(C10=0,"0",AVERAGE(C10:N10)) Thank you in advance for your help. |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Mike-
I am running into issues on the bottom of the spreadsheet. I am now pulling the data by quarters and it does not like the Zeros I am now getting the #DIV/0! 1st Quarter 141 (Jan-Mar Data) =AVERAGE(IF(C10:E10<0,C10:E10,FALSE)) 2nd Quarter 131 (Apr - Jun Data) =AVERAGE(IF(F10:H10<0,F10:H10,FALSE)) 3rd Quarter 126 (Jul - Sept Data) =AVERAGE(IF(I10:K10<0,I10:K10,FALSE)) 4th Quarter (all zeros) =AVERAGE(IF(L10:N10<0,L10:N10,FALSE)) (ERROR message #div/0!) Year to date: =AVERAGE(IF(B32:B35<0,B32:B35,FALSE)) (ERROR message #div/0!) "Mike H" wrote: Read my first reply again and enter the formula as an Array Mike "C Kreig" wrote: Mike- Thank you for your help, however I did this and now I get the #Value. Please advise. "C Kreig" wrote: Good afternoon! I have a spreadsheet that includes all 12 month, however when it figures the yearly average I do not want it to include it when it does the average. I have posted the formula below. Can you please help me figure this out. =IF(C10=0,"0",AVERAGE(C10:N10)) Thank you in advance for your help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculate average and not include zero values | Excel Discussion (Misc queries) | |||
Don't include errors in average | Excel Worksheet Functions | |||
How do I include average costs in my charts? | Charts and Charting in Excel | |||
Include date in concatenate statement | Excel Discussion (Misc queries) | |||
Include several choices in an IF statement. | Excel Worksheet Functions |