+ Reply to Thread
Results 1 to 5 of 5

Replacing formula values with text/raw values

  1. #1
    Registered User
    Join Date
    06-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    64

    Replacing formula values with text/raw values

    So I have a large section of data (standard Deviations) calculated. It's something like 2000x7. I need to delete rows of data but I can't have the standard deviation or rankings change based on this deletion of row. Therefore I need to replace all the formulas for my rankings (something like "=RANK(RC[-.....") so they're instead just the numbers.

    Below is a code I wrote up to replace the cell formulas with numbers but it takes a long time. Is there a quick way to replace these with just raw text values instead of formulas?

    Thanks!


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Replacing formula values with text/raw values

    You have two until/Loop and might be infinite, so avoid using until loop, instead use for next loop which is closed.

  3. #3
    Registered User
    Join Date
    06-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    64

    Re: Replacing formula values with text/raw values

    Will the for next loop be quicker?

    The loops I have now work fine they just don't work efficiently. I've stepped into them and they go through the rows fine, but it takes forever to go through 28,000 cells and calculate individual values like that. when I let the code run it produces good results, just not in a timely fashion -- so it's not running into any infinite issues.

    Is there a way copy a large range of cells just as their text values instead of their formula values, and then paste them right back in?

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Replacing formula values with text/raw values

    For example, instead of looping, you can use this line if you copy a fixed range.

    Please Login or Register  to view this content.
    Last edited by AB33; 07-08-2013 at 12:33 PM.

  5. #5
    Registered User
    Join Date
    06-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    64

    Re: Replacing formula values with text/raw values

    That worked perfectly! I was unaware of the additional options with pastespecial! Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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