Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default extenging function

hi!


I have big list of worksheets in one book. Every sheet is named by date and
in every sheet there are some number in exact same place. Now I need to
create a list of number in new sheet. For instance I have the number in cell
"B4" in every worksheet. For decreasing my time to copy and paste from
hundreds of sheets I need excel to do it for me.

If I drag from first function excel takes new sheet but same cell

like this:
='0510'!B4
='0511'!B4
='0512'!B4
='0513'!B4
='0514'!B4

and so on.

is it possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default extenging function

try the indirect function
I assume the 0510 is a date
=indirect("'05"&(row()+adder)&"'!B4")
where the adder is the number necessaary to add to the row number to make it
be the day you are interested in

alternately you could put in a columns with the name of the sheets
=indirect("'"&sheetrange cell&"'!B4")

"John" wrote:

hi!


I have big list of worksheets in one book. Every sheet is named by date and
in every sheet there are some number in exact same place. Now I need to
create a list of number in new sheet. For instance I have the number in cell
"B4" in every worksheet. For decreasing my time to copy and paste from
hundreds of sheets I need excel to do it for me.

If I drag from first function excel takes new sheet but same cell

like this:
='0510'!B4
='0511'!B4
='0512'!B4
='0513'!B4
='0514'!B4

and so on.

is it possible?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default extenging function

I have sheets named by dates from beginning of year as "MMDD"
like: 0501, 0502, 0503, 0504 and so on and on.
And in every sheet at cell B4 is the needed number.

=indirect("sheetname!B4) takes correct number, but I can't drag it down..

I also recive correct number if I write ='MMDD'!B4, bu now I want to drag it
down to have MMDD+1, MMDD+2 automaticly!

There is a limit with sheet names as well, sheets are created only at
workdays.. Monday to Friday. (no Saturdays and Sundays.)


"bj" kirjutas:

try the indirect function
I assume the 0510 is a date
=indirect("'05"&(row()+adder)&"'!B4")
where the adder is the number necessaary to add to the row number to make it
be the day you are interested in

alternately you could put in a columns with the name of the sheets
=indirect("'"&sheetrange cell&"'!B4")


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default extenging function


=INDIRECT("05"&TEXT(ROW(A1),"00")&"!B4")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"John" wrote in message
...
I have sheets named by dates from beginning of year as "MMDD"
like: 0501, 0502, 0503, 0504 and so on and on.
And in every sheet at cell B4 is the needed number.

=indirect("sheetname!B4) takes correct number, but I can't drag it down..

I also recive correct number if I write ='MMDD'!B4, bu now I want to drag
it
down to have MMDD+1, MMDD+2 automaticly!

There is a limit with sheet names as well, sheets are created only at
workdays.. Monday to Friday. (no Saturdays and Sundays.)


"bj" kirjutas:

try the indirect function
I assume the 0510 is a date
=indirect("'05"&(row()+adder)&"'!B4")
where the adder is the number necessaary to add to the row number to make
it
be the day you are interested in

alternately you could put in a columns with the name of the sheets
=indirect("'"&sheetrange cell&"'!B4")




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default extenging function

in a column (A?)
in A2 enter the date of the firsst sheet
in A3 enter
=A2+IF(WEEKDAY(A2)=6,3,IF(WEEKDAY(A2)=7,2,1))
and drag down as far as you want
this will enter a list of weekday dates
in B2 enter
=indirect(text(A2,"mmdd"&"!B4")
Drag down as far as you want

"John" wrote:

I have sheets named by dates from beginning of year as "MMDD"
like: 0501, 0502, 0503, 0504 and so on and on.
And in every sheet at cell B4 is the needed number.

=indirect("sheetname!B4) takes correct number, but I can't drag it down..

I also recive correct number if I write ='MMDD'!B4, bu now I want to drag it
down to have MMDD+1, MMDD+2 automaticly!

There is a limit with sheet names as well, sheets are created only at
workdays.. Monday to Friday. (no Saturdays and Sundays.)


"bj" kirjutas:

try the indirect function
I assume the 0510 is a date
=indirect("'05"&(row()+adder)&"'!B4")
where the adder is the number necessaary to add to the row number to make it
be the day you are interested in

alternately you could put in a columns with the name of the sheets
=indirect("'"&sheetrange cell&"'!B4")


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
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Using the autofill function but increment by certain number in function rishid Excel Worksheet Functions 1 July 14th 05 07:40 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


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