Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DiiRK
 
Posts: n/a
Default Referencing cells in different worksheets

I would like to reference cells in different worksheets (up to 9) based on a
number entered in cell G6. Below, I am using nested IF statements for a
reference to only two different worksheets. If I insert enought nested IF's
for 9 different worksheets, this statement will become huge and unweildy. Is
there a simpler way to reference worksheets named "Port Config Blate 1" thru
"Port Config Blade 9"?

=IF(G6="","",IF(F6=0,LOOKUP(G6,'Port Config Blade 0'!$B$7:$B$38, 'Port
Config Blade 0'!$G$7:$G$38)&"_"&LOOKUP(G6,'Port Config Blade 0'!$B$7:$B$38,
'Port Config Blade 0'!$H$7:$H$38),IF(F6=1,LOOKUP(G6,'Port Config Blade
1'!$B$7:$B$23, 'Port Config Blade 1'!$G$7:$G$23)&"_"&LOOKUP(G6,'Port Config
Blade 1'!$B$7:$B$23, 'Port Config Blade 1'!$H$7:$H$23))))

Thanks!
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default Referencing cells in different worksheets

=IF(G6="","",
LOOKUP(G6,INDIRECT("'Port Config Blade "&F6&"'!$B$7:$B$38"),
INDIRECT("'Port Config Blade "&F6&"'!$G$7:$G$38"))&"_"&
LOOKUP(G6,INDIRECT("'Port Config Blade "&F6&"'!$B$7:$B$38"),
INDIRECT("'Port Config Blade "&F6&"!$H$7:$H$38")))


--

HTH

RP
(remove nothere from the email address if mailing direct)


"DiiRK" wrote in message
...
I would like to reference cells in different worksheets (up to 9) based on

a
number entered in cell G6. Below, I am using nested IF statements for a
reference to only two different worksheets. If I insert enought nested

IF's
for 9 different worksheets, this statement will become huge and unweildy.

Is
there a simpler way to reference worksheets named "Port Config Blate 1"

thru
"Port Config Blade 9"?

=IF(G6="","",IF(F6=0,LOOKUP(G6,'Port Config Blade 0'!$B$7:$B$38, 'Port
Config Blade 0'!$G$7:$G$38)&"_"&LOOKUP(G6,'Port Config Blade

0'!$B$7:$B$38,
'Port Config Blade 0'!$H$7:$H$38),IF(F6=1,LOOKUP(G6,'Port Config Blade
1'!$B$7:$B$23, 'Port Config Blade 1'!$G$7:$G$23)&"_"&LOOKUP(G6,'Port

Config
Blade 1'!$B$7:$B$23, 'Port Config Blade 1'!$H$7:$H$23))))

Thanks!



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
Absoulte referencing between worksheets trainer07 Excel Worksheet Functions 1 October 28th 05 07:44 PM
Referencing cells text output if it meets specific conditions Chersie Excel Worksheet Functions 3 April 18th 05 04:34 PM
How do I save an Excel workbook so that cells referencing another. williejoeshaver Excel Discussion (Misc queries) 1 March 11th 05 09:44 PM
formulas referencing pivot table cells JW_WA Excel Worksheet Functions 1 February 8th 05 12:52 AM
copying cells from other worksheets yesbob Excel Discussion (Misc queries) 1 February 7th 05 05:18 PM


All times are GMT +1. The time now is 10:21 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"