Help with Extracting Formula from another Cell and Incrementing

jkaneff

New Member
Joined
May 12, 2018
Messages
1
I want to extract the formula in a cell of another worksheet and then increment that extracted formula by 1. For instance if the formula in another cell is "=B3" then I want the formula in my current cell to be "=B4".
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
If you have Excel 2013 or later, the below should work:
PHP:
=INDIRECT(MID(FORMULATEXT(A1),2,MIN(FIND({1,2,3,4,5,6,7,8,9},FORMULATEXT(A1)&"123456789"))-2)&1+RIGHT(FORMULATEXT(A1),LEN(FORMULATEXT(A1))-MIN(FIND({1,2,3,4,5,6,7,8,9},FORMULATEXT(A1)&"123456789")-1)))
 
Upvote 0
Welcome to the MrExcel board!

1. I think it would be helpful if you told us a bit more about what you have and what you are trying to do.

2. I suspect that your formula won't always be as simple as the example you have given. For example, could it be like any of the following and, if so, what results would you be expecting?
=B3+1
=SUM(A4:F4)
=B3*K22
etc

3. What do you mean by "my current cell"?

4. For the example you gave, does the formula in your "current cell" have to actually be =B4 or could it be, as Neil has done, another formula that returns the value from B4 but is clearly a much longer formula?

5. Are you trying to do this with a macro?

6. Would a macro be acceptable?

7. What version of Excel are you using?
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top