#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Benifit of AREAS


Hi,

What is the benifit of the worksheet function AREAS?

How can we use it with other functions?

Can you please give me an example for that?

Thank you everybody,


--
LoveCandle
------------------------------------------------------------------------
LoveCandle's Profile: http://www.excelforum.com/member.php...o&userid=28612
View this thread: http://www.excelforum.com/showthread...hreadid=566444

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Benifit of AREAS

A very simple example

Dim rng As Range
Dim area As Range

Set rng = Range("A1:A2,B9:C15,M4:O11")
For Each area In rng.Areas
MsgBox area.Address
Next area


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"LoveCandle" wrote
in message ...

Hi,

What is the benifit of the worksheet function AREAS?

How can we use it with other functions?

Can you please give me an example for that?

Thank you everybody,


--
LoveCandle
------------------------------------------------------------------------
LoveCandle's Profile:

http://www.excelforum.com/member.php...o&userid=28612
View this thread: http://www.excelforum.com/showthread...hreadid=566444



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Benifit of AREAS

On Sun, 30 Jul 2006 20:59:51 +0100, "Bob Phillips"
wrote:

A very simple example

Dim rng As Range
Dim area As Range

Set rng = Range("A1:A2,B9:C15,M4:O11")
For Each area In rng.Areas
MsgBox area.Address
Next area


What about the Areas "Worksheet Function"?
--ron
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 380
Default Benifit of AREAS

Thought I was in the programming group!

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Ron Rosenfeld" wrote in message
...
On Sun, 30 Jul 2006 20:59:51 +0100, "Bob Phillips"
wrote:

A very simple example

Dim rng As Range
Dim area As Range

Set rng = Range("A1:A2,B9:C15,M4:O11")
For Each area In rng.Areas
MsgBox area.Address
Next area


What about the Areas "Worksheet Function"?
--ron



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Benifit of AREAS

On Mon, 31 Jul 2006 00:08:09 +0100, "Bob Phillips" wrote:

Thought I was in the programming group!


Yeah. I've never used the Areas worksheet function and was also wondering about
how it might be useful.


--ron


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Benifit of AREAS


Thank you for this useful example for AREAS worksheet function in VBA
,,

But, I am greedy to have another example for the same function on the
worksheet itself,,


--
LoveCandle
------------------------------------------------------------------------
LoveCandle's Profile: http://www.excelforum.com/member.php...o&userid=28612
View this thread: http://www.excelforum.com/showthread...hreadid=566444

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Benifit of AREAS

I had to look it up in help to make sure there was such a worksheet function.
I've never seen anybody use it, FWVLIW.


"Ron Rosenfeld" wrote:

On Mon, 31 Jul 2006 00:08:09 +0100, "Bob Phillips" wrote:

Thought I was in the programming group!


Yeah. I've never used the Areas worksheet function and was also wondering about
how it might be useful.


--ron

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Benifit of AREAS

Well, it was either the AREAS(Range) function or the CONCAT(Range, ",")
function. There wasn't room for both!

There was so much demand for the Areas function that it got the nod.

Biff

"JMB" wrote in message
...
I had to look it up in help to make sure there was such a worksheet
function.
I've never seen anybody use it, FWVLIW.


"Ron Rosenfeld" wrote:

On Mon, 31 Jul 2006 00:08:09 +0100, "Bob Phillips"
wrote:

Thought I was in the programming group!


Yeah. I've never used the Areas worksheet function and was also wondering
about
how it might be useful.


--ron



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Benifit of AREAS

They need to do more market research. Or maybe they're saving it for Office
2010? I'm sure it's on the to do list (right after fixing COMBIN).

It would be nice to have a CONCAT that would work w/ranges and in array
formulae. I've wanted to do that more than once.


"Biff" wrote:

Well, it was either the AREAS(Range) function or the CONCAT(Range, ",")
function. There wasn't room for both!

There was so much demand for the Areas function that it got the nod.

Biff

"JMB" wrote in message
...
I had to look it up in help to make sure there was such a worksheet
function.
I've never seen anybody use it, FWVLIW.


"Ron Rosenfeld" wrote:

On Mon, 31 Jul 2006 00:08:09 +0100, "Bob Phillips"
wrote:

Thought I was in the programming group!

Yeah. I've never used the Areas worksheet function and was also wondering
about
how it might be useful.


--ron




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Benifit of AREAS

I've never used AREAS, never seen it used, and like Ron, wonder how it can
be used for anything useful!

Biff

"JMB" wrote in message
...
They need to do more market research. Or maybe they're saving it for
Office
2010? I'm sure it's on the to do list (right after fixing COMBIN).

It would be nice to have a CONCAT that would work w/ranges and in array
formulae. I've wanted to do that more than once.


"Biff" wrote:

