+ Reply to Thread
Results 1 to 5 of 5

Amend formula to include ISERROR

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Amend formula to include ISERROR

    Hi,


    can any please advise of the syntax required to amend the formula
    Please Login or Register  to view this content.
    =DATEVALUE(TRIM(Input!B2))
    Please Login or Register  to view this content.
    to include ISERROR to prevent #VALUE! being returned.

    Any assistance would be greatly appreciated

    Many thanks in advance


    Regards


    Rob
    Rob

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Amend formula to include ISERROR

    =IFERROR(your_formula,"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Amend formula to include ISERROR

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


    Oops....Ali already provided it.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Amend formula to include ISERROR

    Quote Originally Posted by robertguy View Post
    can any please advise of the syntax required to amend the formula =DATEVALUE(TRIM(Input!B2)) to include ISERROR to prevent #VALUE! being returned.
    IFERROR is preferred. But you must use ISERROR if you are using a pre-XL2007 version or saving as "xls". In that case:

    =IF(ISERROR(DATEVALUE(TRIM(Input!B2))), "", DATEVALUE(TRIM(Input!B2)))

  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,944

    Re: Amend formula to include ISERROR

    Seeing as teh title is asking for ISERROR and not IFERROR, I would go with Joe's suggestion, otherwise IFERROR might be a better option.
    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

+ 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: 17
    Last Post: 08-26-2014, 01:05 PM
  2. Need to amend a timesheet formula
    By The New Fat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2013, 10:01 AM
  3. [SOLVED] Amend formula to include a certain creteria
    By robertguy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-11-2013, 04:47 AM
  4. [SOLVED] Extract text from a string of text (amend formula to include new criteria)
    By robertguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2013, 04:53 PM
  5. Replies: 1
    Last Post: 12-15-2011, 08:43 PM
  6. Kindly amend this formula
    By darkhangelsk in forum Excel General
    Replies: 1
    Last Post: 08-28-2009, 01:49 PM
  7. Amend formula to include addition condition
    By Pat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2005, 12:06 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