+ Reply to Thread
Results 1 to 4 of 4

Drag formula down and +1 to a value mid formula

Hybrid View

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Drag formula down and +1 to a value mid formula

    I have a formula that links to a cell in another work book.
    I am searching for a solution to drag that formula down and add the new number of the linked work book.

    ='S:\FOLDER LOCATION\FOLDER LOCATION\[2231.xlsm]Modular'!$S$97

    Want to be able to drag the above formula down so I get the below example and still have the linking formula work:
    ='S:\FOLDER LOCATION\FOLDER LOCATION\[2231.xlsm]Modular'!$S$97
    ='S:\FOLDER LOCATION\FOLDER LOCATION\[2232.xlsm]Modular'!$S$97
    ='S:\FOLDER LOCATION\FOLDER LOCATION\[2233.xlsm]Modular'!$S$97
    ='S:\FOLDER LOCATION\FOLDER LOCATION\[2234.xlsm]Modular'!$S$97
    ='S:\FOLDER LOCATION\FOLDER LOCATION\[2235.xlsm]Modular'!$S$97

    Any help is greatly appreciated

  2. #2
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Drag formula down and +1 to a value mid formula

    Not sure if this will work for you, but you could try using the row number

    ="'S:\FOLDER LOCATION\FOLDER LOCATION\[223" & ROW() & ".xlsm]Modular'"&"!$S$97"

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Drag formula down and +1 to a value mid formula

    Hi,
    Thanks for the reply.
    So that works for changing the work sheet numbers for sure.. but excel does not seem to recognise the output as a formula, just text..

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Drag formula down and +1 to a value mid formula

    You need to use INDIRECT, a volatile function... but when you have to, you have to.

    =INDIRECT("'S:\FOLDER LOCATION\FOLDER LOCATION\[22"&ROWS($1:31)&".xlsm]Modular'!S97")
    Last edited by Glenn Kennedy; 06-24-2021 at 04:20 AM. Reason: Edited out a typo
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. [SOLVED] Drag CONCATENATE Formula or other formula till last cell in the spreadsheet
    By E5254730 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-23-2017, 10:51 AM
  2. Replies: 5
    Last Post: 04-22-2017, 05:09 PM
  3. [SOLVED] Can I create a formula and drag the cell and duplicate the formula?
    By attroll in forum Excel General
    Replies: 10
    Last Post: 11-28-2016, 01:14 PM
  4. drag sum formula down a column but change the formula
    By stephme55 in forum Excel General
    Replies: 6
    Last Post: 02-22-2016, 03:02 PM
  5. formula won't drag down?
    By plato in forum Excel General
    Replies: 1
    Last Post: 09-30-2011, 08:54 AM
  6. Replies: 4
    Last Post: 09-29-2006, 01:51 PM
  7. Drag formula down
    By TxVics in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-21-2006, 12:25 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