+ Reply to Thread
Results 1 to 4 of 4

Scroll down a Complex Formula

  1. #1
    Registered User
    Join Date
    03-25-2014
    Location
    Québec
    MS-Off Ver
    Excel 2016
    Posts
    19

    Scroll down a Complex Formula

    So I have this formula below where the data comes from Classeur1.XLSX and the result is outputted into PlayerStats.XLSX. To make it clear I log daily stats of a Hockey Team, everytime they play I import a table from a websibe where the log of the game become availaible in Classeur1.XLSXl. The first Match function refer to a name, in this case it's "Alexander Radulov", the second match refer to a statistic, in this case it's the game time that this player played.

    =INDEX([Classeur1.xlsx]Feuil2!$A$8:$O$25;MATCH("Alexander Radulov";[Classeur1.xlsx]Feuil2!$A$8:$A$25);MATCH([Classeur1.xlsx]Feuil2!$M$6;[Classeur1.xlsx]Feuil2!$A$6:$O$6))


    For the day one I would import the table from the website in Feuil1! =INDEX([Classeur1.xlsx]Feuil1!$A$8:$O$25;MATCH("Alexander Radulov";[Classeur1.xlsx]Feuil1!$A$8:$A$25);MATCH([Classeur1.xlsx]Feuil1!$M$6;[Classeur1.xlsx]Feuil1!$A$6:$O$6))

    For the day two the table would go to Feuil2! =INDEX([Classeur1.xlsx]Feuil2!$A$8:$O$25;MATCH("Alexander Radulov";[Classeur1.xlsx]Feuil2!$A$8:$A$25);MATCH([Classeur1.xlsx]Feuil2!$M$6;[Classeur1.xlsx]Feuil2!$A$6:$O$6))

    Day 3 to Feuil3! =INDEX([Classeur1.xlsx]Feuil3!$A$8:$O$25;MATCH("Alexander Radulov";[Classeur1.xlsx]Feuil3!$A$8:$A$25);MATCH([Classeur1.xlsx]Feuil3!$M$6;[Classeur1.xlsx]Feuil3!$A$6:$O$6))
    ...
    ...

    Day 82 to Feuil82! =INDEX([Classeur1.xlsx]Feuil82!$A$8:$O$25;MATCH("Alexander Radulov";[Classeur1.xlsx]Feuil82!$A$8:$A$25);MATCH([Classeur1.xlsx]Feuil82!$M$6;[Classeur1.xlsx]Feuil82!$A$6:$O$6))


    What I need is as I scroll down this formula I need the sheet name to count and change, Sheet1!(Feuil1),Sheet2!(Feuil2)...,etc.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Scroll down a Complex Formula

    Your formula implies that the file Classeur1.xlsx is open at the same time as the file containing the formula. If that is the case, then you can use INDIRECT to do this - try the following:

    =INDEX(INDIRECT("'[Classeur1.xlsx]Feuil"&ROWS($1:1)&"'!$A$8:$O$25");MATCH("Alexander Radulov";INDIRECT("'[Classeur1.xlsx]Feuil"&ROWS($1:1)&"'!$A$8:$A$25"));MATCH(INDIRECT("'[Classeur1.xlsx]Feuil"&ROWS($1:1)&"'!$M$6");INDIRECT("'[Classeur1.xlsx]Feuil"&ROWS($1:1)&"'!$A$6:$O$6")))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-25-2014
    Location
    Québec
    MS-Off Ver
    Excel 2016
    Posts
    19

    Re: Scroll down a Complex Formula

    Exactly what I need thank you very much

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Scroll down a Complex Formula

    Glad to hear it (though you don't need to shout it quite so loud !!)

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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: 7
    Last Post: 12-18-2017, 09:29 PM
  2. [SOLVED] Insert scroll bar and update cells when clicking on item in scroll bar window
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-10-2014, 03:53 PM
  3. Create Scroll Bar to Scroll through Year of Dates
    By mdunkling in forum Excel General
    Replies: 3
    Last Post: 02-27-2014, 09:30 AM
  4. Scroll bar (Form Control) - Resetting the scroll bar to particular values
    By Vishb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2011, 04:10 AM
  5. Scroll horizontaly with mouse, create same system used to scroll .
    By frederic in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-09-2005, 04: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