+ Reply to Thread
Results 1 to 3 of 3

VBA to amend a range of Formulas

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Guernsey
    MS-Off Ver
    Excel 2010
    Posts
    80

    VBA to amend a range of Formulas

    Hi,

    This may not be in the right section but it covered VBA and Functions so please correct if wrong.

    Please see the attached spreadsheet, what i need to is to add an IFERROR argument to every formula that is showing the #REF! so it actually shows blank if the criteria is not met.

    However as you will see each formula has a difference reference so i cannot just a CTRL F, Replace All. And i also cannot do a CTRL F, Replace All for part of the formula, ie Replace =IF with =IFERROR(IF but because at the very end i also need to add the ,"") for the iferror argument, CTRL F wont work.

    I tried playing around with VBA which i think will work best, i tried the Find =IF and Replace with =IFERROR(IF argument followed by another argument to say insert at the end of cell ,"") but my VBA skills are not quite that advanced.

    Can anyone help.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA to amend a range of Formulas

    Hi,
    try it
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-11-2013
    Location
    Guernsey
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: VBA to amend a range of Formulas

    Perfect, thank you very much

+ 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