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 and Sheet Name



 
 
Thread Tools Display Modes
  #1  
Old March 23rd, 2010, 09:38 PM posted to microsoft.public.excel.worksheet.functions
Rob
external usenet poster
 
Posts: 63
Default Indirect and Sheet Name

I have a formula =COUNTA(INDIRECT(A3)) which returns the count of items in a
range which is defined in cell A3, the formula in A3 is below. Is there a
way of not having to include the sheet name (Sheet 1) in cell A3 and to
include in the COUNTA formula.

="'Sheet 1'"&"!C"&A1&":"&"C"&B1

Thanks, Rob


  #2  
Old March 23rd, 2010, 10:05 PM posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
external usenet poster
 
Posts: 516
Default Indirect and Sheet Name

Two possibilities
a) replace the A3 formula by ="C"&A1&":"&"C"&B1
and replace the COUNTA by =COUNTA(INDIRECT("'Sheet1'!"&A3))

or, better still
b) do away with the the A3 formula all together and use
=COUNT(INDIRECT("'Sheet1'"&"!C"&A1&":"&"C"&B1))

best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme


"Rob" wrote in message
...
I have a formula =COUNTA(INDIRECT(A3)) which returns the count of items in
a range which is defined in cell A3, the formula in A3 is below. Is there
a way of not having to include the sheet name (Sheet 1) in cell A3 and to
include in the COUNTA formula.

="'Sheet 1'"&"!C"&A1&":"&"C"&B1

Thanks, Rob

  #3  
Old March 23rd, 2010, 10:35 PM posted to microsoft.public.excel.worksheet.functions
TomPl
external usenet poster
 
Posts: 239
Default Indirect and Sheet Name

If you leave out the sheet name then the formula will apply only to the
current sheet and it would look like this: ="C"&A1&":"&"C"&B1.

Or, you could ignore cell A3 and use a formula like this:
=COUNTA(INDIRECT("C" & A1 & ":C" & B1))

Tom

"Rob" wrote:

I have a formula =COUNTA(INDIRECT(A3)) which returns the count of items in a
range which is defined in cell A3, the formula in A3 is below. Is there a
way of not having to include the sheet name (Sheet 1) in cell A3 and to
include in the COUNTA formula.

="'Sheet 1'"&"!C"&A1&":"&"C"&B1

Thanks, Rob


.

  #4  
Old March 24th, 2010, 08:40 AM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_8_]
external usenet poster
 
Posts: 338
Default Indirect and Sheet Name

Hi Rob

Another alternative, would be to use Index rather than the volatile
Indirect function

=COUNTA(INDEX(C:C,A1):INDEX(C:C,B1))

--
Regards
Roger Govier

Rob wrote:
I have a formula =COUNTA(INDIRECT(A3)) which returns the count of items in a
range which is defined in cell A3, the formula in A3 is below. Is there a
way of not having to include the sheet name (Sheet 1) in cell A3 and to
include in the COUNTA formula.

="'Sheet 1'"&"!C"&A1&":"&"C"&B1

Thanks, Rob


  #5  
Old March 24th, 2010, 08:56 PM posted to microsoft.public.excel.worksheet.functions
Rob
external usenet poster
 
Posts: 63
Default Indirect and Sheet Name

Thanks everyone, lots of optiosn to try out.

Regards, Rob

"Bernard Liengme" wrote in message
...
Two possibilities
a) replace the A3 formula by ="C"&A1&":"&"C"&B1
and replace the COUNTA by =COUNTA(INDIRECT("'Sheet1'!"&A3))

or, better still
b) do away with the the A3 formula all together and use
=COUNT(INDIRECT("'Sheet1'"&"!C"&A1&":"&"C"&B1))

best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme


"Rob" wrote in message
...
I have a formula =COUNTA(INDIRECT(A3)) which returns the count of items
in a range which is defined in cell A3, the formula in A3 is below. Is
there a way of not having to include the sheet name (Sheet 1) in cell A3
and to include in the COUNTA formula.

="'Sheet 1'"&"!C"&A1&":"&"C"&B1

Thanks, Rob



 




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 06:59 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.