vba - Can i copy the exact value instead of refencing another sheet inside a formula for multiple rows in EXCEL? -


I would like reference of another sheet inside the formula to replace with the actual value instead of context. I can not do this with a special copy because it is inside a formula and I want to do it for several rows. Is this possible? Thank you in advance.

 Year inflation price price inflation 1990 = (E9 * 70%) * Sheet 2! C3122 0.28888 1991 = (E10 * 70%) * Sheet 2! C4 125 0.36 9 2 99 = (E11 * 70%) * Sheet 2! C5 128 0.45078 1993 = (E12 * 70%) * Sheet 2! C6 131 0.53173 = 1994 (E13 * 70%) * Sheet 2! C7 134 0.61268 1995 = (E14 * 70%) * Sheet 2! C8 137 0.69363 1996 = (E15 * 70%) * Sheet 2! C9 140 0.77458 1997 = (E16 * 70%) * Sheet 2! C10 143 0.85553 1998 = (E17 * 70%) * Sheet 2! C 11 146 0.93648 1999 = (E18 * 70%) * Sheet 2! C12 14 9 1.01743 2000 = (E9 * 70%) * Sheet 2! C13 152 1.0 9 838 

Yes, you can do this - though this is a bit difficult - given below See the instructions passed.

However, quick wording of the warning - using values ​​in any formula is usually not the best practice. Already = (E 9 * 70%) * Sheet 2! Seeing C3 , should not be in the formula, but external beliefs should have a cell! Otherwise it is a hidden perception that is buried in the formula - and when you later see your file - or someone audits it - you will find it a difficult time - and knowing that you did this!

> The same clearly applies to what you are intending, i.e. if you still change the inflation rate associated with the hard-crude inflation rate, then it will have some hidden perception again.

Still, enough 'lecture' (sorry, could not help it!), If you still want to, then here's the way to go:

  1. In a new column, enter the part of the formula that you want to change and excel calculate this part. To wit. If you have Sheet2! In your first column! C3 , then in this new column the formula = Sheet2! C3 and copy it
  2. Change your formulas from A1 style to R1C1 style. To do this, work with file-> Options-> Formulas-> Sources and check the R1C1 referenced style: Enter image details <form> </ li> <li> Your formula <code> = (E9 * 70%) * Sheet2! C3 </ code> now <code> (RC [+2] * 70 %) Will look something like * Sheet2! R [-6] C [1] </ code>. The beauty of the R1C1 style is that the relative reference is now similar to the whole column, i.e. check the row below And you will get the same formula! <br> <br> You can replace it with your share </ li> <li> in the Replace dialog (<kbd> Ctrl </ kbd> - <kbd> h </ kbd>), </ li> <li>, that Enter the part of the formula that you want to change, eg <Code> ~ * Sheet2! R [-6] C [1] </ code> - Note that you can enter <code> * </ code> as <code </ Li> </ li> </ li> </ li> <li> </ ol> </ li> <li> Now select the value from your support column from Step 2 and copy </ Li> <li> Use the original Select column and use the special-> values ​​with the
  3. Delete support column and referenced style to A1 Set back

done!


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -