LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Dynamic Ranges using non-contiguous cells and dependent on a cell value

Hi,

I am trying to find a solution on that but i cannot. Does anybody is
able to help me? What i need is to define Dynamic Ranges of values
(column B) using non-contiguous cells values (column A).

Please find attached a relevant discussion on the topic dating back to
1999
Thanks
Carlo

-------------------------------

Da: Phil Bosinoff - vedi profilo
Data: Mer 24 Mar 1999 00:00
Email: "Phil Bosinoff"
Gruppi: microsoft.public.excel.misc,
microsoft.public.excel.worksheet.functions
Non ancora classificatoValutazione:
mostra opzioni
Rispondi | Rispondi all'autore | Inoltra | Stampa | Messaggio singolo |
Mostra originale | Segnala illeciti | Trova messaggi di questo autore


Using XL97, how can I define a range who's included elements depend on
the
values of other cells? In particular, suppose I have:

A B
1 False Apple
2 False Pear
3 True Orange
4 False Plum
5 True Grape
6 True Blueberry


What name can I define that would refer to the reference
="$B$3,$B$5,$B$6"
for these values in the A column, but would automatically change to
reflect
alternate Boolean values in the A column. In other words, if the A
column
were changed so that only A1 and A3 were TRUE, then the defined name
would
refer to ="$B$1,$B$3".


The dynamically defined name must return a reference to the
non-contiguous
region, not the values themselves.


I have looked at INDEX, CHOOSE, and OFFSET and not been able to come up
with
any combination of functions which return a non-contiguous dynamically
defined reference. Perhaps I missed something.


Is there any way to do this?


-Phil


Rispondi Vota questo post: Text for clearing space


Da: jaf - vedi profilo
Data: Mer 24 Mar 1999 00:00
Email: "jaf"
Gruppi: microsoft.public.excel.misc,
microsoft.public.excel.worksheet.functions
Non ancora classificatoValutazione:
mostra opzioni
Rispondi | Rispondi all'autore | Inoltra | Stampa | Messaggio singolo |
Mostra originale | Segnala illeciti | Trova messaggi di questo autore


Hi Phil,

Select just the cells you want while holding down the control key
and...
insertnamesdefine. fini.


John



Phil Bosinoff wrote in message ...


|Using XL97, how can I define a range who's included elements depend on
the
|values of other cells? In particular, suppose I have:
|
| A B
|1 False Apple
|2 False Pear
|3 True Orange
|4 False Plum
|5 True Grape
|6 True Blueberry
|
|What name can I define that would refer to the reference
="$B$3,$B$5,$B$6"
|for these values in the A column, but would automatically change to
reflect
|alternate Boolean values in the A column. In other words, if the A
column
|were changed so that only A1 and A3 were TRUE, then the defined name
would
|refer to ="$B$1,$B$3".
|
|The dynamically defined name must return a reference to the
non-contiguous
|region, not the values themselves.
|
|I have looked at INDEX, CHOOSE, and OFFSET and not been able to come
up
with
|any combination of functions which return a non-contiguous dynamically

|defined reference. Perhaps I missed something.
|
|Is there any way to do this?
|
|-Phil
|
|
|

Rispondi Vota questo post: Text for clearing space


Da: Phil Bosinoff - vedi profilo
Data: Mer 24 Mar 1999 00:00
Email: "Phil Bosinoff"
Gruppi: microsoft.public.excel.misc,
microsoft.public.excel.worksheet.functions
Non ancora classificatoValutazione:
mostra opzioni
Rispondi | Rispondi all'autore | Inoltra | Stampa | Messaggio singolo |
Mostra originale | Segnala illeciti | Trova messaggi di questo autore


John,

You have missed my point; that would not be dynamic. I want the range
definition to adjust automatically, as a function of the values in the
A
range. I do not want to have to redefine it myself.


DynName=f(A1:A6,B1:B6), or, more generally:


DynName=f(BoolRange, TargetRangeofSameShape).


Phil



- Nascondi testo tra virgolette -
- Mostra testo tra virgolette -

jaf wrote in message ...
Hi Phil,


Select just the cells you want while holding down the control key and...
insertnamesdefine. fini.



John




Rispondi Vota questo post: Text for clearing space


Da: Stephen Bullen - vedi profilo
Data: Mer 24 Mar 1999 00:00
Email: Stephen Bullen
Gruppi: microsoft.public.excel.misc,
microsoft.public.excel.worksheet.functions
Non ancora classificatoValutazione:
mostra opzioni
Rispondi | Rispondi all'autore | Inoltra | Stampa | Messaggio singolo |
Mostra originale | Segnala illeciti | Trova messaggi di questo autore


Hi Phil,


The dynamically defined name must return a reference to the non-contiguous
region, not the values themselves.



I'll answer this with a question - why?

Most things that can use such an input will also work with the values.
What
are you going to use this range for?


Regards


Stephen Bullen
Microsoft MVP - Excel
http://www.BMSLtd.co.uk


Rispondi Vota questo post: Text for clearing space


Da: Phil Bosinoff - vedi profilo
Data: Gio 25 Mar 1999 00:00
Email: "Phil Bosinoff"
Gruppi: microsoft.public.excel.misc,
microsoft.public.excel.worksheet.functions
Non ancora classificatoValutazione:
mostra opzioni
Rispondi | Rispondi all'autore | Inoltra | Stampa | Messaggio singolo |
Mostra originale | Segnala illeciti | Trova messaggi di questo autore


Hi Stephen,

This is getting a little off the topic, but...


The idea was to have a table driven VBA macro, which had a list of
defined
range names on the subject sheet along with the desired attributes of
each
range, i.e. background colors, fonts, cell protection. The table
itself is
on a separate sheet. A VBA routine could then run down this list and
change
the attributes of each range according to entries in the table. It
just
seems like a clean way to customize the visual format of a sheet.
These
attributes can change as one uses the program, and this mechanism
provides a
simple way to set them back to their default. Unfortunately, the
desired
format of some of the cells is data dependent. So, I tried to set up a
data
dependent range definition.


Meanwhile I've added the VBA code to go thru the range and modify the
attributes, depending on the data. But the data dependent range name
would
be a far more elegant solution.


Really what I'm looking for is a Dfunction (database function) that
doesn't
perform any operation on the cells that meet the criteria (like DSUM or

DAVERAGE), but simply returns a reference to them. Sort of a
DREFERENCE.


Phil




- Nascondi testo tra virgolette -
- Mostra testo tra virgolette -

Stephen Bullen wrote in message ...
Hi Phil,


The dynamically defined name must return a reference to the

non-contiguous
region, not the values themselves.



I'll answer this with a question - why?



Most things that can use such an input will also work with the values.

What
are you going to use this range for?



Regards



Stephen Bullen
Microsoft MVP - Excel
http://www.BMSLtd.co.uk




Rispondi Vota questo post: Text for clearing space


Da: Stephen Bullen - vedi profilo
Data: Gio 25 Mar 1999 00:00
Email: Stephen Bullen
Gruppi: microsoft.public.excel.misc,
microsoft.public.excel.worksheet.functions
Non ancora classificatoValutazione:
mostra opzioni
Rispondi | Rispondi all'autore | Inoltra | Stampa | Messaggio singolo |
Mostra originale | Segnala illeciti | Trova messaggi di questo autore


Hi Phil,


The idea was to have a table driven VBA macro, which had a list of defined
range names on the subject sheet along with the desired attributes of each
range, i.e. background colors, fonts, cell protection.



Thanks for the explanation. I guess what you're asking for is an
INDIRECT()
call which uses an array formula (an hence returns multiple range
references). Unfortunately, the indirect() function does not seem to
accept
arrays for its input, so I doubt if it can be done in a one-liner.

Your concept is sound and the VBA approach may be the best way to go.


Depending on your situation, you may also be able to use Styles to
change
ths visual appearance of the sheet.


Regards


Stephen Bullen
Microsoft MVP - Excel
http://www.BMSLtd.co.uk


Rispondi Vota questo post: Text for clearing space


Da: Phil Bosinoff - vedi profilo
Data: Gio 25 Mar 1999 00:00
Email: "Phil Bosinoff"
Gruppi: microsoft.public.excel.misc,
microsoft.public.excel.worksheet.functions
Non ancora classificatoValutazione:
mostra opzioni
Rispondi | Rispondi all'autore | Inoltra | Stampa | Messaggio singolo |
Mostra originale | Segnala illeciti | Trova messaggi di questo autore


Stephen,

Yes, you understand what I'm looking for. INDEX, INDIRECT, and OFFSET
return references, but don't seem to be able to handle multiple ranges.




Depending on your situation, you may also be able to use Styles to change
ths visual appearance of the sheet.



I had completely forgotten about Styles! I guess it's easy to overlook
this
feature of Excel. Thanks for the suggestion. I'll look into Styles as
a
possible way to enhance my current approach.

Regards,
Phil

 
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
Simple question - auto populate cells - dependent on other cell value. David Smithz Excel Discussion (Misc queries) 2 June 18th 06 01:15 PM
Cell locking dependent on Cell value Gareth - Network analyst. Excel Discussion (Misc queries) 6 June 13th 06 03:55 PM
How do I get a cell to flash depending on another cell's value? trrrr Excel Worksheet Functions 3 May 8th 06 06:41 PM
Furmula Dependent Cell References ned Excel Discussion (Misc queries) 2 May 4th 06 05:03 PM
Trace ALL dependent cells in any worksheet anywhere in Excel Graham Tapper Excel Worksheet Functions 6 March 11th 05 05:44 PM


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