+ Reply to Thread
Results 1 to 2 of 2

=3-index($c$10:$j$17;column()-2;row()-9)

  1. #1
    Registered User
    Join Date
    07-05-2013
    Location
    Lübeck
    MS-Off Ver
    Excel 2010
    Posts
    12

    =3-index($c$10:$j$17;column()-2;row()-9)

    =3-INDEX($C$10:$J$17;COLUMN()-2;ROW()-9) ........


    whats the function of COLUMN()-2 & ROW()-9 in the above function .


    It would be helpfull if the formula is fully explained

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: =3-index($c$10:$j$17;column()-2;row()-9)

    Hi,

    The COLUMN and ROW functions simply return the number of the column and row respectively for the given reference, so e.g. ROW(A1)=1, COLUMN(A1)=1, ROW(X67)=67, COLUMN(X67)=24, etc.

    When the reference is omitted, as in ROW(), COLUMN(), they return the row/column number of the active cell.

    This is useful, for example, when constructing dynamic formulae, as in the above, so that when copied to further cells, the reference(s) - in this case arguments of the INDEX function - will change appropriately. If for example, you start with your formula in cell C10, it becomes:

    =3-INDEX($C$10:$J$17;3-2;10-9) which is:

    =3-INDEX($C$10:$J$17;1;1)

    However, suppose this is copied down to the next row, then it will be in row 11 and will become:

    =3-INDEX($C$10:$J$17;3-2;11-9) which is

    =3-INDEX($C$10:$J$17;1;2)

    and, if instead it was copied, not down, but to the right, it would be in column D and so become:

    =3-INDEX($C$10:$J$17;4-2;10-9) which is

    =3-INDEX($C$10:$J$17;2;1)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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