+ Reply to Thread
Results 1 to 5 of 5

I need to make these forumulas not show #DIV/0!

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    america
    MS-Off Ver
    2007
    Posts
    14

    I need to make these forumulas not show #DIV/0!

    I need to have these not show that I am dividing by 0. I just dont know how to write the IF error into it. thank you for your help

    =(SUM(M4:M1079)-SUM(L4:L1079))/ABS(SUM(M4:M1079))

    =(SUM(G2:G1079)-SUM(L2:L1079))/ABS(SUM(G2:G1079))

    =(M4-L4)/ABS(M4)*100

    =(G4-L4)/ABS(G4)*100

    Bonus question: Is there a way to make my formulas lock to a cell and not be able to be altered, but still be able to enter text and highlight and change the sheet?

  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,463

    Re: I need to make these forumulas not show #DIV/0!

    Q1: use IFEROR.

    Q2: unlock the cells where you want input and then protect the sheet.

    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
    Registered User
    Join Date
    06-11-2015
    Location
    america
    MS-Off Ver
    2007
    Posts
    14

    Re: I need to make these forumulas not show #DIV/0!

    I appreciate your help
    but i do not know how to write the IF ERROR into the formulas

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: I need to make these forumulas not show #DIV/0!

    IFERROR works like this
    =IFERROR(your formula, what you want if there's an error)

    So for first formula

    =IFERROR((SUM(M4:M1079)-SUM(L4:L1079))/ABS(SUM(M4:M1079)), "") returns a null set on error
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    06-11-2015
    Location
    america
    MS-Off Ver
    2007
    Posts
    14

    Re: I need to make these forumulas not show #DIV/0!

    this worked!
    thank you

+ 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. [SOLVED] Multiple IF forumulas
    By ExcelDummy77 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-09-2015, 02:40 PM
  2. Replies: 1
    Last Post: 01-24-2012, 02:22 PM
  3. Can IF, AND, and OR forumulas be combined?
    By coast331 in forum Excel General
    Replies: 2
    Last Post: 11-02-2008, 05:08 PM
  4. Forumulas in colums
    By gbscustoms in forum Excel General
    Replies: 1
    Last Post: 01-18-2008, 06:02 PM
  5. Help with = if forumulas
    By sarahwynne in forum Excel General
    Replies: 4
    Last Post: 11-10-2006, 05:12 AM
  6. Column Forumulas
    By GuitarFingers in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-24-2006, 03:10 AM
  7. Replies: 0
    Last Post: 01-12-2005, 10:06 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