+ Reply to Thread
Results 1 to 3 of 3

Solution for looping of two data set

  1. #1
    Registered User
    Join Date
    08-14-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    63

    Question Solution for looping of two data set

    Dear all,

    I have two data sets as shown in sheet 1 (please refer to my file). In my original file, those tables placed in different sheet. What I want to do is to create a table as shown in the right most table.

    In order to do so, I have to do a loop which I cannot solve.

    For example, in order to find item A:


    My solution so far
    Area highlighted with light-green started as empty
    A row above the green-highlighted area have been filled (header) using syntax.

    I check every row in table 1 to find a match between those in column B with column J (in table 2) AND column C with column H (in table 2). The search row begin from row number 3
    If a match is found, then cell M1 will be filled with value from E1 and N2 from D1
    Since item A were delivered twice (partial delivery), a next search needs to be done to fill value in O1 & P1
    However, the next search will be started from row 4 instead of row 3.

    In in table 2, from row 8 to end must be checked

    How can I build the syntax??

    Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-14-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    63

    Smile Re: Solution for looping of two data set

    I have found the solution...

    Thanks for anyone who has read my thread...

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Solution for looping of two data set

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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