Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Variable named range in worksheet function

I'd like to use a named range of "FactorA" (which contains multiple cells),
etc, and I'm trying to do something like this

=AVERAGE(IF(INDIRECT("Factor" &$B17)=$D17,IF($F$2:$F$9=E$16,$R$2:$R$9)))

Where B17 contains the A. Can I do this?

Thanks,
Barb Reinhardt

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Variable named range in worksheet function

Yes. For that particular formula to work the range should be of equal size
to the other cell ranges or else you will probably get a N/A error

--


Regards,


Peo Sjoblom

"Barb Reinhardt" wrote in message
...
I'd like to use a named range of "FactorA" (which contains multiple
cells),
etc, and I'm trying to do something like this

=AVERAGE(IF(INDIRECT("Factor" &$B17)=$D17,IF($F$2:$F$9=E$16,$R$2:$R$9)))

Where B17 contains the A. Can I do this?

Thanks,
Barb Reinhardt



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Variable named range in worksheet function

I'm actually getting a REF error when I put the named range into the
Indirect.

This formula works fine (in an adjacent cell)
=AVERAGE(IF($F$2:$F$9=$D18,IF($F$2:$F$9=F$16,$R$2: $R$9)))

And the range name is currently defined to be $F$2:$F$9. I still commit it
with CTRL SHIFT ENTER.

Thanks,
Barb Reinhardt



"Peo Sjoblom" wrote:

Yes. For that particular formula to work the range should be of equal size
to the other cell ranges or else you will probably get a N/A error

--


Regards,


Peo Sjoblom

"Barb Reinhardt" wrote in message
...
I'd like to use a named range of "FactorA" (which contains multiple
cells),
etc, and I'm trying to do something like this

=AVERAGE(IF(INDIRECT("Factor" &$B17)=$D17,IF($F$2:$F$9=E$16,$R$2:$R$9)))

Where B17 contains the A. Can I do this?

Thanks,
Barb Reinhardt




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Variable named range in worksheet function

FWIW, when I step through the calculation, I get REF on the INDIRECT("Factor"
& $B17) part.
Thanks,
Barb Reinhardt



"Peo Sjoblom" wrote:

Yes. For that particular formula to work the range should be of equal size
to the other cell ranges or else you will probably get a N/A error

--


Regards,


Peo Sjoblom

"Barb Reinhardt" wrote in message
...
I'd like to use a named range of "FactorA" (which contains multiple
cells),
etc, and I'm trying to do something like this

=AVERAGE(IF(INDIRECT("Factor" &$B17)=$D17,IF($F$2:$F$9=E$16,$R$2:$R$9)))

Where B17 contains the A. Can I do this?

Thanks,
Barb Reinhardt




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Variable named range in worksheet function

How does your named range look, I assumed you used a straightforward one
like
Sheet!!$A$2:$A$9
if you use offset to make it dynamic it won't work


--


Regards,


Peo Sjoblom



"Barb Reinhardt" wrote in message
...
FWIW, when I step through the calculation, I get REF on the
INDIRECT("Factor"
& $B17) part.
Thanks,
Barb Reinhardt



"Peo Sjoblom" wrote:

Yes. For that particular formula to work the range should be of equal
size
to the other cell ranges or else you will probably get a N/A error

--


Regards,


Peo Sjoblom

"Barb Reinhardt" wrote in
message
...
I'd like to use a named range of "FactorA" (which contains multiple
cells),
etc, and I'm trying to do something like this

=AVERAGE(IF(INDIRECT("Factor"
&$B17)=$D17,IF($F$2:$F$9=E$16,$R$2:$R$9)))

Where B17 contains the A. Can I do this?

Thanks,
Barb Reinhardt








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Variable named range in worksheet function

I used OFFSET. Is that my problem? I like OFFSET. Why won't it work that
way?

Thanks,
Barb Reinhardt



"Peo Sjoblom" wrote:

How does your named range look, I assumed you used a straightforward one
like
Sheet!!$A$2:$A$9
if you use offset to make it dynamic it won't work


--


Regards,


Peo Sjoblom



"Barb Reinhardt" wrote in message
...
FWIW, when I step through the calculation, I get REF on the
INDIRECT("Factor"
& $B17) part.
Thanks,
Barb Reinhardt



"Peo Sjoblom" wrote:

Yes. For that particular formula to work the range should be of equal
size
to the other cell ranges or else you will probably get a N/A error

--


Regards,


Peo Sjoblom

"Barb Reinhardt" wrote in
message
...
I'd like to use a named range of "FactorA" (which contains multiple
cells),
etc, and I'm trying to do something like this

=AVERAGE(IF(INDIRECT("Factor"
&$B17)=$D17,IF($F$2:$F$9=E$16,$R$2:$R$9)))

Where B17 contains the A. Can I do this?

Thanks,
Barb Reinhardt







  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Variable named range in worksheet function

See this:

http://tinyurl.com/6lufyy

--
Biff
Microsoft Excel MVP


"Barb Reinhardt" wrote in message
...
I used OFFSET. Is that my problem? I like OFFSET. Why won't it work
that
way?

Thanks,
Barb Reinhardt



"Peo Sjoblom" wrote:

How does your named range look, I assumed you used a straightforward one
like
Sheet!!$A$2:$A$9
if you use offset to make it dynamic it won't work


--


Regards,


Peo Sjoblom



"Barb Reinhardt" wrote in
message
...
FWIW, when I step through the calculation, I get REF on the
INDIRECT("Factor"
& $B17) part.
Thanks,
Barb Reinhardt



"Peo Sjoblom" wrote:

Yes. For that particular formula to work the range should be of equal
size
to the other cell ranges or else you will probably get a N/A error

--


Regards,


Peo Sjoblom

"Barb Reinhardt" wrote in
message
...
I'd like to use a named range of "FactorA" (which contains multiple
cells),
etc, and I'm trying to do something like this

=AVERAGE(IF(INDIRECT("Factor"
&$B17)=$D17,IF($F$2:$F$9=E$16,$R$2:$R$9)))

Where B17 contains the A. Can I do this?

Thanks,
Barb Reinhardt









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
Using named range to extend print area for variable number of columns Pierre Excel Worksheet Functions 3 April 10th 08 05:51 PM
Do not specify worksheet in a named range hmm Excel Discussion (Misc queries) 3 September 18th 07 01:30 PM
Excel Named Formula Weakly Interacts with a Variable Range on the Worksheet - Re-Visit [email protected] Excel Discussion (Misc queries) 5 September 6th 07 06:42 PM
Getting a named range to appear in another worksheet John Excel Discussion (Misc queries) 2 July 28th 07 02:12 AM
Variable names for named range Barb Reinhardt Excel Discussion (Misc queries) 4 March 19th 07 05:37 PM


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