+ Reply to Thread
Results 1 to 5 of 5

Calculate a zero instead of the actual results?

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Calculate a zero instead of the actual results?

    Hello All, I use a formula to calculate the number of days between 2 dates. I use these results to get an average, but I don't want to average anything with 3 days or less. Kind of like a library book, it gets checked out on 1 date, then comes back in on another date. If the result equals 3 days (or less), how can I alter my formula [=IF(E36="","",(E36-A36))] to display a 0 (zero)? Here is the average formula I'm using - =AVERAGEIF(F36:F120,"<>0"), just looking to find an average with a result of 4 or more.
    Thanks,

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Calculate a zero instead of the actual results?

    Hi,

    not sure (my bad)

    =IF(E36="","",(A36-E36)*((A36-E36)>3))

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Calculate a zero instead of the actual results?

    You could continue using your existing formula to display correct number of days

    Just change the AVERAGEIF formula to

    =AVERAGEIF(F36:F120,">3")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Re: Calculate a zero instead of the actual results?

    Very nice!, both formulas are working good! Thank you both!

  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Calculate a zero instead of the actual results?

    Hi,

    thanks for providing kind feedback.

+ 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. Calculate OT with actual Time
    By CameraMan65 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-27-2014, 10:43 PM
  2. [SOLVED] Why macro needs double click to get the actual results ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-01-2013, 05:04 AM
  3. Replies: 1
    Last Post: 04-16-2010, 12:58 PM
  4. pasting results of a formula as actual numbers
    By kitbit in forum Excel General
    Replies: 3
    Last Post: 11-14-2007, 09:57 AM
  5. [SOLVED] Display results of formulas not the actual formula
    By Bridget from ATL in forum Excel General
    Replies: 3
    Last Post: 08-09-2006, 10:44 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