#REF! Error - copy/pasting data into cells, then cells on another sheet that = that cell displaying #REF!

lichldo

Board Regular
Joined
Apr 19, 2022
Messages
65
Office Version
  1. 365
Platform
  1. MacOS
Hello!

I have a sheet (named "Raw Data by Month") where we copy/paste in daily financial data from another program. This raw data sheet is just meant for the purpose of housing the information. I have a bunch of other sheets, in the same excel document, that pull from those cells to display the information in different ways and do different calculations.

In those other sheets, I have it pulled the data from that main tab by using a formula such as - ='Raw Data by Month'!B3

However, after our data is copy/pasted in to that main data sheet, the other sheets display the #REF! error and we have to redo everything to link to the correct cells

Is there any way to avoid this happening? Everything is set up in a structure to where we are not changing any cell locations or formulas, the only thing changing is the daily data getting copy/pasted into that first sheet that everything else pulls from
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Before you paste the new data, are you Deleting the cells of old data? Highlighting the old Data, right-click, select Delete; or choose from the menu. Using the Delete key on the keyboard is Not the same.
If so - that will break the formulas. Instead, use ClearContents (or press the Delete key on the keyboard, which also just clears the contents of the cells)
 
Upvote 0
Before you paste the new data, are you Deleting the cells of old data? Highlighting the old Data, right-click, select Delete; or choose from the menu. Using the Delete key on the keyboard is Not the same.
If so - that will break the formulas. Instead, use ClearContents (or press the Delete key on the keyboard, which also just clears the contents of the cells)

Nothing is being deleted - the cells are blank until the data is copy/pasted in
 
Upvote 0
Is just the value shown #REF or has the formula in the cell been changed?
 
Upvote 0
ok - so that means the cell that is referenced is deleted.. but if you're just doing a copy/paste, no deletion involved.. I'm not sure what's going on.
Even if you (or your Mac) were doing an Insert, B3 would change to B10 (unless you were referencing the last cell/column on the sheet).
Could there be something strange in the source from which you're copying? Do a copy/paste to another sheet, then copy/paste from there - does it still happen?
Paste Special, Values, to drop any formatting that could be doing something strange?

or.. are you doing a CUT and paste?
That could cause what you are describing
Update: it only causes a #REF in the formulas if the cells are blank. If I'm overwriting the data, then everything is fine.
 
Upvote 0
ok - so that means the cell that is referenced is deleted.. but if you're just doing a copy/paste, no deletion involved.. I'm not sure what's going on.
Even if you (or your Mac) were doing an Insert, B3 would change to B10 (unless you were referencing the last cell/column on the sheet).
Could there be something strange in the source from which you're copying? Do a copy/paste to another sheet, then copy/paste from there - does it still happen?
Paste Special, Values, to drop any formatting that could be doing something strange?

or.. are you doing a CUT and paste?
That could cause what you are describing
Update: it only causes a #REF in the formulas if the cells are blank. If I'm overwriting the data, then everything is fine.
so we are copy/pasting (not cut) from a csv export from our finance system - so that shouldnt be coming with any other formatting etc
 
Upvote 0
Well, obviously this isn't how Excel works ;) and it doesn't appear to be a user issue.
1. Are you using a 3rd party copy/paste program? Or definitely using Excel's menu options? If you've been using keyboard shortcuts, try the menu options.
2. Could IT have distributed something that's interfering.. I saw a mention of one company doing that, though the result was that copied formulas were being pasted as values automatically.
3. Have you tried creating a test workbook (as I've been doing). New workbook with 3 sheets - 1 for your "original data," 1 for your formulas, 1 for copy/paste the data (Raw Data by Month). I've also tested by putting the "original data" in a separate workbook and copy/paste to the Raw Data by Month. I also tested with a csv, but as you noted - those are clean files since they're text only. I've also tested with merged cells, blank Raw Data sheet, filled Raw Data sheet.
4. Do you have any addins installed? Have you tried testing with Excel in Safe Mode? Is that possible? I tried to find the steps, but all I can find is starting your Mac in Safe mode
 
Upvote 0
so we are copy/pasting (not cut) from a csv export from our finance system
And the csv is also open in Excel? Which version number/build of Excel do you have?
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,118
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top