+ Reply to Thread
Results 1 to 3 of 3

If/Then Formula Help

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    If/Then Formula Help

    I'm struggling to figure out an if/then formula that will calculate the average of the previous cells and ignore any cells that have the value of "0." I only want an average of any cell that has a number <0. How do I put this into a formula?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,091

    Re: If/Then Formula Help

    Typically, use =SUM(the range)/COUNTIF(the range,"<>0")


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,604

    Re: If/Then Formula Help

    Use AVERAGEIF, like this:

    =AVERAGEIF(A1:A10,"<>0")

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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