+ Reply to Thread
Results 1 to 4 of 4

Using R1C1 notation

  1. #1
    Forum Contributor
    Join Date
    01-28-2013
    Location
    sweden
    MS-Off Ver
    Excel 2010
    Posts
    108

    Using R1C1 notation

    Hi,

    I am using MATCH function to determine which area that should be summed.

    Say I have Array

    TE FE KR DK LE ST OK LP
    -10 -9 -8 -7 -6 -5 -4 -3

    And I want to look up value "DK" in array for first row, which would give me a MATCH of 4. Now I want to sum columns 5 to 8, i.e -18.

    My plan was to use R1C1 notation to do this.

    Planned formula: =SUM(R1C&MATCH("DK", R1C1:R1C8, Exact Match):R1C8)

    But it seems impossible to have column index as a variable in R1C1 notation, or am I just doing something wrong?

    Help appreciated as always!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using R1C1 notation

    Try

    Wouldn't it be row 2 you want to sum, surely you can't sum row 1 since it contains the text values for your match..

    Try
    =SUM(INDEX($A$2:$H$2,MATCH("DK",$A$1:$H$1,0)+1):$H2)

  3. #3
    Forum Contributor
    Join Date
    01-28-2013
    Location
    sweden
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Using R1C1 notation

    Yes, of course it should be row two.

    Beautiful solution, thanks a lot!

    This forum is really quick and provides great help!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using R1C1 notation

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. R1C1 notation in a FormulaArray
    By n043480 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2016, 05:29 AM
  2. R1C1 notation
    By samot79 in forum Excel General
    Replies: 4
    Last Post: 12-11-2014, 06:32 AM
  3. [SOLVED] Another Question About R1C1 Notation in VBA
    By Derek_FedCiv_HsvAL in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2014, 12:22 PM
  4. [SOLVED] What is the advantage of A1 or R1C1 Notation ?
    By nur2544 in forum Excel General
    Replies: 1
    Last Post: 02-08-2013, 12:18 PM
  5. R1C1 notation conversion
    By Impartial Derivative in forum Excel General
    Replies: 1
    Last Post: 06-16-2011, 06:04 PM
  6. Sum Columns:R1C1 notation
    By Zone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2006, 11:05 AM
  7. [SOLVED] R1C1 Notation in VBA
    By Fred Holmes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2005, 05:05 PM

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