+ Reply to Thread
Results 1 to 5 of 5

copy paste values except for formulas with =sum

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    copy paste values except for formulas with =sum

    Hello. I have a tab that has a bunch of sumif formulas. I want to copy paste special values all the formulas in a spreadsheet EXCEPT for the ones that are simple "SUM"= formulas. Spreadsheet attached.
    Attached Files Attached Files

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: copy paste values except for formulas with =sum

    Maybe something like this?

    Please Login or Register  to view this content.
    See the file attached..
    Attached Files Attached Files
    Last edited by NeedForExcel; 08-06-2015 at 02:30 AM.
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: copy paste values except for formulas with =sum

    This doesn't seem to be working. I just messed around and put =A3, =A4 in some cells and it doesn't paste special values. I want to do this for the entire worksheet so I'm not sure the range piece is necessary.

  4. #4
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: copy paste values except for formulas with =sum

    Oh, I think I get it. You just focused on the formulas with sumifs. That makes sense. Why do you use last cell? How does that work?

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: copy paste values except for formulas with =sum

    Hi,

    You had mentioned SUMIF in Post#1 hence I focused on SUMIF..

    I used the last cell cause it does not make sense to process the whole worksheet when there is no data? SpecialCells(xlLastCell) This line finds the last utilized cell and processes the loop only till then..

    Let me know if you need anything else..

+ 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. copy paste values for formulas
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 05-07-2015, 10:03 PM
  2. Copy Formulas and Paste into the Last Set # of Rows Only & Paste Values
    By Mr. Ice in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2014, 07:48 AM
  3. Copy paste only the format and formulas not values
    By sudharshan86 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2014, 07:53 AM
  4. Macro Copy Paste values not formulas lines above 0
    By bast0504 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2013, 01:30 PM
  5. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  6. Replies: 2
    Last Post: 03-27-2012, 06:37 PM
  7. Macro to Copy Paste Values and Formulas
    By thillis in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-19-2009, 11:55 AM

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