+ Reply to Thread
Results 1 to 5 of 5

Help modifying macro to wrap iferror formulas around existing formulas

  1. #1
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Help modifying macro to wrap iferror formulas around existing formulas

    Hello, I am using the macro below to wrap selected formulas with iferror formulas. How can I change it so that instead of showing a 0 if there is an error, it shows a blank cell. If I was writing the formula it would be =iferror((someformulahere),"").



    Please Login or Register  to view this content.
    Thanks!
    Last edited by dcgrove; 02-17-2012 at 11:11 AM.

  2. #2
    Forum Contributor
    Join Date
    02-08-2012
    Location
    South Suffolk
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: Help modifying macro to wrap iferror formulas around existing formulas

    This is a nice idea you have and a similar bit of code would be useful for error trapping in Excel 2003.
    You could try
    Please Login or Register  to view this content.
    Explicitly declaring the double-double quote makes it more obvious than using lots of ""s.
    Regards.
    Last edited by AndyPS; 02-16-2012 at 07:13 PM. Reason: additional comment

  3. #3
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Re: Help modifying macro to wrap iferror formulas around existing formulas

    That worked!

    Thanks!

  4. #4
    Forum Contributor
    Join Date
    02-08-2012
    Location
    South Suffolk
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: Help modifying macro to wrap iferror formulas around existing formulas

    Great - thanks for the feedback. I'll be adding it to my tool-kit as well.

  5. #5
    Registered User
    Join Date
    05-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Help modifying macro to wrap iferror formulas around existing formulas

    Modified the code so the "=IFERROR" wouldnt wrap around the formula multiple times if there was already an IFERROR statement in place.

    Please Login or Register  to view this content.

+ 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