Pasting formulas across workbooks - excel

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?

Related

How can I save the formulas of my excel sheet and later restore then?

I have an excel app that modifies/delete/recreate several sheets, so formulas in other sheets that references any of those deleted sheets lose the references. What I need is to save the formulas before deleting/recreating the sheets and later restore all of then.
I wrote a couple of classes to accomplish this, one of then save the formulas as cell comments, the other one save them to a dictionary but the retoration process is very slow on both and I need to do it very fast. Thanks to all the comunity of Stackoverflow.
Pedro.
I just replace "=" with a unique text string like "xyxyxy" on all the sheets with formulae.
Then delete and replace as needed.
Then do the replace of xyxyxy with = on all sheets and the formulae work again as normal.

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.

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.

Excel - paste from another .xls file?

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.

Copy excel (2007) sheet to new workbook without formulas referencing original workbook

I have a workbook with two sheets. The first is full of data and calculations, the second is mostly cells with references to the first sheet. The second sheet also concatenates strings, and references to cells in the sheet, to form SQL commands used elsewhere.
There is also a second workbook (soon to be more). It has a sheet identical to the first sheet of the other workbook, except with different data. The problem I'm having is that the new workbook needs a sheet similar to the second of the original workbook (sorry if this is sounding confusing). I would like to simply duplicate the sheet and its formulas, which I tried using the 'move or copy...' option. Unfortunately, the formulas in the cells reference the first sheet from the old workbook, like this: =[foobar.xlsx]data!A1. Way too much data to remove them by hand. I can't just redo the formulas because I had to remove a lot of specific lines from the second sheet, so dragging the formula would not match up correctly. I'm currently trying to hack this together with REPLACE but if anyone can offer help it would be greatly appreciated.
CLARIFICATION:
When I copy the sheet, a formula will appear as =[foobar.xlsx]data!A1. I want it to just be data!A1.
Thanks :)
I hope this answers your problem, but I am a little unclear on your need!!!
Highlight all cells in the worksheet.
Perform a replace to replace = with say '=
This stops the formulas "being formulas"
Copy the sheet.
Perform another replace on the new sheet to replace '= with =
This converts back to formulas, referring to cells in your new workbook.

Resources