+ Reply to Thread
Results 1 to 6 of 6

Areas()

  1. #1
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Areas()

    Hi All,
    Just wondering if anyone has used the AREAS() function?
    I have never seen it use to solve any excel problem and would to see an example of how it can be used and/or manipulated.
    Regards pike

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Areas()

    Check out the following: http://www.xlfdic.com/ ... you can download a file which will show you examples of how each function is used.

    Areas is more commonly associated with VBA if you use code that generates a range consisting itself of non-contiguous ranges (say a SpecialCells routine against a parent range) ... you can iterate through the areas of resulting range. The areas function itself will simply tell you how many areas are included in a given range... so if you have a named range called rangex consisting of A1:A2, A5:B5, C1:D10 -- AREAS(rangex) would return 3.

    I can't think myself off hand as to when you would want/need to use it as a native function.... I'm sure someone else can though.

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Areas()

    Hi DonkeyOte,

    It's looking like the AREAS() is pretty useless.

    Thanks for the info and your reply.

    Regards pike

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Areas()

    I have found a use for AREAS....

    Whilst doing some investigation on INDEX I came across a potential albeit tenuous use for AREAS....

    Say you had the following:

    A1:A3: 1 to 3
    B1:B3: A to C

    D1:D3: 4 to 6
    E1:E3: D to F

    G1:G3: 7 to 9
    H1:H3: G to I

    Now let's assume you have a named range:

    Name: test
    RefersTo: =Sheet1!$A$1:$B$3,Sheet1!$D$1:$E$3,Sheet1!$G$1:$H$3

    If you were updating your named range continuously and you had an INDEX to return the value from say the 2nd row & 2nd column of the last area in the named range you could use:

    =INDEX(test,2,2,AREAS(test))

    This way you'd never have to update the INDEX - it would adjust automatically.

    I did say it was tenuous...

    (And yes I know there are other better ways to achieve the same result but it was meant to try and show there is a possible use for the AREAS function)

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Areas()

    Hey DonkeyOte,
    Thanks for finding a use for Area()
    Regards pike

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Areas()

    DonkeyOte

    Playing around with your example of the using the Areas function and found that it you have the equations
    =AREAS((test INDIRECT(B9))) the result =1
    =AREAS((test INDIRECT(B10))) the result =2
    =AREAS((test INDIRECT(C11))) the result =3

    where
    B9 value = A:A
    B10 value= A1:D3
    B11value =B:G
    But if you have a value of C:C the return equation value will an error

    this may have implications for a use but i just dont know what it is yet!!

    regards pike

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1