+ Reply to Thread
Results 1 to 7 of 7

Removing #VALUE! where a blank is required, help please

  1. #1
    Registered User
    Join Date
    07-29-2011
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    43

    Red face Removing #VALUE! where a blank is required, help please

    Hi,

    I need help to remove #VALUE! errors from the following formulas, which refer to a cell (Y) which also contains a formula. Basically, the three formulas wont read blank when Y is not displaying a value and I need them to be blank also.

    I have looked into using the ISERROR function but no idea where to insert it so I failed there.

    Help would be much appreciated! This is for a work project that is being implemented on Monday!

    =IF(N4+O4+Y4+Z4=0,"",IF(Y4+Z4=0,"Open",IF(TODAY()-Y4>=55,"Closed",IF(Z4=0,"Open","Closed"))))

    =IF(N4+O4+Y4+Z4=0,"",IF(O4+Y4+Z4=0,TODAY()-N4,IF(Y4+Z4=0,TODAY()-O4,IF(Z4="",Y4-O4,Z4-O4))))

    =IF(N4+O4+Y4+Z4=0,"",IF(N4+Z4=0,TODAY()-O4,IF(N4=0,Z4-O4,IF(Y4+Z4=0,TODAY()-N4,IF(Z4=0,Y4-N4,Z4-N4)))))


    Formula in Y is as follows:

    =IF(S4+T4+U4+V4+W4+X4=0,"",IF(T4+U4+V4+W4+X4=0,S4,IF(U4+V4+W4+X4=0,T4,IF(V4+W4+X4=0,U4,IF(W4+X4=0,V4,IF(X4=0,W4,X4))))))

    Many Thanks!

    Jenn
    Last edited by Jennasis; 07-29-2011 at 03:10 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need help with a couple of formulas please

    Welcome to the forum.

    Please take a few minutes to read the forum rules, and then amend your thread title accordingly.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-29-2011
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Need help with a couple of formulas please

    Quote Originally Posted by shg View Post
    Welcome to the forum.

    Please take a few minutes to read the forum rules, and then amend your thread title accordingly.

    Thanks.
    Apologies; updated with more precise title

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

    Re: Removing #VALUE! where a blank is required, help please

    The value of "" is called a null string (empty text string). You cannot add or subtract that from a number. For addition, you can get around that by using the SUM function (which will ignore null strings). ie. =SUM(N4,O4,Y4,Z4).

    Is it only your Y column that's giving null strings? You could modify your formulas to give 0 instead (and you can format the cells not to show zeros) i.e.

    =IF(S4+T4+U4+V4+W4+X4=0,0,IF(T4+U4+V4+W4+X4=0,S4,IF(U4+V4+W4+X4=0,T4,IF(V4+W4+X4=0,U4,IF(W4+X4=0,V4 ,IF(X4=0,W4,X4))))))
    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
    07-29-2011
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Removing #VALUE! where a blank is required, help please

    Quote Originally Posted by ChemistB View Post
    The value of "" is called a null string (empty text string). You cannot add or subtract that from a number. For addition, you can get around that by using the SUM function (which will ignore null strings). ie. =SUM(N4,O4,Y4,Z4).

    Is it only your Y column that's giving null strings? You could modify your formulas to give 0 instead (and you can format the cells not to show zeros) i.e.

    =IF(S4+T4+U4+V4+W4+X4=0,0,IF(T4+U4+V4+W4+X4=0,S4,IF(U4+V4+W4+X4=0,T4,IF(V4+W4+X4=0,U4,IF(W4+X4=0,V4 ,IF(X4=0,W4,X4))))))
    Thanks for responding

    Y needs to read as null when nothing is entered as it is a date and if there is no data in that row it needs to stay blank for reporting purposes, as do the other 3 that are currently showing #VALUE! . For that reason I have to use null instead of 0 there.

    The two formulae after the first "Open Closed" formula calculate the number of days that an item has been open and all the cells calculated from are dates.

    Thanks for your help

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

    Re: Removing #VALUE! where a blank is required, help please

    You can convert "" into a number (0) in your formulas by using N(Y4)

    So
    =IF(N4+O4+Y4+Z4=0,"",IF(Y4+Z4=0,"Open",IF(TODAY()-Y4>=55,"Closed",IF(Z4=0,"Open","Closed"))))
    becomes
    =IF(N4+O4+N(Y4)+Z4=0,"",IF(N(Y4)+Z4=0,"Open",IF(TODAY()-N(Y4)>=55,"Closed",IF(Z4=0,"Open","Closed"))))
    Does that work for you?

  7. #7
    Registered User
    Join Date
    07-29-2011
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Removing #VALUE! where a blank is required, help please

    Quote Originally Posted by ChemistB View Post
    You can convert "" into a number (0) in your formulas by using N(Y4)

    So
    =IF(N4+O4+Y4+Z4=0,"",IF(Y4+Z4=0,"Open",IF(TODAY()-Y4>=55,"Closed",IF(Z4=0,"Open","Closed"))))
    becomes
    =IF(N4+O4+N(Y4)+Z4=0,"",IF(N(Y4)+Z4=0,"Open",IF(TODAY()-N(Y4)>=55,"Closed",IF(Z4=0,"Open","Closed"))))
    Does that work for you?
    Thanks, will give that a go! Wish I could take my work home to test but will have to wait til Monday ><,

    Fingers crossed!

+ 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