+ Reply to Thread
Results 1 to 6 of 6

Confused as to what this "formula" does

Hybrid View

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    2

    Confused as to what this "formula" does

    Using Excel 2010, by accident I ended up the following formula in a cell as follows:

    =$A$1:$A$3

    This seems to exhibit some strange behaviour that I cannot understand.

    If this formula is anywhere on row 1, it returns the value in A1.
    If it is on row 2, its returns the value in A2.
    If it is on row 3 it returns the value in A3.
    If it is on any other row it gives #VALUE.

    I cannot work out what the formula is doing and why the outcome varies depending on what row it appears on.
    Any explanations would be gratefully received.

    Thanks

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Confused as to what this "formula" does

    All it does is return the value of cells A1, A2 or A3, depending on what row you place the formula in. If you put it in row 4 or higher, it is 'out of range'.

    - Moo

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Confused as to what this "formula" does

    The colon in Excel is the range operator, so that formula is referencing the 3-cell range A1:A3.

    The reason it works the way it does in the first three rows is that Excel assumes an "implied intersection" -- you get the value of the cell in the same row as where the formula appears.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    11-30-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Confused as to what this "formula" does

    OK thanks - implied intersection isn't something I had come across before

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Confused as to what this "formula" does

    If that takes care of your original query, please select Thread Tools from the menu above and mark the thread as solved. Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Confused as to what this "formula" does

    It also works with row references, so you could create a multiplication table with the multiplicands in the top row and left column.

+ 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