+ Reply to Thread
Results 1 to 6 of 6

Paste a value into a referenced cell

Hybrid View

  1. #1
    Registered User
    Join Date
    12-19-2019
    Location
    Montreal, Québec, Canada
    MS-Off Ver
    Office 365 for Mac
    Posts
    4

    Paste a value into a referenced cell

    I've been using excel for years but have not found a way to solve this issue which seems like it should be simple (or unnecessary even).
    If you have 3 columns of data (A, B, C) such as dollars.
    Now say column D is a formula of =A+B+C
    If the values in row 23 are: A23=1, B23=20, C23=10 then D23=31
    My expectation if that if I cut and paste a value e.g. 22 into B23 that D23 will simply update to 42, just as if I typed in that cell (or even copy-pasted into the cell).
    What actually happens is D23 shows a #REF! error (formula now changed to =A23+#REF!+C23, as does every cell below it.
    Even fixing D23 by copying the formula back into it doesn't fix the ones below it.

    It seems to me that it's a fairly normal thing to want to change the values in a cell that is being referenced. Cut-paste is a valid use case here as moving data around is normal too.
    The work-around is to copy-paste then go and delete the original cell. This seems to be an unnecessary extra step.

    Anyone have a faster way to tell excel that cut-paste a value means I want to paste that value into the cell vs replace the cell itself?

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    MA, USA
    MS-Off Ver
    365(PC) V:2412
    Posts
    1,477

    Re: Paste a value into a referenced cell

    the only way i know how is to use the indirect formula.
    =INDIRECT("A1")+INDIRECT("B1")+INDIRECT("C1")
    this can get complicated as you would need to adjust the formula so that you are able to drag and drop it down without having to update it manually.

  3. #3
    Registered User
    Join Date
    12-19-2019
    Location
    Montreal, Québec, Canada
    MS-Off Ver
    Office 365 for Mac
    Posts
    4

    Re: Paste a value into a referenced cell

    Thanks - I'll take a look at this as a work-around.

  4. #4
    Registered User
    Join Date
    12-19-2019
    Location
    Montreal, Québec, Canada
    MS-Off Ver
    Office 365 for Mac
    Posts
    4

    Re: Paste a value into a referenced cell

    Quote Originally Posted by dosydos View Post
    the only way i know how is to use the indirect formula.
    =INDIRECT("A1")+INDIRECT("B1")+INDIRECT("C1")
    this can get complicated as you would need to adjust the formula so that you are able to drag and drop it down without having to update it manually.
    Thanks - I'll take a look at this as a work-around.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.97.2 for Mac MS 365
    Posts
    8,708

    Re: Paste a value into a referenced cell

    it doesn't happen if I use =SUM(A23:C23) and use copy and paste or cut and paste. Only if I use the formula like you have as =A23+B23+C23.
    maybe change your formula to a sum formula?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  6. #6
    Registered User
    Join Date
    12-19-2019
    Location
    Montreal, Québec, Canada
    MS-Off Ver
    Office 365 for Mac
    Posts
    4

    Re: Paste a value into a referenced cell

    Hi Sambo Kid - the actual formula isn't really A+B+C, that was just a simplified example. I'll try a few variants though - just wasn't thinking the solution was to change the formula; thought it would be something related to the paste action itself, similar to paste values vs formula but instead paste content...

+ 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. Replies: 2
    Last Post: 09-27-2016, 09:34 AM
  2. [SOLVED] Formula to copy and paste if referenced cell has extended value (more than one word)
    By stpeter in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-09-2016, 10:59 AM
  3. [SOLVED] Formula to copy and paste if referenced cell has specifc value
    By stpeter in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-03-2016, 01:13 PM
  4. Code to paste image from filename into cell that is referenced?
    By ChristophExcel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-20-2014, 01:32 PM
  5. Replies: 1
    Last Post: 02-18-2013, 11:36 AM
  6. Sorting Referenced Cells in VBA and Keeping Them Referenced
    By BrownTeddyBear in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2009, 06:15 AM
  7. cut and paste over referenced cells
    By humboldtguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2008, 10:28 PM

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