• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Match multiple criteria

Thomas Kuriakose

Active Member
Respect ed Sirs,

We have a worksheet with three columns of data to be matched with each other based on conditions and give result "okay" and "not okay and no data.

Kindly find attached the file for your kind reference.

1. If any cells in S1,S2, S3 is blank and two cells have the same value - Result - Okay, else not okay.
2. If the values in S1,S2,S3 are numbers then all cells should be same value, then okay, else not okay.
3. If there is no data in S1,S2,S3, then - Result - "No Data"

I tried OR and IF, but could not succeed.

I was reading on using COUNTIF for multiple criteria match, but could not understand.

Thank you very much for your support.

with regards,
thomas
 

Attachments

  • Match Multiple Criteria.xlsx
    9.6 KB · Views: 2
Hi Thomas,
Good Day...

See if this works:

=IF(COUNTBLANK(B2:D2)>2,"No Data",IF(AND(OR(B2="",C2="",D2=""),OR(B2=C2,D2=C2,D2=B2)),"Okay",IF(OR(ISTEXT(B2),ISTEXT(C2),ISTEXT(D2)),"Okay","Not Okay")))

Regards,
 
Or...........

upload_2017-7-4_0-43-50.png

In E2, formula copy down :

=IF(COUNTA(B2:D2),IF(((COUNT(B2:D2)=2)+(COUNTIF(B2:D2,"*")>0))*OR(B2=C2,C2=D2,B2=D2),"Okay","Not Okay"),"No Data")

Regards
Bosco
 

Attachments

  • Match Multiple Criteria.xlsx
    10.2 KB · Views: 3
Last edited:
Respected Sirs,

Amazing and brilliant. Thank you both for providing this solution.

Much appreciated,

Thanks once again,

with regards,
thomas
 
Respected Sirs,

On small check. The condition if S1,S2 and S3 with numbers having the same value, should give okay, but it is giving not okay.

Kindly check the attached.

Thank you very much once again,

with regards,
thomas
 

Attachments

  • Match Multiple Criteria.xlsx
    11 KB · Views: 3
Respected Sirs,

On small check. The condition if S1,S2 and S3 with numbers having the same value, should give okay, but it is giving not okay.

Kindly check the attached.

Thank you very much once again,

with regards,
thomas
Make revised (red portion) in here :

=IF(COUNTA(B2:D2),IF(((AGGREGATE(14,6,COUNTIF(B2:D2,B2:D2),1)=3)+(COUNT(B2:D2)=2)+(COUNTIF(B2:D2,"*")>0))*OR(B2=C2,C2=D2,B2=D2),"Okay","Not Okay"),"No Data")

Regards
Bosco
 
Last edited:
Respected Sir,

Sir, now if we change the value in one cell B2 to a different value, we are not getting not okay, but it remains okay.

If the values in cells are numbers:

1. If all the values are the same we should get okay.
2. If one or more values change then it should be not okay


Kindly check the attached,

with regards,
thomas
 

Attachments

  • Match Multiple Criteria.xlsx
    11 KB · Views: 3
Respected Sir,

Sir, now if we change the value in one cell B2 to a different value, we are not getting not okay, but it remains okay.

If the values in cells are numbers:

1. If all the values are the same we should get okay.
2. If one or more values change then it should be not okay


Kindly check the attached,

with regards,
thomas
See revised file

Regards
Bosco
 

Attachments

  • Match Multiple Criteria(1).xlsx
    10.4 KB · Views: 6
Back
Top