Excel - paste from another .xls file? - excel

Needed to copy in some cumbersome data. Looked like it was working ok until I closed the source file (that I pasted FROM). This makes all the pasted formulas in the destination file change to #REF!
Anyway to fix this?

If you want to copy formulas to a new range of cells, just copy the cells containing the formulas, hit ALT+E S F. You can achieve the same effect by dragging the formula cell to new range.

Related

Prevent Excel from altering formulas to #REF on opening the referenced workbook

Excel changes formulas when I open the referenced workbook, and wont change them back. Original Formula:
=IF(condition;'\\sharepoint.host.com\path\[Filename.xlsx]Sheetname'!A1;"")
by Excel modified formula:
=IF(condition;'\\sharepoint.host.com\path\[Filename.xlsx]#REF'!A1;"")
I have a few hundred of those formulas and already made a VBA-script to replace all occurences of "#REF" by the correct SheetName, so technically I have a workaround. And it works well.
But WTF?!? Why would Excel do this? And how can I stop/prevent this?
This is not related to copying cells within Excel.
Excel will put #REF when a sheet is deleted or, for some reason, becomes inaccessible.
The same happens if a cell is deleted. Had this happen when I have deleted the wrong column by accident. One reason I only ever work on a copy and keep backups.

How to Paste into visible cells in a filter in Excel?

I have data in one workbook and I have filtered columns in another workbook, when I want to copy the data from one workbook and paste it to the visible cells in the filtered area, it gets pasted to the hidden cells as well.
I googled alot but nothing was useful even I tried the Kutools software but did not work.
How to paste the data into visible cells?
A workaround I like to use is to use reference in the filtered sheet. Slightly longer method, but it works. Follow the steps below
Set the reference in first cell. E.g. ='Sheet1!A1'
Click and drag to copy the formula to all cells below (or Copy, and Paste into multiple selection). DO NOT double click to fill down, as it will include hidden cells.
If needed, clear filter and copy- paste values
Let me know if this works for you.

Error when entering table_array with spaces in the name Excel Formula

first my apologies for being a noob with regard to Excel Formulas - I did search and did not find an answer.
I have a spreadsheet that I am trying to modify. I got two spreadsheets from a client, who gave me a working copy and one that he had modified. There is a #REF error in the modified version. If I look at the working copy the formula looks like this.
=VLOOKUP($C$1,'Client Rates'!$A$2:J$228,5,FALSE)
As you can see it has quote marks in the table_array parameter because it does have a space in it. However I cannot enter it this way as it throws an error every time I try. Error is something like this - 'There is a problem with this formula. Not trying to type a formula? ... '
How can I enter the work sheet as a parameter with spaces in the name into the formula?
Did you try F2 to edit formula directly. Then highlight section of formula you wish to change then select the actual data you want evaluated by the formula?
Excel will create the correct string for the sheet and area reference for you.
The problem is you are trying to copy and paste directly from on workbook to another. Copying ctrl-c and pasting ctrl-v from one workbook to another may not have the desired effect. If you copy first to notepad or some other text editor and then paste from that text editor all works fine.

Pasting formulas across workbooks

So I have about 50 columns worth of formulas to paste over onto new workbooks on a regular basis. Pasting them one by one works, meaning all references are identically positioned when I paste them across.
However, if I try to paste more than 1 column formula at a time, I get:
The range you are pasting from contains formulas that cannot be pasted into this instance of Excel.
I tried this and a couple other links, any idea if this can be done without VBA?
If not, any idea how to write this in VBA? tyvm
What if you simply copy the workbook and paste the new data in the place of the old data? Not the most technical answer, but it should do the trick?

How to not get an error when pasting data into a sheet with formulas already in it?

I need a little help understanding how I can simply cut and paste data (multiple cells without formulas) from a CSV doc into a xls template without causing errors on the formulas already in the xls sheet.
to put it another way, When I paste the raw data (no formulas in this data) into the xl sheet template, I have to rebuild the formulas in the template sheet to get them to work.
Any help would be appreciated.
Cheers
Glenn
Redesign your spreadsheet so that the formulas are outside of the pasted range. If you paste into a range of cells, existing content, be it values or formulas, will be overwritten, even if the CSV contains blank cell content. That's how it works.

Resources