Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
livin
 
Posts: n/a
Default Need Help: 'sheets' function with a variable in a formula

I have a function that will pull data from a cell on another sheet:

=RIGHT(Sheet1!$B$1,LEN(Sheet1!$B$1)-FIND(":",Sheet1!$B$1,1))

the problem is that I want to pull the same cell data from hundreds of
sheets (sheets 1 to 200) and list the cell data in a column.

how can I get the "sheet" to change for each consecutive row in the column?

I was thinking I'd have another column with the sheet number (1, 2, 3, etc)
and have a formula within the above forumula to pull that number. Something
like in place of "Sheet1!$B$1" it would be something like "sheets(H2)!$B$1"
where the H2 cell has the value of the sheet... 1, 2, etc. but this is not
working.

I know this must be simple... thanks in advance!



btw... sorry for the cross-post, not sure what forum was best to use.


  #2   Report Post  
Harald Staff
 
Posts: n/a
Default

Why does it have to be simple ?
=INDIRECT("Sheet"&H2&"!$B$1")


"livin" skrev i melding
news:znITe.71916$Ji4.43480@fed1read03...
I have a function that will pull data from a cell on another sheet:

=RIGHT(Sheet1!$B$1,LEN(Sheet1!$B$1)-FIND(":",Sheet1!$B$1,1))

the problem is that I want to pull the same cell data from hundreds of
sheets (sheets 1 to 200) and list the cell data in a column.

how can I get the "sheet" to change for each consecutive row in the

column?

I was thinking I'd have another column with the sheet number (1, 2, 3,

etc)
and have a formula within the above forumula to pull that number.

Something
like in place of "Sheet1!$B$1" it would be something like

"sheets(H2)!$B$1"
where the H2 cell has the value of the sheet... 1, 2, etc. but this is not
working.

I know this must be simple... thanks in advance!



btw... sorry for the cross-post, not sure what forum was best to use.




  #3   Report Post  
livin
 
Posts: n/a
Default

worked perfectly... THANK YOU SO MUCH!!!


"Harald Staff" wrote in message
...
Why does it have to be simple ?
=INDIRECT("Sheet"&H2&"!$B$1")


"livin" skrev i melding
news:znITe.71916$Ji4.43480@fed1read03...
I have a function that will pull data from a cell on another sheet:

=RIGHT(Sheet1!$B$1,LEN(Sheet1!$B$1)-FIND(":",Sheet1!$B$1,1))

the problem is that I want to pull the same cell data from hundreds of
sheets (sheets 1 to 200) and list the cell data in a column.

how can I get the "sheet" to change for each consecutive row in the

column?

I was thinking I'd have another column with the sheet number (1, 2, 3,

etc)
and have a formula within the above forumula to pull that number.

Something
like in place of "Sheet1!$B$1" it would be something like

"sheets(H2)!$B$1"
where the H2 cell has the value of the sheet... 1, 2, etc. but this is
not
working.

I know this must be simple... thanks in advance!



btw... sorry for the cross-post, not sure what forum was best to use.






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
IF function to blank without getting #value in sum function Brad Stevenson Excel Worksheet Functions 5 May 26th 05 10:26 AM
excel should have a function to count sheets carlos sosa Excel Worksheet Functions 7 April 24th 05 08:29 PM
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
how do i use the function to copy and paste a determined variable. Strem Excel Worksheet Functions 2 January 8th 05 05:31 PM
Need Function for adding rows on multiple sheets... struggling rookie ;) Thanks. Steve Excel Worksheet Functions 6 November 24th 04 12:10 AM


All times are GMT +1. The time now is 02:54 AM.

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"