+ Reply to Thread
Results 1 to 3 of 3

Index / Match / Vlookup Loop across 3 sheets

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-04-2006
    Posts
    151

    Index / Match / Vlookup Loop across 3 sheets

    I've got quite a challenge on my hands and it is above my comprehension of VBA at this time.

    What I am looking to do is...

    Match the dates in row 1 of Sheet 1, 2, or 3 with the dates listed in row 1 of sheet 4

    Once the date match is found, it would then match with the label in COLUMN A of sheet 1, 2, or 3, with the column in sheet 4 with the associated date and input the appropriate numerical figure from Sheet 4 onto sheet 1, 2, or 3.

    Kind of like a Vlookup on steroids, constantly looping for each date..

    Any takers?

    Please see attached.

    Questions are welcomed.

    Many thanks for your time and effort
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Index / Match / Vlookup Loop across 3 sheets

    Assuming it's your intention to add more and more months to your file i would suggest the following (based on your existing setup and desired results):

    a) rename each sheet in mmmyy format, ie:

    Sheet1: Jun09
    Sheet2: Jul09
    Sheet3: Aug09

    b) set Sheet4 up such that:

    B1: =TEXT(A1,"mmmyyy")
    apply to F1, J1 etc...

    Formula in D1 thus becomes:

    D1: =INDEX(INDIRECT("'"&B$1&"'!A1:AH31"),MATCH(IF($B2="",$B1,$B2),INDIRECT("'"&B$1&"'!A1:A31"),0)+($B2=""),MATCH(DAY(A$1),INDIRECT("'"&B$1&"'!A2:AH2"),0))
    copy down as required
    NOTE: INDIRECT is Volatile and given the volume with which they will be used in this instance performance of your file may well slow - for more info. on Volatile functions see please the link in my sig to Charles Williams' site.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Index / Match / Vlookup Loop across 3 sheets

    Your post does not comply with Rule 5 of our Forum RULES. We have Seven question forums: Miscellaneous, General, Programming, Worksheet Functions, Charting, Excel 2007 Help and New Users. Please choose the appropriate forum, and post your question in ONLY one forum.


    Moved to Functions Forum
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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