G oog le BadWeB | Login/out | Topics | Search | Custodians | Register | Edit Profile


Buell Forum » Quick Board » Archive through April 02, 2016 » Help with Excel? « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Pwnzor
Posted on Saturday, March 19, 2016 - 07:47 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

I need to get the average of all the values in a particular column that gets longer every day... without having to change the formula every time I add a field to the bottom of the column.

=AVERAGE(B2:B150) - I need this to ignore the blank fields in the column, and only average everything with a value above zero.
Top of pagePrevious messageNext messageBottom of page Link to this message

Socoken
Posted on Saturday, March 19, 2016 - 08:50 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

Can you try
=AVERAGE(B:B)

In just experimenting, it works for me with Excel 2016.
Top of pagePrevious messageNext messageBottom of page Link to this message

Pwnzor
Posted on Saturday, March 19, 2016 - 10:02 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

Still getting the division by zero error...



Top of pagePrevious messageNext messageBottom of page Link to this message

Court
Posted on Saturday, March 19, 2016 - 10:09 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

You can do a "count" of the column. It will count the number of entries.

Exp:

5
8
9

Count = 3

There's your denominator.

Sum the column for your numerator and do the math.
Top of pagePrevious messageNext messageBottom of page Link to this message

Hootowl
Posted on Saturday, March 19, 2016 - 10:15 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

Average (b: b) should work. But you can also try averageif where the criterion is >0.

(Message edited by Hootowl on March 19, 2016)
Top of pagePrevious messageNext messageBottom of page Link to this message

Sifo
Posted on Saturday, March 19, 2016 - 10:25 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

I tried it in Excel 2010 and it works. I do get the divide by zero error until there's numeric data in the column being averaged, but it looks like you have that.
Top of pagePrevious messageNext messageBottom of page Link to this message

Macbuell
Posted on Saturday, March 19, 2016 - 11:14 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

Do an IFERROR function that will enter a value if there is an error. You can use "" to have the value be blank or "0" if you want it to be zero.

I do this all the time to get rid of that stupid Div/0 error.
Top of pagePrevious messageNext messageBottom of page Link to this message

Sifo
Posted on Saturday, March 19, 2016 - 11:20 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

The thing I don't get is that he's got numeric data in column H. It SHOULDN'T be dividing by zero. IFERROR is just going to hide what's going wrong.
Top of pagePrevious messageNext messageBottom of page Link to this message

Macbuell
Posted on Saturday, March 19, 2016 - 11:40 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

He shouldn't be getting the Div/0 error in the average formula unless that error is already present in the MPG column. Use the IFERROR function for the MPG Calc and then the average formula should work just fine. At least that's what I think without looking at the actual worksheet.
Top of pagePrevious messageNext messageBottom of page Link to this message

Torquehd
Posted on Sunday, March 20, 2016 - 03:40 am:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

DON'T DIVIDE BY ZERO!!!

Top of pagePrevious messageNext messageBottom of page Link to this message

Xdigitalx
Posted on Sunday, March 20, 2016 - 09:03 am:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

I wish I learned Excel years ago.
Top of pagePrevious messageNext messageBottom of page Link to this message

Pwnzor
Posted on Sunday, March 20, 2016 - 03:58 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

OK, I've got it...

By using the IFERROR function in the column where the AVERAGE draws it's data, it eliminates the problem.



Top of pagePrevious messageNext messageBottom of page Link to this message

Macbuell
Posted on Sunday, March 20, 2016 - 11:35 pm:   Edit Post Delete Post View Post/Check IP Print Post    Move Post (Custodian/Admin Only) Ban Poster IP (Custodian/Admin only)

Cool. Glad it worked.
« Previous Next »

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Post as "Anonymous" (Valid reason required. Abusers will be exposed. If unsure, ask.)
Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Tree View | Search | User List | Help/Instructions | Rules | Program Credits Administration