+ Reply to Thread
Results 1 to 4 of 4

Clear out faulty refferences (#ADR!) from formulas

  1. #1
    Registered User
    Join Date
    01-03-2012
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    29

    Clear out faulty refferences (#ADR!) from formulas

    I have cells with formulas like:
    =sheet1!Y11+KS!Y8+sheet2!#ADR!+M12+P5+P21
    In my specific case it is a sum only (a more general solution would be preferable)

    When all cells are in the same sheet ie.:
    =#ADR!+M12+P5+P21...
    The following works OK, but is quite slow when there are couple hundred ranges to check.

    Please Login or Register  to view this content.
    I know how to force it to work for sheet2!#ADR! cases, but it would be even slower.
    I have some ideas with other text functions...

    But I bet there is a better way, like 5 lines of code
    I would greatly appreciate even the vaguest hints. What is the smart way to do it?
    Last edited by Gzdnkh; 05-09-2016 at 01:30 AM.

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

    Re: Clear out faulty refferences (#ADR!) from formulas

    In this case, excel will perform calculations every time it finds a formula, etc. in a cell to calculate. In this case, it's pretty much calculating all the time. Try turning off auto calculation at the beginning of the code and back on at the end. Something like...
    Please Login or Register  to view this content.
    This will only run calculations when the code has finished running which should speed it up for you.
    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

  3. #3
    Registered User
    Join Date
    01-03-2012
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Clear out faulty refferences (#ADR!) from formulas

    Thank you for the tip.

    I ended up using following:
    Please Login or Register  to view this content.

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

    Re: Clear out faulty refferences (#ADR!) from formulas

    You're welcome, glad you were able to get it to work.

+ 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. Clear static formulas, but leave linked formulas
    By pacerx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2013, 05:08 AM
  2. [SOLVED] Index formula returning wrong row refferences
    By JO505 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-26-2013, 05:08 PM
  3. Cell refferences in a macro
    By BigFish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2009, 08:57 PM
  4. Faulty Code
    By gizoku00 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-08-2008, 04:09 PM
  5. Replies: 13
    Last Post: 06-20-2006, 09:10 AM
  6. How to copy an array without changing relative cell refferences?
    By Dmitry in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-20-2006, 09:10 AM

Tags for this Thread

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