Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Indirect formula not working if I give custom name for Sheets

My sheets names are 1, 2, 3,... 100. I am trying to make a "summery" sheet in
the same work book from cells a6 to j6 from 1 to more than 100 numeric named
sheets.The formula =INDIRECT("Sheet" & (ROW()) & "!A6") is working fine if
the sheet names are from system default Sheet1, sheet2 sheet3 etc.

Now I modified the formula into =INDIRECT("'" & (ROW()) & "!A6") but it
returns #REF!. I dont know what is the mistake I am doing! Can any one solve
this problem?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Indirect formula not working if I give custom name for Sheets

Hi,

The mistake you are making is that you not providing a sheet name in the
formula.

there are ways of solving this. for example the formula below and a list of
sheet names in c1 down woould work

=INDIRECT(C1 & "!A6")

Mike

"Narnimar" wrote:

My sheets names are 1, 2, 3,... 100. I am trying to make a "summery" sheet in
the same work book from cells a6 to j6 from 1 to more than 100 numeric named
sheets.The formula =INDIRECT("Sheet" & (ROW()) & "!A6") is working fine if
the sheet names are from system default Sheet1, sheet2 sheet3 etc.

Now I modified the formula into =INDIRECT("'" & (ROW()) & "!A6") but it
returns #REF!. I dont know what is the mistake I am doing! Can any one solve
this problem?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Indirect formula not working if I give custom name for Sheets

Many thanks Mike. My next problem is to drag this formula to the rightward.
Now my formula is =INDIRECT($A3 & "!A6"). A6 does not chage in to B6! if I
drag to the right. Is there any method?
Thanks.

"Mike H" wrote:

Hi,

The mistake you are making is that you not providing a sheet name in the
formula.

there are ways of solving this. for example the formula below and a list of
sheet names in c1 down woould work

=INDIRECT(C1 & "!A6")

Mike

"Narnimar" wrote:

My sheets names are 1, 2, 3,... 100. I am trying to make a "summery" sheet in
the same work book from cells a6 to j6 from 1 to more than 100 numeric named
sheets.The formula =INDIRECT("Sheet" & (ROW()) & "!A6") is working fine if
the sheet names are from system default Sheet1, sheet2 sheet3 etc.

Now I modified the formula into =INDIRECT("'" & (ROW()) & "!A6") but it
returns #REF!. I dont know what is the mistake I am doing! Can any one solve
this problem?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Indirect formula not working if I give custom name for Sheets

What cell are you entering this formula into? Is it in row 1? Your formula
is pulling the Sheet name from the row number that the formula is placed in.
So, if your formula is placed in cell A6, then you'd need to adjust the
formula to:

