+ Reply to Thread
Results 1 to 9 of 9

Averageif

  1. #1
    Registered User
    Join Date
    03-24-2014
    Location
    Kingman, az
    MS-Off Ver
    Excel 2013
    Posts
    49

    Averageif

    Please Login or Register  to view this content.
    I was using this before and it worked great. Now it is not. getting error #DIV/0!

    I am not sure how or why.

    Any ideas?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Averageif

    Hard to say without seeing a sample of your data, but are you sure your numbers/values are actually numbers, and not text? test with =isnumber()
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Averageif

    That would indicate that you do not have any numbers in Sheet10!C2:C7 that are >0

    Does it look like you do? The "numbers" may be formatted as text in which case AVERAGEIF won't recognise them
    Audere est facere

  4. #4
    Registered User
    Join Date
    03-24-2014
    Location
    Kingman, az
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: Averageif

    I changed Collumn C from general to number. No change

    I also tried this, again, no change.

    Please Login or Register  to view this content.
    I can not provide the actual document as it is to large. Sheet9 pushes the info to sheet10. Sheet 9 and 10 appropriate rows are listed as numbers, not general

  5. #5
    Registered User
    Join Date
    03-24-2014
    Location
    Kingman, az
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: Averageif

    Ok, you were right it is coming through as text. Apparently there was an error I didn't pay attention to on the column. So switching from general to a number did nothing. Any idea how to make that rome permanently be a number not text. Auto convert?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Averageif

    Changing the format will not change the contents of a cell, just it's appearance. Where is the data coming from inthe 1st place?

  7. #7
    Registered User
    Join Date
    03-24-2014
    Location
    Kingman, az
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: Averageif

    sheet 9 it than pushes to 10 with a Marcos code.
    Last edited by dohara; 04-29-2014 at 01:57 PM.

  8. #8
    Registered User
    Join Date
    03-24-2014
    Location
    Kingman, az
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: Averageif

    Please Login or Register  to view this content.

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Averageif

    Change the format of column from text to General. Then select the range then press F2 and then press Ctrl+Enter.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. AverageIf
    By LaserDance in forum Excel General
    Replies: 3
    Last Post: 07-15-2010, 02:46 PM
  2. AverageIf
    By larryg003 in forum Excel General
    Replies: 2
    Last Post: 06-19-2010, 07:27 PM
  3. Excel 2007 : Averageif
    By PaulMc in forum Excel General
    Replies: 6
    Last Post: 09-29-2008, 03:45 AM
  4. averageif
    By name in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2006, 12:30 PM
  5. averageif
    By rudy in forum Excel General
    Replies: 5
    Last Post: 04-27-2006, 06:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1