Well, it was either the AREAS(Range) function or the CONCAT(Range, ",")
function. There wasn't room for both!

There was so much demand for the Areas function that it got the nod.

Biff

"JMB" wrote in message
...
I had to look it up in help to make sure there was such a worksheet
function.
I've never seen anybody use it, FWVLIW.


"Ron Rosenfeld" wrote:

On Mon, 31 Jul 2006 00:08:09 +0100, "Bob Phillips"
wrote:

Thought I was in the programming group!

Yeah. I've never used the Areas worksheet function and was also
wondering
about
how it might be useful.


--ron








  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 266
Default Benifit of AREAS

"LoveCandle" skrev
i en meddelelse
...

Hi,

What is the benifit of the worksheet function AREAS?

How can we use it with other functions?

Can you please give me an example for that?

Thank you everybody,


--
LoveCandle



Hi

Here's an example of using AREAS

Assume you have a named range (TestBlock) of non
contiguous blocks e.g. A1:A10 + C1:C10 + E1:E10 +
G1:G10 and that this range is expanded every third day.
The name is adjusted to hold the new block as well.


The formula

=INDEX(TestBlock,3,1,AREAS(TestBlock)-1)

will always return the value of the third cell in the last
block but one


--
Best regards
Leo Heuser

Followup to newsgroup only please.


  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Benifit of AREAS

LoveCandle wrote...
What is the benifit of the worksheet function AREAS?

How can we use it with other functions?

....

Homework?

AREAS is one of the less useful information functions. It's only use is
returning the number of areas in a range reference, and there's little
or no need for that since it's unnecessary in functions that can handle
general range references (like SUM), and it's unnecessary to deal with
functions that can handle only single area ranges (like SUMIF) since
one may use INDEX(Range,0,0,1) to refer to the first area of a general
range reference.

It ranks right up there with INFO, both of which are more useful than
POWER or CONCATENATE.

  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Benifit of AREAS

On Mon, 31 Jul 2006 10:05:09 +0200, "Leo Heuser"
wrote:

"LoveCandle" skrev
i en meddelelse
news:LoveCandle.2brt35_1154283308.5862@excelfor um-nospam.com...

Hi,

What is the benifit of the worksheet function AREAS?

How can we use it with other functions?

Can you please give me an example for that?

Thank you everybody,


--
LoveCandle



Hi

Here's an example of using AREAS

Assume you have a named range (TestBlock) of non
contiguous blocks e.g. A1:A10 + C1:C10 + E1:E10 +
G1:G10 and that this range is expanded every third day.
The name is adjusted to hold the new block as well.


The formula

=INDEX(TestBlock,3,1,AREAS(TestBlock)-1)

will always return the value of the third cell in the last
block but one


Thanks for that example, Leo.
--ron
  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 266
Default Benifit of AREAS

"Ron Rosenfeld" skrev i en meddelelse
...
Hi

Here's an example of using AREAS

Assume you have a named range (TestBlock) of non
contiguous blocks e.g. A1:A10 + C1:C10 + E1:E10 +
G1:G10 and that this range is expanded every third day.
The name is adjusted to hold the new block as well.


The formula

=INDEX(TestBlock,3,1,AREAS(TestBlock)-1)

will always return the value of the third cell in the last
block but one


Thanks for that example, Leo.
--ron


My pleasure, Ron :-)
Leo


  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Benifit of AREAS


Thank you Mr. Leo for the example you mentioned ..

and thanks for everyboy participated in this topic

I thought that excel worksheet functions can't get a range consists of
different areas ,, but with help of AREAS worksheet function we could
do that.

Thank you again,


--
LoveCandle
------------------------------------------------------------------------
LoveCandle's Profile: http://www.excelforum.com/member.php...o&userid=28612
View this thread: http://www.excelforum.com/showthread...hreadid=566444



  #16   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 266
Default Benifit of AREAS

"LoveCandle" skrev
i en meddelelse
...

Thank you Mr. Leo for the example you mentioned ..

and thanks for everyboy participated in this topic

I thought that excel worksheet functions can't get a range consists of
different areas ,, but with help of AREAS worksheet function we could
do that.

Thank you again,


You're welcome and thanks for the feedback :-)

Leo Heuser


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
fixed plot areas? spaceygrace Charts and Charting in Excel 2 May 4th 06 08:37 PM
Aligning two chart plot areas - simple but tricky! Alseikhan Charts and Charting in Excel 1 March 20th 06 11:47 PM
grid lines - off in selected areas John Keith Excel Discussion (Misc queries) 2 January 8th 06 07:47 PM
Multiple Print areas in same sheet? Enzo Excel Discussion (Misc queries) 4 August 29th 05 07:58 PM
Countif & ranges consisting of multiple areas Jurry Excel Worksheet Functions 0 November 15th 04 12:39 PM


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