+ Reply to Thread
Results 1 to 5 of 5

#VALUE! error in if formula

  1. #1
    Forum Contributor
    Join Date
    02-03-2007
    Location
    Burleson, TX, USA
    MS-Off Ver
    2010
    Posts
    132

    #VALUE! error in if formula

    Hello all,

    The following formula is working onall counts except when cell n4 is blank. My desire is to have the cell that the formula resides in to be blank if n4 is blank, but instead I get aValue error

    =IF(N4>0,IF('Project info'!$B$8=50,D4/N4*10,IF('Project info'!$B$8=60,D4/N4*12,IF('Project info'!$B$8=40,D4/N4*8,IF(N4="",0)))),0)

    Thanks for any help,
    Mark

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    This should to the trick

    =IF(isblank(n4),"",if(N4>0,IF('Project info'!$B$8=50,D4/N4*10,IF('Project info'!$B$8=60,D4/N4*12,IF('Project info'!$B$8=40,D4/N4*8,IF(N4="",0)))),0))

  3. #3
    Forum Contributor
    Join Date
    02-03-2007
    Location
    Burleson, TX, USA
    MS-Off Ver
    2010
    Posts
    132
    Still getting the same error. Any other ideas??

    mark

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    =IF(N4="","",IF('Project info'!$B$8=50,D4/N4*10,IF('Project info'!$B$8=60,D4/N4*12,IF('Project info'!$B$8=40,D4/N4*8,IF(N4="",0)))))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Forum Contributor
    Join Date
    02-03-2007
    Location
    Burleson, TX, USA
    MS-Off Ver
    2010
    Posts
    132
    Thanks for all your help. Working great!!!


    Mark

+ 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