+ Reply to Thread
Results 1 to 8 of 8

#DIV , #VALUE VARIATIONS OF FUNCTIONS and CONDITIONAL FORMAT NOT CORRECTING ERROR

  1. #1
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Question #DIV , #VALUE VARIATIONS OF FUNCTIONS and CONDITIONAL FORMAT NOT CORRECTING ERROR

    The formula that returns a #DIV error has been changed various ways to make it go away (based on functions from several other posts) but for some reason those suggestions and even the one for 'conditional formatting' did not work.

    Would like to know why this particular function is being difficult and what part needs corrected?
    =SUM(C5:C12)/C13 returns #DIV

    Tried the following:
    =if(xx="","",formula)
    =IF(C13="","",C5:C12/C13) changes the #DIV to a #VALUE instead
    =IF(C13="0","0",C5:C12/C13) returns a #VALUE
    =IF(C13="","",(C5:C12/C13)) returns a #VALUE
    =IF(C13="","",(C5:C12)/C13) returns a #VALUE

    =IF(ISERROR(C5:C12)/C13,0,"")
    =IF(ISERROR(C5:C12)/C13,0)

    Thanks in advance for the guidance,
    C.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: #DIV , #VALUE VARIATIONS OF FUNCTIONS and CONDITIONAL FORMAT NOT CORRECTING ERROR

    Dividing a range by the value of another cell is not accepted. Can you post a small sample sheet showing what you want to do ?
    (Dividing by 0 or empty cell gives a DIV error)

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: #DIV , #VALUE VARIATIONS OF FUNCTIONS and CONDITIONAL FORMAT NOT CORRECTING ERROR

    What happened to the SUM part of your formula?

    Seems to be missing from all the formulas you tried.
    If posting code please use code tags, see here.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: #DIV , #VALUE VARIATIONS OF FUNCTIONS and CONDITIONAL FORMAT NOT CORRECTING ERROR

    In all your attempted resolutions, You're forgetting a critical part of the original formula
    =SUM(C5:C12)/C13

    So try
    =IF(C13="","",SUM(C5:C12)/C13)

  5. #5
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Re: #DIV , #VALUE VARIATIONS OF FUNCTIONS and CONDITIONAL FORMAT NOT CORRECTING ERROR

    Jonmo, I tried the one you provided and still no luck..
    Attached is a sample file for experimenting.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: #DIV , #VALUE VARIATIONS OF FUNCTIONS and CONDITIONAL FORMAT NOT CORRECTING ERROR

    Try this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Re: #DIV , #VALUE VARIATIONS OF FUNCTIONS and CONDITIONAL FORMAT NOT CORRECTING ERROR

    That's IT!! Thanks Norie!

    I always use the code tag box with the VBA code but had not heard that the small functions/formulas also needed to be in a code window.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: #DIV , #VALUE VARIATIONS OF FUNCTIONS and CONDITIONAL FORMAT NOT CORRECTING ERROR

    I don't know if they do, I just seem to have got into the habit of using the little fx button.

+ 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