+ Reply to Thread
Results 1 to 8 of 8

Is it possible for excel to autofill/complete when it's an external link?

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    29

    Is it possible for excel to autofill/complete when it's an external link?

    I have a spreadsheet with several pages inside. Several of the pages are named after the month of the year, and obviously only January has relevant data so far.
    I want some graphs on another sheet to get info from tables on the month sheets.
    So, for example, I had a cell adding up the same cell in each month.
    =sum(January!$L$5)
    =sum(January!$L$5+February!$L$5)

    etc.

    I would like to just drag down these tables and autofill them as more months are filled with data, but excel doesn't like that.
    Is there a way to do this?

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Is it possible for excel to autofill/complete when it's an external link?

    If the cell is always the same on the different cells, then a 3-D reference will do what you need.

    In other words, if you have twelve sheets named Jan,Feb,Mar...,Nov,Dec then these two formulae are equivalent:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    So you could put in a series of 3-D formulae for your various months. Note that 3-D formulae just note the start and end sheets, so if you were to add another sheet/sheets in between your monthly sheets (e.g. 'Q1','Q2' etc) then those sheets $L$5 would be included as well. More info on 3-D references is here: https://support.office.com/en-gb/art...a-b2ed54cc79a2

    Dragging a 3-D reference down to change the end-sheet is harder, as Excel needs to know what to put in when you drag down. One way which might work for you is this:
    On your summary sheet (where you're adding the data), put the names of your other sheets in a column in order. Let's say you put your 12 months in A1:A12 (A1 - Jan, A2 - Feb, etc). In B1 put this formula and drag it down to B12:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This will give you the equivalent of =SUM(Jan:Jan!$L$5) in B1, =SUM(Jan:Feb!$L$5) in B2, etc, down to =SUM(Jan:Dec!$L$5) in B12.
    You'll get a #REF error if the end-sheet doesn't exist - you could wrap the above formula in =IFERROR(aboveformula,"") to get rid of those, if you want.

    Attached is a file showing this working - the numbers in the L5 cells are just 1-12, so the sum is easy to see working.

    Hopefully that's of some use?
    Attached Files Attached Files
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    03-10-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    29

    Re: Is it possible for excel to autofill/complete when it's an external link?

    Quote Originally Posted by Aardigspook View Post
    If the cell is always the same on the different cells, then a 3-D reference will do what you need.

    In other words, if you have twelve sheets named Jan,Feb,Mar...,Nov,Dec then these two formulae are equivalent:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    So you could put in a series of 3-D formulae for your various months. Note that 3-D formulae just note the start and end sheets, so if you were to add another sheet/sheets in between your monthly sheets (e.g. 'Q1','Q2' etc) then those sheets $L$5 would be included as well. More info on 3-D references is here: https://support.office.com/en-gb/art...a-b2ed54cc79a2

    Dragging a 3-D reference down to change the end-sheet is harder, as Excel needs to know what to put in when you drag down. One way which might work for you is this:
    On your summary sheet (where you're adding the data), put the names of your other sheets in a column in order. Let's say you put your 12 months in A1:A12 (A1 - Jan, A2 - Feb, etc). In B1 put this formula and drag it down to B12:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This will give you the equivalent of =SUM(Jan:Jan!$L$5) in B1, =SUM(Jan:Feb!$L$5) in B2, etc, down to =SUM(Jan:Dec!$L$5) in B12.
    You'll get a #REF error if the end-sheet doesn't exist - you could wrap the above formula in =IFERROR(aboveformula,"") to get rid of those, if you want.

    Attached is a file showing this working - the numbers in the L5 cells are just 1-12, so the sum is easy to see working.

    Hopefully that's of some use?
    Thanks very much! I will give this a try and report back.

    Using a column with all of the headings was something I was trying to get working, but I wasn't sure how to write it in, I'll try your example.
    Last edited by adamgm; 01-26-2017 at 08:38 AM.

  4. #4
    Registered User
    Join Date
    03-10-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    29

    Re: Is it possible for excel to autofill/complete when it's an external link?

    That looks like it's working!

    The only (small) issue is that a break in the line (until we get to the months that aren't here yet), result in Ref errors. Is there a way to make excel ignore these for now?
    Underneath the column of Jan-Dec I also have a sum total of everything in the column, which won't be able to show a value until the end of December now...

    Edit: It looks like I may be able to be put an IFERROR around everything you had above...
    Last edited by adamgm; 01-26-2017 at 08:47 AM.

  5. #5
    Registered User
    Join Date
    03-10-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    29

    Re: Is it possible for excel to autofill/complete when it's an external link?

    It's working perfectly, thanks :D
    Last edited by adamgm; 01-26-2017 at 10:22 AM.

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Is it possible for excel to autofill/complete when it's an external link?

    You're welcome, glad to be of help.
    If that's your problem solved, please mark the thread as Solved so others know there's an answer here (instructions in my sig) - thanks.

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Is it possible for excel to autofill/complete when it's an external link?

    If the monthly worksheets are together without other worksheets in between this will work. Name the first worksheet Jan and the last worksheet Dec. This formula will sum all values in L5 of each worksheet between the first and last worksheet inclusive.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You can start with just the 2 worksheets and add worksheets between them for each month as required or you can create all the worksheets at one time. Just be sure that the first and last worksheets are as listed in the formula.
    Sum months.JPG
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Is it possible for excel to autofill/complete when it's an external link?

    This variation you might be able to use for graphing purposes. Add the months and place between Jan and End worksheets.
    Attachment 499064
    Attached Images Attached Images
    Last edited by newdoverman; 01-26-2017 at 03:59 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. [SOLVED] Excel External Link
    By niuyuer in forum Excel General
    Replies: 3
    Last Post: 05-06-2016, 12:08 PM
  2. Cell variable in external external link (hlookup fuction)
    By DorianGrim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2016, 03:11 AM
  3. Replies: 2
    Last Post: 09-29-2014, 01:14 AM
  4. Printing an external link when in Excel
    By jono7gold in forum Excel General
    Replies: 0
    Last Post: 05-22-2013, 03:01 AM
  5. Excel changing external link paths! HELP!
    By LangerXXV in forum Excel General
    Replies: 0
    Last Post: 12-15-2011, 11:05 PM
  6. How to link complete sheet of an excel file?
    By mridulaparihar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-24-2011, 07:01 AM
  7. [SOLVED] Can I break an external link in Excel 97?
    By stadco in forum Excel General
    Replies: 1
    Last Post: 01-11-2005, 01: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