+ Reply to Thread
Results 1 to 25 of 25

Matching Data with Specified Criteria

Hybrid View

crapmind Matching Data with Specified... 06-30-2007, 04:11 PM
T-J A For Each Next loop, the... 07-01-2007, 07:24 AM
crapmind Hey, i tried all this.. i m ... 07-01-2007, 02:41 PM
crapmind Hi, Can any one provide help... 07-11-2007, 01:52 AM
rylo Hi Can you create an... 07-11-2007, 01:58 AM
  1. #1
    Registered User
    Join Date
    06-13-2007
    Posts
    58

    Exclamation Matching Data with Specified Criteria

    I need to match data with specific criteria. Details of the problem are as follows:

    I have 2 sheets: "Main" and "Sub"

    In "Main" there are 3 Important Columns: Col "C", "I" and "AF"
    In "Sub" there are 2 Important Columns: Col "I' and "N".

    Value in column "C" of "Main" is same as value in column "I" of "Sub", but not in same order.

    Now the specific criteria:

    If value in Column "I" of "Main" is not equal to "Zero", then the macro should pick up the value from the corresponding column "C" of "Main" and search for the same in column "I" of "Sub". After matching the same, it should find corresponding value in column "N" of "Sub". Then the macro should pick up the value from column "N" of "Sub" and put the value in the column "AF" of "Main".

    This is basic requirement.

    I am unable to retrieve the right value for the same.

    Fine tuining will be:

    If the value in column "N" of "Sub" is "Fully Automated" then it should only write "Automated" in column "AF" of "Main". And If the value is "Manual + ...." then it should write "Manual" in column "AF" of "Main".


    Can this be done??

    Please help.


    Thanks in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388
    A For Each Next loop, the Find method, the Range object, the Offset property and If Then Else statement are the basics of what you need; there are some examples of each in VBA help.

  3. #3
    Registered User
    Join Date
    06-13-2007
    Posts
    58
    Hey, i tried all this.. i m not getting the desired result.. otherwise why should i write in this forum??

  4. #4
    Registered User
    Join Date
    06-13-2007
    Posts
    58
    Hi, Can any one provide help on this?? i m really stuck on this

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Can you create an example file showing your structure, some sample data, the expected output for some examples of your sample data and any code you have currently put together to date.

    From what I can see, the response from T-J covered the basics of what you would need to make this work...


    rylo

  6. #6
    Registered User
    Join Date
    06-13-2007
    Posts
    58
    I will surely post some data and code for your info very shortly.

    Yes TYJ has given all the basic info. but the problem is i am unable to find desired result.

    I will attach a file very shortly in this forum.

+ 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