+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : copy paste special formula

  1. #1
    Registered User
    Join Date
    12-03-2009
    Location
    Mobile, AL
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question copy paste special formula

    I need to be able to append formulas. The "copy" "paste special" "add formula" function is turning the formula from the first cell into a whole number before appending to the destination cell.

    example: cell 1a contains the formula 1+1+1
    cell 2a contains the formula 2+2+2

    I want to move the contents of cell 1a and append them to cell 2a. Copy, paste special, add formulas, this used to result in "(1+1+1)+(2+2+2)". Now what happens is "3+(2+2+2)". Cell 1a converts to a whole number.

    I need the integrity of the formulas to be visible after combining the cells.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: copy paste special formula

    Hi rtanner

    (2+2+2) is not really a forumlae it just 6
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: copy paste special formula

    Pike, it's a formula if you put an equal sign in front.

    A1 =1+1+1
    A2 =2+2+2

    When I copy A1, select A2 and use EDIT > PASTE SPECIAL > Add + Formulas, then I see this in A2:

    =(2+2+2)+(1+1+1)

    So this is working for me.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: copy paste special formula

    You can put ' before a formula to convert it to text. If you need A1 to evaluate to a number, I would suggest a helper column with the same formulas, then do a find and replace in that column for = and replace with '=. (This assumes there is no further = sign in the formulas. If there is, try to find a point where all formulas agree that is unique, such as =IF(AND... )

    My way assumes you want the cell to quite literally read the formulae. If you just want to have the basic formulae in there, use jbeaucaire's method. Note that this will make the sheet slower if you have to do this a large number of times or have a large dataset you're working with, since all the calculations will be done multiple times.
    Last edited by darkyam; 12-03-2009 at 04:46 PM.

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: copy paste special formula

    Not a forumula in the sense =(2+2+2)
    which =6
    why not just have 6

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: copy paste special formula

    Methinks you're taking the OP too literally. If it's really something more like =IF(AND(A1>B1,B1>C1),D1*E1,D2*E2)+..., it could make more sense.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: copy paste special formula

    Quote Originally Posted by pike View Post
    Not a forumula in the sense =(2+2+2)
    which =6
    why not just have 6
    I don't think the OP wants to examine that, just examine why his formulas aren't adding themselves together when applied with the PASTE SPECIAL.

  8. #8
    Registered User
    Join Date
    12-03-2009
    Location
    Mobile, AL
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: copy paste special formula

    Thanks guys. I unintentionally omitted the "=" sign in front of my formulas when composing my post (it is, however, in my worksheet formulas). Jbeaucaire is correct, it should work as stated =(1+1+1)+(2+2+2). Mine is not working - I thought it might be an anomoly to Excel2007, but if it's working for some of you, it should work for me.

    Back to the drawing board. I'll contact our IT people. Thanks again.

+ 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