Closed Thread
Results 1 to 4 of 4

Comparing data between 2 worksheets, mark them as "yes' or "no" based on several condition

  1. #1
    Forum Contributor
    Join Date
    07-04-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2007
    Posts
    105

    Comparing data between 2 worksheets, mark them as "yes' or "no" based on several condition

    Hello guys.

    here i got two worksheets. By comparing data between those two worksheets , i want to solve logic function and mark the result with "yes" or "No" along column H (sheet1 -" ). The "yes'" result can be obtained through multiple cases (OR). But in every cases, it must fulfill both condition A and condition B (AND).


    So for the example, let say we plug in the formula in H18 :

    case1
    if column D18 (sheet1) = "Xtpaint" or " paint" or "whtpaint" ,
    condition A - A10(sheet1) = A:A (sheet2)
    condition B - Let say A18(sheet1) above is equal to A250(sheet2) ,then if B250 = "WDS"
    Result - H18="Yes"


    case2
    if column D18 (Sheet1) = "qc"
    condition A - A10(sheet1) = A:A (sheet2)
    condition B - Let say A18(sheet1) is equal to A100(sheet2) ,then if B100 = "coating"
    Result - H18= "Yes"


    case3
    if column D18 (Sheet1) = "W/H"
    condition A - A10(sheet1) = A:A (sheet2)
    condition B - Let say A18(sheet1) is equal to A333(sheet2) ,then if B333 = "Airsheet"
    Result - H18= "Yes"

    I call sheet1 as "checklist2" and "sheet2 as "submitted"

    One guy has gave me this code. it fulfill all the condition at first, and i did a litle modification to suit my needs.


    Please Login or Register  to view this content.





    It works perfectly until i just found several data has failed above logic condition. You may refer my attachment. I have marked those data that i men, with redhighlight, both in sheet1 and sheet2 just to indicate this code unable to identify them.


    defining error.xlsm

    I have checked the code for many times, but could not find the error. Really appreaciate if u guys can take a look and detect the error for me.Thanks in advance.
    Last edited by arlu1201; 08-27-2012 at 06:45 AM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Comparing data between 2 worksheets, mark them as "yes' or "no" based on several condi

    Is this not the same problem as here: http://www.excelforum.com/excel-gene...onditions.html

  3. #3
    Forum Contributor
    Join Date
    07-04-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Comparing data between 2 worksheets, mark them as "yes' or "no" based on several condi

    yup..but i'm doing after some modifications i just found some loopholes, make this thing doesnt work 100% effective anymore like i need...

    you may refer to my attachment, more simplified version..
    Attached Files Attached Files

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Comparing data between 2 worksheets, mark them as "yes' or "no" based on several condi

    It seems that your other (original) thread is still receiving help regarding the modifications.

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed 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