+ Reply to Thread
Results 1 to 7 of 7

#value!

Hybrid View

  1. #1
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    #value!

    Hi all,
    I have the following formula and only on some occasions it is displaying #VALUE!
    =IF(AF35>0,J35/H35,0)
    There is text in the cell H35 which is derived from a link to a different sheet, however this does not seem to be the problem because some of the cells are ok and don't produce the error even if i write text into them?
    Can anyone please help me solve this issue
    Thanks
    loopiloo

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,508

    Re: #value!

    you could change it to this...
    =IFERROR(IF(AF35>0,J35/H35,0),0)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: #value!

    Quote Originally Posted by Sambo kid View Post
    you could change it to this...
    =IFERROR(IF(AF35>0,J35/H35,0),0)
    Only if OP is using Excel 2007 or higher otherwise IF(ISERROR(
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,508

    Re: #value!

    Only if OP is using Exce3 2007 or higher otherwise IF(ISERROR(
    U R right.
    of course the OP doesn't list which version but...
    you know i'm seeing more and more posters lately not listing their excel versions.

  5. #5
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: #value!

    That error will happen is you have a letter or non-divisible character in J35 or H35
    Try
    =IF(AND(AF35>0,ISNUMBER(H35),ISNUMBER(J35),H35>0),J35/H35,0)
    Also this will avoid div/0 errors
    Last edited by Speshul; 06-20-2014 at 12:24 PM.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: #value!

    @Sambo kid,
    This issue has been recently addressed by Tony Valko so hopefully the administration will make it mandatory.

    For pre-2007 version use:

    =IF(ISERROR(IF(AF35>0,J35/H35,0)),0,IF(AF35>0,J35/H35,0))
    Last edited by AlKey; 06-20-2014 at 05:11 PM.

  7. #7
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: #value!

    Thanks a lot guys...
    I used =IF(AND(AF25>0,ISNUMBER(H25),ISNUMBER(J25),H25>0),J25/H25,0) and it worked fine...
    OP is 2007
    loopiloo

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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