+ Reply to Thread
Results 1 to 12 of 12

Hiding #VALUE! from view

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    agearg
    MS-Off Ver
    Excel 2003
    Posts
    4

    Hiding #VALUE! from view

    Hello eveyone,

    I am finished with my simple excel file. The formula in F4 is working fine(thanks to a user on this page!), however it is displaying #VALUE!. Once I input date and ZULU time into D4 and E4 I see the right calculation. I just want to hide #VALUE! from view and dont need to change anything. I have all ready turned off error checking via options, formulas, uncheck enable error checking. What else can I do??

    Thanks a lot for any help!


    -Jonathan

    HOBBS MASTER.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Hiding #VALUE! from view

    Hi and welcome to the forum

    Try this adjustment...
    =IF(OR(D3="",E3=""),"",TEXT((DATEVALUE("20"&RIGHT(LEFT(E3,FIND(" ",E3)-1),2)&"/"&LEFT(E3,FIND("/",E3,FIND("/",E3)+1)-1))+TIMEVALUE(LEFT(RIGHT(E3,5),2)&":"&LEFT(RIGHT(E3,3),2))-(DATEVALUE("20"&RIGHT(LEFT(D3,FIND(" ",D3)-1),2)&"/"&LEFT(D3,FIND("/",D3,FIND("/",D3)+1)-1))+TIMEVALUE(LEFT(RIGHT(D3,5),2)&":"&LEFT(RIGHT(D3,3),2)))),"[h]+mm"))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Hiding #VALUE! from view

    If you are using Excel 2007+, there is a new function called IFERROR...

    But it looks like you are still using 2003, so you can use this... which I'm assuming E4 has to be filled in for your formula to work...

    =IF(E3="","",your formula)

  4. #4
    Registered User
    Join Date
    10-18-2013
    Location
    agearg
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Hiding #VALUE! from view

    Thanks a lot FDibbins. It worked perfectly!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Hiding #VALUE! from view

    Your profile says 2003, but the file you uploaded suggests 2007 or later? Please update your profile

    If you are in fact using 2007 or later, djapigo's IFERROR() suggestion would be a better option to try

  6. #6
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Hiding #VALUE! from view

    75% shorter / elegant

    =IFERROR(TEXT(SUBSTITUTE(REPLACE(E3,LEN(E3)-2,,":"),"Z",)-SUBSTITUTE(REPLACE(D3,LEN(D3)-2,,":"),"Z",),"[h]+mm"),"")

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Hiding #VALUE! from view

    Teethless, its all very well giving "75% shorter / elegant" formulas if the OP understands what you are doing. Without a detailed explaination, your fancy formulas are pretty much usless to anyone else who wants to replicate or modify them.

    So perhaps consider including a "how it works", or why even bother?

  8. #8
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Hiding #VALUE! from view

    Quote Originally Posted by FDibbins View Post
    Teethless, its all very well giving "75% shorter / elegant" formulas if the OP understands what you are doing. Without a detailed explaination, your fancy formulas are pretty much usless to anyone else who wants to replicate or modify them.

    So perhaps consider including a "how it works", or why even bother?
    You're very rude and should be banned this forum

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Hiding #VALUE! from view

    How is asking for an explanaition of your formula rude?

    and also...
    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Hiding #VALUE! from view

    If you enter the dates/times as true Excel dates/times then this would be very simple.

    Instead of this:

    6/4/08 1406Z..........6/5/08 0402Z

    Do this:

    6/4/08 2:06 PM......6/5/08 4:02 AM

    Then, you can use this much simpler and efficient formula:

    =IF(COUNT(D3:E3)<2,"",E3-D3)

    Format as [h]:mm

    Why fight with Excel when you can work with it?
    Last edited by Tony Valko; 10-19-2013 at 08:40 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Hiding #VALUE! from view

    Thanks Tony, very slick and eligant

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Hiding #VALUE! from view

    So, what % shorter and elegant is my suggestion?

+ 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. Replies: 11
    Last Post: 01-20-2012, 02:36 PM
  2. protecting and hiding sheets from view
    By rookie989 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-2011, 02:55 PM
  3. Grey column hiding view of workbook
    By bstacy in forum Excel General
    Replies: 1
    Last Post: 04-22-2008, 05:33 PM
  4. Hiding from view workbook copy/paste routines?
    By scadaman29325 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2007, 08:38 AM
  5. [SOLVED] Hiding a sheet from view
    By Hall in forum Excel General
    Replies: 1
    Last Post: 10-05-2005, 08:05 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