+ Reply to Thread
Results 1 to 5 of 5

Using Row & Column References in Cell Formulas?

  1. #1
    Registered User
    Join Date
    09-05-2014
    Location
    Munich, Germany
    MS-Off Ver
    2013
    Posts
    2

    Using Row & Column References in Cell Formulas?

    I feel like I'm going crazy because I can't even find a Google search which answers this question...

    Is it possible to use R1C1 type references to other cells within cell formulas? Something like "=SUM(R1C5:R4C5)" instead of "=SUM(E1:E4)"?

    I would like to reference values in a certain row and column depending on a date. Basically, I have a calendar at the top of a spreadsheet which shows the current month. On another sheet, I have a row for each month, with separate ones for each year (i.e. there's a row for January 2014 and a separate row for January 2015 twelve rows later) and columns for the days. In the month-day row-column cell is information on whether that day is a holiday (e.g. row 9 column 8 contains information for September 8, 2014). I would like for the calendar on the main sheet to be able to reference this row during September and the next row during October by subtracting the current month by the original month and using that value as the row number. The value in this cell would be the basis for conditional formatting, but it's not so easy using the address references like "H8" compared to "R9C8."

    Thanks for any advice!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using Row & Column References in Cell Formulas?

    you get better help on your question, if you add an excel file, without confidential information.

    please also add the desired result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Using Row & Column References in Cell Formulas?

    You could try using the features of the INDEX function. Alternatively, you could set Excel to use R1C1 reference style (this is done in the option settings).
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,742

    Re: Using Row & Column References in Cell Formulas?

    An additional thought RE: ConneXionLost's 'Options' suggestion; here is a one-liner macro Rick Rothstein came up with. I assigned it to my Quick Access Toolbar and use it frequently....beats burrowing through the Options settings every time I need it.

    Please Login or Register  to view this content.
    Just copy this code, open VBA (Alt + F11)
    Add new module. Paste into the module window.

    Go back to your workbook. Call up the Macros list (Alt + F8). Select the macro. Click run.
    Assign macro to a button on your QAT (optional) and it's there every time you need it.

    Hope this helps.
    FR
    Last edited by FlameRetired; 09-05-2014 at 06:15 PM.

  5. #5
    Registered User
    Join Date
    09-05-2014
    Location
    Munich, Germany
    MS-Off Ver
    2013
    Posts
    2

    Re: Using Row & Column References in Cell Formulas?

    Thanks for the advice. The INDEX function was exactly what I was looking for in this case.

+ 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. Using Cell references in file paths for formulas to create dynamic formulas
    By MichaelStokesJr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2013, 11:49 AM
  2. Add formulas and not cell references
    By amandas10 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2013, 11:20 PM
  3. Using full column / row references in formulas
    By fullysic in forum Excel General
    Replies: 2
    Last Post: 02-09-2012, 07:10 PM
  4. Need Formulas within Cell References
    By jhockstr in forum Excel General
    Replies: 1
    Last Post: 08-13-2005, 01:40 AM
  5. [SOLVED] Formulas within Cell References
    By jhockstr in forum Excel General
    Replies: 2
    Last Post: 08-12-2005, 03: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