+ Reply to Thread
Results 1 to 3 of 3

Treat blanks as 0 and vice versa?

  1. #1
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2003
    Posts
    129

    Treat blanks as 0 and vice versa?

    Is there a way to tell a formula/chart to treat 0's as blanks and vice versa?
    For example I have a chart that averages the number of days late reports are. = AVERAGE(A1:A10)
    (A4)=3 (A5)=2 (A7)=2 (A8)=2 (A10)=2 The rest are blank. The answer would be 2.2. However if the rest were 0's then the answer would be 1.1

    I don't mind which method is possible I just need one of them for a reliable average regardless if there are 0's or not.

    *All data is fictional for the example.

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

    Re: Treat blanks as 0 and vice versa?

    Yes AVERAGE normally ignores blanks, if you want blanks to be treated like zeroes try

    =AVERAGE(INDEX(A1:A10+0,0))
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2003
    Posts
    129

    Re: Treat blanks as 0 and vice versa?

    Thanks a bunch, will try it first chance I get tomorrow.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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