=INDIRECT(ROW()-5&"!A6)

If that's not it, then perhaps some more explanation of how your data is set
up would help.


"Narnimar" wrote:

No Elkar. I still get #ref! I removed the space and applied the 2nd formula.
But no luck!

"Elkar" wrote:

Try taking out the leading apostrophe.

=INDIRECT(ROW()&"!A6")

You only need to enclose the sheet name in apostrophes when there is a space
in the name. And if you do, you would also need to include a second
apostrophe at the end of the sheet name. Like this:

=INDIRECT( " ' " & ROW() & " ' !A6")

I included added spaces above for emphasis, but they should not be used.

HTH
Elkar


"Narnimar" wrote:

My sheets names are 1, 2, 3,... 100. I am trying to make a "summery" sheet in
the same work book from cells a6 to j6 from 1 to more than 100 numeric named
sheets.The formula =INDIRECT("Sheet" & (ROW()) & "!A6") is working fine if
the sheet names are from system default Sheet1, sheet2 sheet3 etc.

Now I modified the formula into =INDIRECT("'" & (ROW()) & "!A6") but it
returns #REF!. I dont know what is the mistake I am doing! Can any one solve
this problem?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Indirect formula not working if I give custom name for Sheets

I get #ref! still here Elkar. I think something missing.

"Elkar" wrote:

What cell are you entering this formula into? Is it in row 1? Your formula
is pulling the Sheet name from the row number that the formula is placed in.
So, if your formula is placed in cell A6, then you'd need to adjust the
formula to:

=INDIRECT(ROW()-5&"!A6)

If that's not it, then perhaps some more explanation of how your data is set
up would help.


"Narnimar" wrote:

No Elkar. I still get #ref! I removed the space and applied the 2nd formula.
But no luck!

"Elkar" wrote:

Try taking out the leading apostrophe.

=INDIRECT(ROW()&"!A6")

You only need to enclose the sheet name in apostrophes when there is a space
in the name. And if you do, you would also need to include a second
apostrophe at the end of the sheet name. Like this:

=INDIRECT( " ' " & ROW() & " ' !A6")

I included added spaces above for emphasis, but they should not be used.

HTH
Elkar


"Narnimar" wrote:

My sheets names are 1, 2, 3,... 100. I am trying to make a "summery" sheet in
the same work book from cells a6 to j6 from 1 to more than 100 numeric named
sheets.The formula =INDIRECT("Sheet" & (ROW()) & "!A6") is working fine if
the sheet names are from system default Sheet1, sheet2 sheet3 etc.

Now I modified the formula into =INDIRECT("'" & (ROW()) & "!A6") but it
returns #REF!. I dont know what is the mistake I am doing! Can any one solve
this problem?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Indirect formula not working if I give custom name for Sheets

Try changing the
& "!A6"
portion of your formula to
& "!" & ADDRESS(6,Column())
and see how that works for you.

So I believe your formula should look like:
=INDIRECT($A3 & "!" & ADDRESS(6,COLUMN()))


"Narnimar" wrote:

Many thanks Mike. My next problem is to drag this formula to the rightward.
Now my formula is =INDIRECT($A3 & "!A6"). A6 does not chage in to B6! if I
drag to the right. Is there any method?
Thanks.

"Mike H" wrote:

Hi,

The mistake you are making is that you not providing a sheet name in the
formula.

there are ways of solving this. for example the formula below and a list of
sheet names in c1 down woould work

=INDIRECT(C1 & "!A6")

Mike

"Narnimar" wrote:

My sheets names are 1, 2, 3,... 100. I am trying to make a "summery" sheet in
the same work book from cells a6 to j6 from 1 to more than 100 numeric named
sheets.The formula =INDIRECT("Sheet" & (ROW()) & "!A6") is working fine if
the sheet names are from system default Sheet1, sheet2 sheet3 etc.

Now I modified the formula into =INDIRECT("'" & (ROW()) & "!A6") but it
returns #REF!. I dont know what is the mistake I am doing! Can any one solve
this problem?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Indirect formula not working if I give custom name for Sheets

This should work just fine. I've recreated your example, based on the info
you've provided, in both Excel 2003 and 2007 without problem. You still
haven't stated what cell you are entering the formula into however.

A couple other possibilities to check. Are there any spaces in your sheet
names? Like 1<space? Does cell A6 on Sheet 1 return the error #REF!?


"Narnimar" wrote:

I get #ref! still here Elkar. I think something missing.

"Elkar" wrote:

What cell are you entering this formula into? Is it in row 1? Your formula
is pulling the Sheet name from the row number that the formula is placed in.
So, if your formula is placed in cell A6, then you'd need to adjust the
formula to:

=INDIRECT(ROW()-5&"!A6)

If that's not it, then perhaps some more explanation of how your data is set
up would help.


"Narnimar" wrote:

No Elkar. I still get #ref! I removed the space and applied the 2nd formula.
But no luck!

"Elkar" wrote:

Try taking out the leading apostrophe.

=INDIRECT(ROW()&"!A6")

You only need to enclose the sheet name in apostrophes when there is a space
in the name. And if you do, you would also need to include a second
apostrophe at the end of the sheet name. Like this:

=INDIRECT( " ' " & ROW() & " ' !A6")

I included added spaces above for emphasis, but they should not be used.

HTH
Elkar


"Narnimar" wrote:

My sheets names are 1, 2, 3,... 100. I am trying to make a "summery" sheet in
the same work book from cells a6 to j6 from 1 to more than 100 numeric named
sheets.The formula =INDIRECT("Sheet" & (ROW()) & "!A6") is working fine if
the sheet names are from system default Sheet1, sheet2 sheet3 etc.

Now I modified the formula into =INDIRECT("'" & (ROW()) & "!A6") but it
returns #REF!. I dont know what is the mistake I am doing! Can any one solve
this problem?

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
Indirect formula not working if I give custom name for Sheets Elkar Excel Discussion (Misc queries) 0 February 5th 09 09:13 PM
Indirect formula not working if I give custom name for Sheets Narnimar Excel Discussion (Misc queries) 0 February 5th 09 09:13 PM
Can Formula Auditing give cell refs to other sheets? [email protected] New Users to Excel 4 October 24th 07 03:56 PM
Give permanent name to custom format? JoeSpareBedroom Excel Discussion (Misc queries) 1 July 19th 06 12:00 AM
Reset should give a warning before resetting custom colors. ryders Setting up and Configuration of Excel 0 June 18th 06 01:10 AM


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