Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Change Formula

I was wondering if it's possible to modify this formula to make it load the
current active sheet instead of the current "month-day" like the way I have
it right now?

=IF(INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A130")<FALSE,INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A130"),"")

Is there a method like the VBA "ActiveSheet" for cell formulea?

Thanks In Advance,
Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Change Formula

I don't think there is an inbuilt function to find it exactly so I've
used a combination to get the result of the sheet name:

=RIGHT(CELL("filename"),
LEN(CELL("filename"))-FIND("]",CELL("filename")))

Hope this helps.

FunkySquid

Rob wrote:
I was wondering if it's possible to modify this formula to make it load the
current active sheet instead of the current "month-day" like the way I have
it right now?

=IF(INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A130")<FALSE,INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A130"),"")

Is there a method like the VBA "ActiveSheet" for cell formulea?

Thanks In Advance,
Rob


  #3   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Change Formula

FS,

Just to make certain I understand correctly... "filename" should be the name
of the workbook and "CELL" should be the cell that I'm getting the info from;
my example below...

=RIGHT(A130("ItmHndl.xls"),
LEN(A130("ItmHndl.xls"))-FIND("]",A130("ItmHndl.xls")))


Thanks for your help,
Rob


"FunkySquid" wrote:

I don't think there is an inbuilt function to find it exactly so I've
used a combination to get the result of the sheet name:

=RIGHT(CELL("filename"),
LEN(CELL("filename"))-FIND("]",CELL("filename")))

Hope this helps.

FunkySquid

Rob wrote:
I was wondering if it's possible to modify this formula to make it load the
current active sheet instead of the current "month-day" like the way I have
it right now?

=IF(INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A130")<FALSE,INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A130"),"")

Is there a method like the VBA "ActiveSheet" for cell formulea?

Thanks In Advance,
Rob



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Change Formula

Nope.

Just try the original suggestion.

Rob wrote:

FS,

Just to make certain I understand correctly... "filename" should be the name
of the workbook and "CELL" should be the cell that I'm getting the info from;
my example below...

=RIGHT(A130("ItmHndl.xls"),
LEN(A130("ItmHndl.xls"))-FIND("]",A130("ItmHndl.xls")))

Thanks for your help,
Rob

"FunkySquid" wrote:

I don't think there is an inbuilt function to find it exactly so I've
used a combination to get the result of the sheet name:

=RIGHT(CELL("filename"),
LEN(CELL("filename"))-FIND("]",CELL("filename")))

Hope this helps.

FunkySquid

Rob wrote:
I was wondering if it's possible to modify this formula to make it load the
current active sheet instead of the current "month-day" like the way I have
it right now?

=IF(INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A130")<FALSE,INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A130"),"")

Is there a method like the VBA "ActiveSheet" for cell formulea?

Thanks In Advance,
Rob




--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Change Formula

OK, so how do I incorporate this code....

=RIGHT(CELL("filename"), LEN(CELL("filename"))-FIND("]",CELL("filename")))

into or with this code....

=IF(INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A70")<FALSE,INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) & "'!A70"),"")

Because if I just copy/paste it it doesn't seem to work. So I am wondering
where I use the suggested code?

Thanks Much.
Rob

"Dave Peterson" wrote:

Nope.

Just try the original suggestion.

Rob wrote:

FS,

Just to make certain I understand correctly... "filename" should be the name
of the workbook and "CELL" should be the cell that I'm getting the info from;
my example below...

=RIGHT(A130("ItmHndl.xls"),
LEN(A130("ItmHndl.xls"))-FIND("]",A130("ItmHndl.xls")))

Thanks for your help,
Rob

"FunkySquid" wrote:

I don't think there is an inbuilt function to find it exactly so I've
used a combination to get the result of the sheet name:

=RIGHT(CELL("filename"),
LEN(CELL("filename"))-FIND("]",CELL("filename")))

Hope this helps.

FunkySquid

Rob wrote:
I was wondering if it's possible to modify this formula to make it load the
current active sheet instead of the current "month-day" like the way I have
it right now?

=IF(INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A130")<FALSE,INDIRECT("'" & MONTH(NOW()) & "-" & DAY(NOW()) &
"'!A130"),"")

Is there a method like the VBA "ActiveSheet" for cell formulea?

Thanks In Advance,
Rob



--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
change formula in a shared worksheet without losing change history DCE Excel Worksheet Functions 5 July 25th 08 01:37 PM
how to change formula in shared sheet without loss of change histo DCE Excel Worksheet Functions 1 July 23rd 08 05:09 PM
copy formula down a column and have cell references change within formula brad New Users to Excel 5 May 13th 07 04:38 PM
How does Data Validation change with a formula change? MayClarkOriginals Excel Worksheet Functions 3 July 5th 06 04:50 AM


All times are GMT +1. The time now is 04:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"