Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Conditional Named Ranges

Excel allows a defined name to represent an array range or array constant. It
allows a name to represent a formula which is then evaluated to return a
value.
Why can I not define conditional arrays like these:
=IF(!$A$1=€Q1€,{€œJan€;€Feb€;€Mar€} ,IF(!$A$1=€Q2€, {€œApr€;€May€;€Jun€}))
=IF(!$A$1="Q1",!$A$2:!$A$4,IF(!$A$1="Q2",!$A$5:!$A $7))
When I try to enter their names in a vertical range, the first value is
returned in all cells.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Conditional Named Ranges

Try substituting commas for the semicolons. This works for me when used
in Insert/Define/Name:

=IF(!$A$1="Q1",{"Jan","Feb","Mar"},IF(!$A$1="Q2",
{"Apr","May","Jun"}))


In article ,
Tevuna wrote:

Excel allows a defined name to represent an array range or array constant. It
allows a name to represent a formula which is then evaluated to return a
value.
Why can I not define conditional arrays like these:
=IF(!$A$1=€Q1€,{€œJan€;€Feb€;€Mar€} ,IF(!$A$1=€Q2€, {€œApr€;€May€;€Jun€}))
=IF(!$A$1="Q1",!$A$2:!$A$4,IF(!$A$1="Q2",!$A$5:!$A $7))
When I try to enter their names in a vertical range, the first value is
returned in all cells.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Conditional Named Ranges

Doesn't work for me in a horizontal, and certainly not in vertical, range.

"JE McGimpsey" wrote:

Try substituting commas for the semicolons. This works for me when used
in Insert/Define/Name:

=IF(!$A$1="Q1",{"Jan","Feb","Mar"},IF(!$A$1="Q2",
{"Apr","May","Jun"}))


In article ,
Tevuna wrote:

Excel allows a defined name to represent an array range or array constant. It
allows a name to represent a formula which is then evaluated to return a
value.
Why can I not define conditional arrays like these:
=IF(!$A$1=Γ’‚¬ΒQ1Γ’‚¬Β,{Γ’‚¬Ε“JanΓ’‚¬Β;Γ’‚ ¬ΒFebΓ’‚¬Β;Γ’‚¬ΒMarΓ’‚¬Β},IF(!$A$1=Γ’‚¬ΒQ 2Γ’‚¬Β, {Γ’‚¬Ε“AprΓ’‚¬Β;Γ’‚¬ΒMayΓ’‚¬Β;Γ’‚¬ΒJunΓ’ ‚¬Β}))
=IF(!$A$1="Q1",!$A$2:!$A$4,IF(!$A$1="Q2",!$A$5:!$A $7))
When I try to enter their names in a vertical range, the first value is
returned in all cells.


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
Sum of named ranges conditional to date? SleazyBreezy Excel Worksheet Functions 25 June 24th 09 10:46 AM
Named Ranges James Hamilton Excel Discussion (Misc queries) 1 March 15th 07 11:25 PM
Conditional Sum Wizard with dynamic named ranges willee Excel Worksheet Functions 4 February 5th 06 07:03 PM
Named Ranges in VBA Bruce Excel Discussion (Misc queries) 1 June 17th 05 03:35 AM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM


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

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

About Us

"It's about Microsoft Excel"