+ Reply to Thread
Results 1 to 7 of 7

AVERAGEIFS and identifying Numeric values

Hybrid View

  1. #1
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    AVERAGEIFS and identifying Numeric values

    OK, this should be simple but its Monday, I have a deadline and its bugging me.

    Im trying the get an AVERAGE of a column that contains a number between 0 and 5 OR the text "NA" (not an error of #NA), Im only interested in the numeric values, so I've tried:

    =AVERAGEIF(A:A,">=0",A:A)
    and

    =AVERAGEIF(A:A,"<>'NA'",A:A)
    but both return #DIV/0!
    Last edited by pjwhitfield; 08-10-2015 at 03:24 AM.
    If someone has helped you then please add to their Reputation

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: AVERAGEIFS and identifying Numeric values

    Not sure what you mean by getting the average of the text "NA"? Could you explain a bit further on that and/or upload a workbook example.

    For getting values between 0 and 5, try:

    =AVERAGEIFS(A:A,A:A,">=0",A:A,"<=5")

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: AVERAGEIFS and identifying Numeric values

    Apologies, I may have badly worded it. Im looking to do as you think, ie ignore the NA results and only get the average of those with 0,1,2,3,4 or 5 in.

    I've tried your solution and still get #DIV/0!

    Im checking my data column now to see if theres an entry out of the ordinary as both yours and my 1st ">=0" option should have returned an answer.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,173

    Re: AVERAGEIFS and identifying Numeric values

    Both your formula work OK for me as does AVERAGE suggested in following post.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,173

    Re: AVERAGEIFS and identifying Numeric values

    It would help if you posted a file.

  6. #6
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: AVERAGEIFS and identifying Numeric values

    Why not =AVERAGE(A:A)?

    I think it automatically ignores texts.

    EDIT: Ignore the above, I didn't fully read the query. My apologies.

    Having said that... are you sure the numbers you are seeing are in fact numeric and not stored as text?

  7. #7
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: AVERAGEIFS and identifying Numeric values

    quekbc nailed it, the data was imported from Excel and therefore came over as text, Ive added a helper column in to convert and all is good. Thanks all.

+ 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. Replies: 9
    Last Post: 11-18-2013, 07:40 AM
  2. [SOLVED] vba macros to force user to input numeric values for numeric values with hyphen
    By Abdur_rahman in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-28-2013, 01:05 PM
  3. [SOLVED] UDF to Vlookup multiple delimited values (numeric/non-numeric) and sum found values
    By Geert Rottiers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2013, 09:30 AM
  4. [SOLVED] Help find MAX value in one column when numeric & alph-numeric values are present
    By KevinAB in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-01-2013, 11:29 AM
  5. [SOLVED] Sum of numeric values within cells also containing non-numeric characters
    By Mike Brewer in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-24-2013, 09:16 AM
  6. averageifs not picking up values
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2012, 01:27 AM
  7. Extracting Numeric Values from an Alpha/Numeric String
    By Delkath in forum Excel General
    Replies: 5
    Last Post: 10-27-2010, 02:36 PM
  8. Identifying Numeric Values within a Range Formatted as Text
    By spchoube in forum Tips and Tutorials
    Replies: 16
    Last Post: 01-17-2007, 11:59 AM

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