![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Mudface,
Thanks to Jay and Ivan, we have the answer: http://www.mrexcel.com/board/viewtop...c=5003&forum=2 and the formula would be: =MID(getformula,2,SEARCH("!",getformula))
__________________
Kind regards, Al Chara |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Mudface,
Thanks to Jay and Ivan, we have the answer: http://www.mrexcel.com/board/viewtop...c=5003&forum=2 and the formula would be: =MID(getformula,2,SEARCH("!",getformula))
__________________
Kind regards, Al Chara |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
If a have a formula such as: -
=Sheet2!A1 is there a way of returning which sheet is referenced by the formula (ie in a separate cell I would like to have Sheet2 returned)? Cheers for any help. |
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 6
|
Another option. Why not specify the sheet in another cell and pull it for the formula. So in cell A1 is the value:
Sheet2 and in cell A2 is the formula: =INDIRECT(A1 & "!B17") |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
Thanks, Rob, I did think of trying that, but thought it would be easier just to Copy the data from the source file and Paste it as a link (there are four spreadsheets, each with 3 sheets and I wanted around a 1000 rows by 20 columns from each sheet linked so I could summarise the source data via a pivot table). Might create another sheet, using your suggestion and see if that can be done easily (sigh)
|
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
How about using VBA:
Code:
Dim formula As String
Dim ExlLoc As Integer
formula = ActiveCell.formula
ExlLoc = Application.WorksheetFunction.Search("!", formula)
ActiveCell.Offset(0, 1) = Mid(formula, 2, ExlLoc - 2)
__________________
Kind regards, Al Chara |
|
|
|
|
|
#7 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Couldn't you just use one of Aladin's or Mark W's formulas that use =LEFT(A1...blah blah blah. I think I saw something like this posted in the last day or so.
|
|
|
|
|
|
#8 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Mark: You mean
=LEFT(C20,FIND("!",C20,1)-1) and that will give Sheet2 [ This Message was edited by: Yogi Anand on 2002-04-11 14:13 ] |
|
|
|
|
|
#9 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Yogi,
That could very well be something like that to which I was referring. |
|
|
|
|
|
#10 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
I may be wrong here, but I don't think that formula works. Doesn't find only search the value of the cell and not the formula?
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|