Calculating an AVERAGE formula

w8n4fri

New Member
Joined
Dec 5, 2005
Messages
14
Hello,
I need some assistance in regards to calculating an AVerage of a workshet where the results have to go onto a different worksheet. Here is the formula that I have tried using but does not work...

=AVERAGE(IF('CompanyA'!I7:I33<>0,I7:I33,""))

what i am doing is trying to calculate the average of column I row 7 -33 but if there is a "0" in the columns do not calculate that row..
Any help would be great..
 
Hi Brian...
no I dont have negative numbers..they are time in minutes
ex..
00:30
00:15
00:10
00:00
00:00

so the average would be 18:33 minutes...
Hope this helps...I so appreciate evryones help...I know we will figure this out...
thank you..
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
w8n4fri,

Did you try my proposed formula: It work with the times you supplied. I get an average of 00:18 minutes. (just format the cell to Time 13:30.


Try
=SUM('Company'!I7:I33)/COUNTIF('Company'!I7:I33,">0")
 
Upvote 0
NVBC...
I beleive your formula works...I am going to test it still but from the couple of test so far it looks great...

Thank you to everyone that spent their time helping me......I am sure I will be back frequently as excel isnt a strong point for me..'

Thanks again..
 
Upvote 0
NBVC...
I beleive your formula works...I am going to test it still but from the couple of test so far it looks great...

Thank you to everyone that spent their time helping me......I am sure I will be back frequently as excel isnt a strong point for me..'

Thanks again..
 
Upvote 0
NBVC..
I ran in to one issue with your formula....
I am using the formula for multiple Companys that are on different sheets.
The problem is that some times there are no values that need to be entered for a specific client those leaving the worksheet blank.. Using you formula causes me to get a DIV/0 error if no time are entered for that sheet...Is there away to get around the error so that on my reporting sheet I dont get the DIV/0 error?
 
Upvote 0
Thank you to NBVC & Brian from Maui

A thanks to both of you..I was able to get the formula to work and produce the numbers that I needed.
Brian your formula worked..I had mistyped it in excel. Once I found the error it works perfect..
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top