+ Reply to Thread
Results 1 to 3 of 3

Using IF to run a formula to clean up #DIV/0!

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    California, US
    MS-Off Ver
    Excel 2003
    Posts
    5

    Using IF to run a formula to clean up #DIV/0!

    Hi All!
    I'm cleaning up a simple sheet to calculate daily and weekly averages. I want to use the IF function to only run the AVERAGE of a range if any of the cells has data in it, but leave the cell blank if the entire range is blank. I've played around with a few variations, and still get those darn #DIV/0! cells.. lol

    My range is E5:E9, and is part of a calendar, so there won't always be data in E5 (Monday).

    Thanks!
    T
    Attached Files Attached Files
    Last edited by thoma011; 06-15-2020 at 11:42 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Using IF to run a formula to clean up #DIV/0!

    Try in B8: =IFERROR(AVERAGE(B3:B7),"")

  3. #3
    Registered User
    Join Date
    03-06-2012
    Location
    California, US
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Using IF to run a formula to clean up #DIV/0!

    YES!! Thank you so much!!

+ 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. Formula to clean up list
    By Allen_dulles in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-30-2016, 05:07 AM
  2. [SOLVED] Coding Convention Questions #2 (To clean up or not to clean up)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 03-31-2014, 08:18 PM
  3. [SOLVED] VBA Code to optimize and clean data- clean out numerical/ or symbol
    By tracylsr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2012, 04:21 PM
  4. Clean Function to Clean Entire Sheet
    By gema in forum Excel General
    Replies: 7
    Last Post: 11-05-2009, 10:07 AM
  5. Replies: 8
    Last Post: 05-28-2009, 09:24 AM
  6. [SOLVED] CLEAN Formula in Excel
    By Kristen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2005, 08:06 PM
  7. [SOLVED] CLEAN Formula
    By Kristen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2005, 07:07 PM

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