formula help

chaju

Board Regular
Joined
Mar 24, 2002
Messages
82
Suppose I have column A a list of sheet's name (those sheet's name exist in that workbook), such that:
CELL A1 : apple
What I want is CELL B1 links to the sheet named in CELL A1: ='apple'!C3 ,
Is there a quicker method instead of editing each formula if I have a lot of sheet's name in column A...
Thanks for all your help
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Colo

MrExcel MVP,
Joined
Mar 20, 2002
Messages
1,456
Hi Chaju, Long time no see on here :)
Are your formulas all simple like your Eg.?
If so, it's not so heard, i think. please try this.

<pre>
Sub test()
On Error Resume Next
Dim arr, i As Long
With Range([a1], [A65536].End(xlUp).Offset(, 1))
arr = .Formula
For i = LBound(arr) To UBound(arr)
arr(i, 2) = "='" & arr(i, 1) & "'!" & _
Right(arr(i, 2), Len(arr(i, 2)) - 1)
Next
.Formula = arr
End With
End Sub
</pre>
 

chaju

Board Regular
Joined
Mar 24, 2002
Messages
82
HAHA Nice to speak to you again...
Anywhere I don't have to use Macro to solve this problem? Any other methods?
Cheers Colo..
 

chaju

Board Regular
Joined
Mar 24, 2002
Messages
82

ADVERTISEMENT

hI LASW10... IT'S SEEM DOESN'T WORK.. IT DISPLAY THE WHOLE FORMULA INSTEAD OF GIVING THE VALUE
 

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,123
is "apple" in speech marks in A1? If it is remove them so it's simply apple - this would explain why it's appearing as a text string.
 

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,123
if you send me it I can fix it - probably need to see it to know why.

Is 00100 in the same workbook and will the sheet always begin with 00?
 

Forum statistics

Threads
1,144,274
Messages
5,723,441
Members
422,497
Latest member
dougy99

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
Top