I should copy a formula into another excel sheet, which is part of the same workbook. I click on the cell of the sheet2 and I type =, then I go to the cell of the sheet1 and I press enter key. here the problem starts: for some reason, the copied formula is not the one I see on the formula bar by clicking on the cell of the sheet1, but a completely different formula
33 Answers
Select the cell containing the formula you want to copy and select the formula from the formula bar and copy it. Now you can paste it anywhere you want to have the same formula.
It depends on what you asking. What you are doing is referencing the cell so the formula in sheet2 will be Sheet1!A1 or whatever cell you're pointing to. If you want to actually get the formula then If you are using Excel 2013 or greater you can set the formula in the cell of sheet to =FORMULATEXT(Sheet1!B1)
If you want to take it a step further and apply the same formula in the same manner it is applied in Sheet1 then follow these steps.
In my example I set
Sheet1!A1to 45 andSheet1!B1'=COS(A1)' (no quotes) This is what Sheet1 looks like:Then I created a name thanks to a handy trick still available. Click on Name Manager under the Formulas Tab and create a New Name called EVALUATE. Set Refers to:
=EVALUATE(OFFSET(INDIRECT("RC",FALSE),0,-1))Name Manager ExampleLastly, I set
Sheet2!A1to 90Sheet2!B1 = FORMULATEXT(Sheet1!B1)and thenSheet2!C1to=EVALUATESheet2 Example
Here's a snippet of the formulas in Sheet2
The value in Sheet2!C1 will be COS(90) and not COS(45) as it was in Sheet1. If this is what you were after then I hope I helped and can get some points so that I can stop looking like a noob. Take care.
Generally this never happens. Once you try these steps.
Suppose in Sheet 1 you have Formula in Cell A20 = Sum(A2:A15).
- Go to Sheet 2, Select the desire Cell.
- Press = sign.
- Click the Sheet1 Tab.
- Select A20 Cell and finish with Enter button.
You find the same Formula will be copied from Sheet1 Cell A20 to Sheet2 destination Cell and will look like =Sheet1!A20.
NB: You are getting Error ####. It means the Width of the Target Cell in Sheet 2 is smaller than Formula Source Cell in Sheet 1. Simply increase the Column Width in Sheet 2.
Hope this help you.