+ Reply to Thread
Results 1 to 4 of 4

Autofill cell reference

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    2

    Autofill cell reference

    what formula I can use to autofill the cells with data from different sheets. I have included a base formula in cell B2.

    Attached is a sample data.

    I appreciate any help
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Autofill cell reference

    hi dj.mics, your VLOOKUP is currently looking for an approximate match because you did not put a TRUE/FALSE or 1/0. i'm assuming you need to look for an exact match so here goes. try this in cell B2 & copy it across & downwards:
    =VLOOKUP($A2,INDIRECT("'"&B$1&"'"&"!"&"A2:E11"),5,0)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    06-22-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Autofill cell reference

    im sorry for the confusion.. lets assume that i already have that in the formula..

    =VLOOKUP($A2,'Day 1'!$A$2:$E$11,5,TRUE)

    I want to know what can i do about the formula so that when i drag it sideways it will fill the following:

    B2 = VLOOKUP($A2,'Day 1'!$A$2:$E$11,5,TRUE)
    C2 = VLOOKUP($A2,'Day 2'!$A$2:$E$11,5,TRUE)
    D2 = VLOOKUP($A2,'Day 3'!$A$2:$E$11,5,TRUE)
    E2 = VLOOKUP($A2,'Day 4'!$A$2:$E$11,5,TRUE)
    F2 = VLOOKUP($A2,'Day 5'!$A$2:$E$11,5,TRUE)

    Technically, only need the sheet name/number to change when dragging the formula..

    Any advise?

    thanks you very much for any help...
    Last edited by dj.mics; 08-11-2012 at 10:00 PM.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Autofill cell reference

    forgot to tell you that your B2 has a space behind. Type "Day 1" without the quotes instead of "Day 1 ". My formula i given still will work. it is looking inside your cells B1:F1 & take the worksheet name.

    and it's supposed to be FALSE/0, not TRUE.
    FALSE/0 - Exact match
    TRUE/1 - Approximate Match

    i attached the eg in case you dont get it
    Attached Files Attached Files

+ 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