+ Reply to Thread
Results 1 to 4 of 4

Averageif not excluding 0 values in column

  1. #1
    Registered User
    Join Date
    03-13-2017
    Location
    Australia
    MS-Off Ver
    365
    Posts
    2

    Averageif not excluding 0 values in column

    Hi All,

    I have a spreadsheet (will make it simple to make this easier). Column D has a date for date received , Column E has a date for date invoiced, Column F has a formula that works out the number of days between the two dates =DATEDIF(D10,E10,"d")

    In my spreadsheet I have 100 rows. Some rows have data and some do not. All rows in Column F have the formula to work out the number of days.

    I want to work out the average number of days in column F of rows for data that was invoiced prior to today's date. This is the formula I currently have:

    =AVERAGEIF(E9:E134,"<>"&TODAY(),F9:F134)

    The problem with this formula is, it is taking into account all 100 rows, not just the rows with data. How can I update the formula to ignore the '0' days in column F?

    Thank you in advance!

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Averageif not excluding 0 values in column

    Try this ...

    =AVERAGEIFS(F9:F134,F9:F134,">0",E9:E134,"<>"&TODAY())

  3. #3
    Registered User
    Join Date
    03-13-2017
    Location
    Australia
    MS-Off Ver
    365
    Posts
    2

    Re: Averageif not excluding 0 values in column

    That's it!!! Thank you so much!

  4. #4
    Registered User
    Join Date
    03-09-2017
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Re: Averageif not excluding 0 values in column

    Dear Rach
    You can create a new column G which it is valued by 0 and 1. After that you can use your avarageif with range of G.
    G is defined as =if(f9=0,0,1). I call it as data standardization.
    Hope it helps.

+ 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. Smallest values in a column excluding zeros and also an extra criteria
    By akash.ksa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2016, 10:03 AM
  2. Replies: 1
    Last Post: 03-03-2014, 11:06 AM
  3. Sumif column "O" for excluding values with duplicate values in column "F"
    By jobell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2013, 08:42 PM
  4. [SOLVED] AverageIf by excluding zeros?
    By Artis89 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-17-2012, 02:18 PM
  5. [SOLVED] Linking to a column of values, excluding duplicates?
    By bauerbach in forum Excel General
    Replies: 5
    Last Post: 06-25-2012, 02:13 PM
  6. [SOLVED] Organizing array into column excluding non zero values
    By Kybynn in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2012, 10:17 PM
  7. AverageIF excluding matching columsn over a number
    By los318 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-01-2011, 05:02 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