Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default modify formula

Ihave the following formula which does work, however I would like to modify
so I can insert lines and not have to retype portions of this formula.

=IF($A47="","",VLOOKUP($W$5,'C:\Travel Basketball\[2004 Rush Offensive
Stats.xls]Game 38'!$B$2:$AH$17,11,FALSE))

I would like to have somethink like:

=IF($A47="","",VLOOKUP($W$5,'C:\Travel Basketball\[2004 Rush Offensive
Stats.xls]$B47!$B$2:$AH$17,11,FALSE))

but I get an error with this formula

$B47 is in the workbook that I am currently working on (or opened) and Rush
Offensive Stats is not opened. I know this can be done with an indirect
command however I am trying to prevent the indirect.

With the top formula, Rush Offensive Stats does not have to be opened
however the worksheet is named directly(GAME 38)

I need to have this as a variable

PLEASE HELP!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default modify formula

Look in HELP for the INDIRECT() function

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"ParTeeGolfer" wrote in message
...
Ihave the following formula which does work, however I would like to
modify
so I can insert lines and not have to retype portions of this formula.

=IF($A47="","",VLOOKUP($W$5,'C:\Travel Basketball\[2004 Rush Offensive
Stats.xls]Game 38'!$B$2:$AH$17,11,FALSE))

I would like to have somethink like:

=IF($A47="","",VLOOKUP($W$5,'C:\Travel Basketball\[2004 Rush Offensive
Stats.xls]$B47!$B$2:$AH$17,11,FALSE))

but I get an error with this formula

$B47 is in the workbook that I am currently working on (or opened) and
Rush
Offensive Stats is not opened. I know this can be done with an indirect
command however I am trying to prevent the indirect.

With the top formula, Rush Offensive Stats does not have to be opened
however the worksheet is named directly(GAME 38)

I need to have this as a variable

PLEASE HELP!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default modify formula

Indirect doesn't work with closed workbooks.

there isn't any built in alternative.

You could probably use a change event to enter the formula (hard coded) in
the cell if you give the current B47 a name (insert name define) so you can
maintain where it moves when you make changes.

--
Regards,
Tom Ogilvy

"ParTeeGolfer" wrote in message
...
Ihave the following formula which does work, however I would like to

modify
so I can insert lines and not have to retype portions of this formula.

=IF($A47="","",VLOOKUP($W$5,'C:\Travel Basketball\[2004 Rush Offensive
Stats.xls]Game 38'!$B$2:$AH$17,11,FALSE))

I would like to have somethink like:

=IF($A47="","",VLOOKUP($W$5,'C:\Travel Basketball\[2004 Rush Offensive
Stats.xls]$B47!$B$2:$AH$17,11,FALSE))

but I get an error with this formula

$B47 is in the workbook that I am currently working on (or opened) and

Rush
Offensive Stats is not opened. I know this can be done with an indirect
command however I am trying to prevent the indirect.

With the top formula, Rush Offensive Stats does not have to be opened
however the worksheet is named directly(GAME 38)

I need to have this as a variable

PLEASE HELP!



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
Modify a Formula carl Excel Worksheet Functions 4 January 22nd 10 10:29 PM
Modify a Formula carl Excel Worksheet Functions 2 January 5th 10 05:37 PM
Modify a formula? tgcali Excel Discussion (Misc queries) 3 September 9th 08 07:43 PM
Modify a Formula carl Excel Worksheet Functions 1 August 25th 08 08:32 PM
Modify A formula carl Excel Worksheet Functions 1 March 14th 06 05:46 PM


All times are GMT +1. The time now is 07:38 AM.

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

About Us

"It's about Microsoft Excel"