A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Indirect - Multiple Sheets/Cells



 
 
Thread Tools Display Modes
  #1  
Old November 8th, 2007, 03:04 PM posted to microsoft.public.excel.worksheet.functions
Keep It Simple Stupid
external usenet poster
 
Posts: 32
Default Indirect - Multiple Sheets/Cells

I have several sheets that I need to pull the information from cells K20,
K65, and K79 for each sheet.
On a "Summary" sheet, I have listed the sheet names in Column A.

So far I have tried using versions of an INDIRECT formula, but it does not
consistently work (in fact, the few times it has worked, I can't figure out
why)!

Here's the formula I was using:
=INDIRECT($A$2&"!"&"K20") Usually this formula comes back as #REF... What
am I doing wrong????

  #2  
Old November 8th, 2007, 03:18 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default Indirect - Multiple Sheets/Cells

There is nothing wrong with your formula. Make sure that the tab name in
column A is EXACTLY the same as the tab name itself. No leading or trailing
blanks, etc.
--
Gary''s Student - gsnu200754


"Keep It Simple Stupid" wrote:

I have several sheets that I need to pull the information from cells K20,
K65, and K79 for each sheet.
On a "Summary" sheet, I have listed the sheet names in Column A.

So far I have tried using versions of an INDIRECT formula, but it does not
consistently work (in fact, the few times it has worked, I can't figure out
why)!

Here's the formula I was using:
=INDIRECT($A$2&"!"&"K20") Usually this formula comes back as #REF... What
am I doing wrong????

  #3  
Old November 8th, 2007, 03:19 PM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default Indirect - Multiple Sheets/Cells

K.I.S.S.,

You may have spaces in the sheet tab name:

=INDIRECT("'" & A2 & "'!K20")

HTH,
Bernie
MS Excel MVP


"Keep It Simple Stupid" wrote in message
...
I have several sheets that I need to pull the information from cells K20,
K65, and K79 for each sheet.
On a "Summary" sheet, I have listed the sheet names in Column A.

So far I have tried using versions of an INDIRECT formula, but it does not
consistently work (in fact, the few times it has worked, I can't figure out
why)!

Here's the formula I was using:
=INDIRECT($A$2&"!"&"K20") Usually this formula comes back as #REF... What
am I doing wrong????



  #4  
Old November 8th, 2007, 03:19 PM posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
external usenet poster
 
Posts: 3,232
Default Indirect - Multiple Sheets/Cells

Try

=INDIRECT("'"&$A$2&"'!K20")



--


Regards,


Peo Sjoblom


"Keep It Simple Stupid" wrote
in message ...
I have several sheets that I need to pull the information from cells K20,
K65, and K79 for each sheet.
On a "Summary" sheet, I have listed the sheet names in Column A.

So far I have tried using versions of an INDIRECT formula, but it does not
consistently work (in fact, the few times it has worked, I can't figure
out
why)!

Here's the formula I was using:
=INDIRECT($A$2&"!"&"K20") Usually this formula comes back as #REF...
What
am I doing wrong????



  #5  
Old November 8th, 2007, 03:28 PM posted to microsoft.public.excel.worksheet.functions
Keep It Simple Stupid
external usenet poster
 
Posts: 32
Default Indirect - Multiple Sheets/Cells

UGGGH! Just realized there were SPACES in my sheet names! Now I feel silly.
Thanks for your help!

"Gary''s Student" wrote:

There is nothing wrong with your formula. Make sure that the tab name in
column A is EXACTLY the same as the tab name itself. No leading or trailing
blanks, etc.
--
Gary''s Student - gsnu200754


"Keep It Simple Stupid" wrote:

I have several sheets that I need to pull the information from cells K20,
K65, and K79 for each sheet.
On a "Summary" sheet, I have listed the sheet names in Column A.

So far I have tried using versions of an INDIRECT formula, but it does not
consistently work (in fact, the few times it has worked, I can't figure out
why)!

Here's the formula I was using:
=INDIRECT($A$2&"!"&"K20") Usually this formula comes back as #REF... What
am I doing wrong????

  #6  
Old November 8th, 2007, 04:39 PM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default Indirect - Multiple Sheets/Cells

You may have spaces in the sheet names.

With list of sheet names in column A

In B1 enter =INDIRECT("'"&A2&"'!"&"K20")

Note that A2 is not absolute so can be copied down.


Gord Dibben MS Excel MVP

On Thu, 8 Nov 2007 07:04:04 -0800, Keep It Simple Stupid
wrote:

I have several sheets that I need to pull the information from cells K20,
K65, and K79 for each sheet.
On a "Summary" sheet, I have listed the sheet names in Column A.

So far I have tried using versions of an INDIRECT formula, but it does not
consistently work (in fact, the few times it has worked, I can't figure out
why)!

Here's the formula I was using:
=INDIRECT($A$2&"!"&"K20") Usually this formula comes back as #REF... What
am I doing wrong????


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:35 PM.


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