+ Reply to Thread
Results 1 to 9 of 9

Autofill VLOOKUP function

  1. #1
    Registered User
    Join Date
    09-26-2010
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Smile Autofill VLOOKUP function

    I've got a workbook that tracks the weekly performance of my team members in each category they are scored on. Every week I add a new worksheet with their performance data. The first worksheet, entitled aggregate needs to compile the data from each consecutive worksheet (week 09, week 10, week 11, etc...)

    The function needs to be VLOOKUP because team members can change from week to week, so a progressive cell value formula would be no good. The first cell in the aggregate worksheet uses the following formula:

    Please Login or Register  to view this content.


    each consecutive cell from left to right needs to go like this
    Please Login or Register  to view this content.


    and going from top to bottom
    Please Login or Register  to view this content.


    so the formulas in each cell in a 3x3 grid would appear as follows
    Please Login or Register  to view this content.


    however, Excel autofill makes them go like this
    Please Login or Register  to view this content.


    There are 6 sections on the aggregate worksheet that need the same thing, with an average of 20 team members and 52 weeks, that means if I have to fill each cell individually with its formula, I'd have to fill 6240 cells. How can I get excel to autofill each cell with the formula that I want?

    I've attached a copy of my workbook (I've changed my team members names to user1, user2, etc...) in case it helps.
    Attached Files Attached Files
    Last edited by gutter_mutt; 10-01-2010 at 07:01 AM.

  2. #2
    Forum Contributor
    Join Date
    12-26-2008
    Location
    India
    MS-Off Ver
    2007
    Posts
    122

    Re: Autofill VLOOKUP function

    =VLOOKUP(A2,'Week 09'!A$1:I$24,2,FALSE)
    =VLOOKUP(A3,'Week 09'!A$1:I$24,2,FALSE)
    =VLOOKUP(A4,'Week 09'!A$1:I$24,2,FALSE)

    Change this accordingly and drag. Hope it helps!!

  3. #3
    Registered User
    Join Date
    09-26-2010
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Autofill VLOOKUP function

    I tried it, it changes the right value in the formula, but instead of returning the correct cell values, it's simply copying the value of the cell I'm dragging and pasting it into each cell I drag it into.

  4. #4
    Forum Contributor
    Join Date
    12-26-2008
    Location
    India
    MS-Off Ver
    2007
    Posts
    122

    Re: Autofill VLOOKUP function

    You shouldn't drag it to right in your case, just place them in individual column and drag it vertically
    B2=VLOOKUP(A2,'Week 09'!A$1:I$24,2,FALSE)
    C2=VLOOKUP(A2,'Week 10'!A$1:I$24,2,FALSE)
    D2=VLOOKUP(A2,'Week 11'!A$1:I$24,2,FALSE)

  5. #5
    Registered User
    Join Date
    09-26-2010
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Autofill VLOOKUP function

    That's what I did, although the formula in the cell is changing correctly, it's copying cell values. Using my attached workbook, if I put =VLOOKUP(A2,'Week 09'!A$1:I$24,2,FALSE) in cell B2 and then drag it to cell B23, the formula in each cell will appear correct, but the cell value 0:00:00 appears in each cell. If I drag from B3, then 0:00:19 appears in each cell
    Last edited by gutter_mutt; 09-26-2010 at 04:39 PM.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Autofill VLOOKUP function

    try
    =VLOOKUP($A2,INDIRECT("'week"&TEXT(COLUMN(I1),"00")&"'!a1:i24"),2,FALSE)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    09-26-2010
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Autofill VLOOKUP function

    exactly how it is? or am I supposed to change something? I copy and pasted exactly that formula and it just displayed the formula as the cell value

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Autofill VLOOKUP function

    type it in, its either pasting as text/the cell is formulated as text/or calculation is set to manual.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-26-2010
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Autofill VLOOKUP function

    Thanks for all the help, Vinodsralian's solution ended up working, for some reason auto calculate and manual calculate don't work with this formula, after I have pasted the new weeks values I have to highlight the relevant section in the aggregate sheet and click on calculate in the lower left, then the rest auto calculate for the week.

    I really appreciate both of you taking the time to help on this one, it has brought up a new challenge, I will try to tackle by myself, but I may come back and make a new post if I can't figure it out!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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