+ Reply to Thread
Results 1 to 4 of 4

Need part of formula within " " to become relative

  1. #1
    Registered User
    Join Date
    11-01-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    1

    Question Need part of formula within " " to become relative

    Hello

    I am very new to Excel but have managed to put together quite an extensive spreadsheet for work. I am just one formula away from helping to save myself days worth of work but would really appreciate some help with the final formula that I will need to copy and paste hundreds of times.

    The formula that works perfectly is as follows:

    =INDIRECT($B$3 & "!H9")

    The part I am having problems with is making the H9 relative so that when I copy the formula to the right it becomes I9, J9, K9, etc and then when I copy and paste it down it needs to become H10, H11, H12, etc.

    If there is no way to do this, I would literally have to manually edit this formula about 6,000 times...

    Thank you so much for your help and I hope somebody can solve this for me! Once this spreadsheet is set up I will be able to use it for years - this is the last step I am stuck on.

    Kind regards

    Lawrence

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Need part of formula within " " to become relative

    Welcome to the forum
    Try
    =INDIRECT($B$3 & "!" & H9)
    EDIT:
    or better still (thanks @leelnich) try something that might actually work
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by kev_; 11-02-2017 at 01:27 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Need part of formula within " " to become relative

    Quote Originally Posted by kev_ View Post
    =INDIRECT($B$3 & "!" & H9)
    This would append the CONTENTS of H9 to the string, not its ADDRESS.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Need part of formula within " " to become relative

    Try this:
    Please Login or Register  to view this content.
    ADDRESS(row_num, column_num, [abs_code], [A1_style], [sheet_text])
    The ADDRESS function sheet_text parameter will add the "!" AND add apostophes around any names with spaces.
    Last edited by leelnich; 11-01-2017 at 07:18 PM.

+ 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. Replies: 2
    Last Post: 06-30-2017, 10:10 AM
  2. Replies: 3
    Last Post: 01-02-2014, 02:15 PM
  3. Replies: 2
    Last Post: 06-25-2013, 12:43 PM
  4. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  5. How to use the "$" in a relative reference macro formula
    By Cullen8 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-07-2008, 09:50 PM
  6. Replies: 6
    Last Post: 11-01-2007, 11:56 AM
  7. Replies: 4
    Last Post: 08-26-2005, 08: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