+ Reply to Thread
Results 1 to 14 of 14

Formula Help

  1. #1
    Registered User
    Join Date
    06-02-2011
    Location
    Bedford, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Formula Help

    Good Morning Guys,

    I'm hoping someone will be able to help. I am looking to adjust the formula below so that when when I drag and fill the cell containing the formula to duplicate, it automatically increases the sheet number e.g sheet1, sheet2, sheet 3 but doesn't change the references to particular cells.

    =Sheet1!R14C2

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

    Re: Formula Help

    Are the sheets literally named Sheet1 Sheet2, or do they have more meaningful names ?
    And will you be 'dragging' the formula Up/Down or Left/Right ?
    Last edited by Jonmo1; 09-12-2017 at 08:54 AM.

  3. #3
    Registered User
    Join Date
    06-02-2011
    Location
    Bedford, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Formula Help

    Hi Jonmo,

    Thank you for your quick reply. The sheets are all named sheet1, sheet2 etc. I will be dragging them down.

  4. #4
    Registered User
    Join Date
    06-02-2011
    Location
    Bedford, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Formula Help

    It is Excel 2016 if that makes a difference

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

    Re: Formula Help

    Try

    =INDIRECT("Sheet"&ROWS(R1C1:RC1)&"!R14C2",FALSE)

  6. #6
    Registered User
    Join Date
    06-02-2011
    Location
    Bedford, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Formula Help

    Doesn't seem to work. Just says REF

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

    Re: Formula Help

    ok, I was going by the original formula you posted
    =Sheet1!R14C2

    That's written in R1C1 style, so I assumed your Excel is using R1C1 style instead of A1 style.
    Is that not correct?

    If you're using A1 style, try
    =INDIRECT("Sheet"&ROWS(A$1:A1)&"!B14")

  8. #8
    Registered User
    Join Date
    06-02-2011
    Location
    Bedford, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Formula Help

    Yes the sheet is in R1C1 style. I am assuming i should be able to insert your formula anywhere on the sheet and it should extrapolate the correct information to that cell?

  9. #9
    Registered User
    Join Date
    06-02-2011
    Location
    Bedford, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Formula Help

    I think the problem is that if we rename the Sheet (i.e. call Sheet 1, Test Sheet 1 it doesn't like it). Is there a way to adjust the formula so we can change the sheet name without causing an error?

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

    Re: Formula Help

    That's why I asked if the the sheets were literally named Sheet1 Sheet2
    You said YES.

    No, you'd have to manually update the formula if you change the sheetname after the formula is created.

    I would recommend renaming your sheets as they need to be first.
    THEN work on this indirect formula.

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

    Re: Formula Help

    If you can maintain a list of sheetnames in a range, say Z2:Z5 or whatever
    Z2 = Sheet1
    Z3 = Sheet2
    Z4 = SomeOtherSheetName
    etc.

    Then you can do
    =INDIRECT("'"&Z2&"'!R12C2",FALSE)

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula Help

    Chaps, chaps!

    Remember Forum Rule 1 please.

    @mainland. Please edit post #1 and change the subject header.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  13. #13
    Registered User
    Join Date
    06-02-2011
    Location
    Bedford, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Formula Help

    Thanks for your help. I think I've got it.

  14. #14
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula Help

    Quote Originally Posted by Mainland View Post
    Thanks for your help. I think I've got it.
    ....and the subject header????

+ 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. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  2. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  3. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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