SOLVED

Paste formulas not working

%3CLINGO-SUB%20id%3D%22lingo-sub-2260065%22%20slang%3D%22en-US%22%3EPaste%20formulas%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260065%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20I%20copy%20a%20value%20that%20has%20been%20generated%20by%20a%20formula%20in%20Excel%20and%20paste%20into%20a%20different%20cell%20and%20then%20try%20to%20convert%20the%20value%20in%20the%20cell%20to%20appear%20as%20a%20formula%20by%20using%20the%20available%20methods%2C%20it%20does%20not%20work.%20I%20am%20using%20Microsoft%20365%20on%20Windows%2010.%20I%20have%20tried%20various%20ways%20to%20do%20this%20and%20I%20checked%20that%20automatic%20calculation%20is%20selected%20but%20Excel%20still%20will%20not%20show%20the%20formula%20in%20the%20pasted%20cell.%20I%20think%20this%20is%20a%20bug%20in%20the%20program%20and%20would%20like%20to%20know%20if%20Microsoft%20is%20trying%20to%20fix%20it.%20Any%20comments%20would%20be%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2260065%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2260349%22%20slang%3D%22en-US%22%3ERe%3A%20Paste%20formulas%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260349%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F254823%22%20target%3D%22_blank%22%3E%40Doug_1%3C%2FA%3E%26nbsp%3BWhat%20do%20you%20mean%20by%20%22%3CSPAN%3E%3CEM%3Eand%20then%20try%20to%20convert%20the%20value%20in%20the%20cell%20to%20appear%20as%20a%20formula%3C%2FEM%3E%22%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20you%20select%20a%20cell%20that%20contains%20a%20formula%20and%20perhaps%20is%20formatted%20in%20a%20particular%20way%2C%20you%20can%20copy%20the%20cell%20and%20just%20paste%20it%20into%20another%20one.%20%26nbsp%3BBoth%20the%20formula%20and%20the%20format%20will%20be%20pasted.%20Use%20Copy%20and%20%3CU%3EPaste%20Special%2C%20Formulas%3C%2FU%3E%20if%20you%20%3CSTRONG%3Eonly%3C%2FSTRONG%3E%20want%20to%20paste%20the%20formula.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20this%20doesn't%20make%20any%26nbsp%3B%3C%2FSPAN%3Esense%20to%20you%2C%20please%20describe%20the%20exact%20steps%20you%20are%20taking%20that%20lead%20to%20the%20problem.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

If I copy a value that has been generated by a formula in Excel and paste into a different cell and then try to convert the value in the cell to appear as a formula by using the available methods, it does not work. I am using Microsoft 365 on Windows 10. I have tried various ways to do this and I checked that automatic calculation is selected but Excel still will not show the formula in the pasted cell. I think this is a bug in the program and would like to know if Microsoft is trying to fix it. Any comments would be appreciated.

10 Replies

@Doug_1 What do you mean by "and then try to convert the value in the cell to appear as a formula"?

 

If you select a cell that contains a formula and perhaps is formatted in a particular way, you can copy the cell and just paste it into another one.  Both the formula and the format will be pasted. Use Copy and Paste Special, Formulas if you only want to paste the formula.

 

If this doesn't make any sense to you, please describe the exact steps you are taking that lead to the problem.

@Riny_van_Eekelen 

Thanks for responding to my request for help. The procedure that you describe for pasting a formula does not work for me. I will describe the exact procedure that I use. In my Excel file I have a sheet that contains many formulas. I want to copy one (or more) formula to a blank cell and make it appear as a formula. So, I select the cell containing the formula. I use Control-C to copy. I select a blank cell and right click. This brings up a menu containing Paste Special, which brings up the Paste Special menu. The second item from the top in that menu is Formulas so I select the little circle adjacent to Formulas and click OK. I believe that the formula should then appear in the cell, but it does not appear. What does appear is the number 0.00, however the formula does show in the edit window at the top of the sheet. Is there something wrong with my procedure or is Excel just not working as it should?

I am using Microsoft 365 and Windows 10.

@Doug_1 Well, it seems that the formula is pasted correctly but that the calculation just results to zero. Click in the formula bar and see which cells ar being referenced by the formula.

A typical formula that is being copied is: =+AG28/$J28*100. I used to be able to paste formulas but the problem suddenly appeared and will not go away.

@Doug_1 

If you copy =+AG28/$J28*100 and paste as a formula into one cell down, formula in that cell will appear as =+AG29/$J29*100. Excel shifts relative references depends into which cell you copy the formula.

 

If you'd like to copy/paste it without changing the references, click on formula bar, Ctrl+A, Ctrl+C, go on another cell, Ctrl+V

Thanks for responding. On my computer CTRL+A selects every cell on the sheet. But I am not copying and pasting normally. I am trying to paste into a blank cell only the formula that has been copied, not the numerical result of the calculation of the formula.
In addition to my previous post, I tried to copy directly from the editing window to the spreadsheet but that did not work either. That procedure would not be useful to me because I normally want to copy a large number of cells and past the formulas into other cells. Incidentally, I reloaded my Excel from the internet using the repair program and that did not make any difference.

@Doug_1 

After spending quite enough time trying to solve this problem, I have concluded that it is a bug in the program. Hopefully Microsoft will fix it in a later update. In the meantime I have found a work-around solution. If you select Formulas from the menus at the top of the screen, then go to the group called Formula Auditing and select Show Formulas. all of the cells in the sheet will appear as formulas. I have a very useful program called Snagit which can copy an image of cells directly from the screen. I can then paste this image into Excel.

best response confirmed by Doug_1 (Occasional Contributor)
Solution
It sounds like you want to paste the formula text?

If you have the formulatext function, you could use it to reference the cell containing the formula:
=FormulaText(A1)

Alternatively, you could try formatting the cell as text and the copy paste the formula from the formula bar to the destination cell.

If my understanding of what you're trying to do is correct, then the paste special-formula behavior is not a bug as it has always pasted in the formula as an expression to be evaluated.
Thanks very much for you help JMB17. I tried the formulatext function and was able to display the formulas for a selection of cells in a location of my choosing. That is exactly what I wanted to do.