Need help- Find Function with Multiple criteria

Mallappa

New Member
Joined
Jul 20, 2012
Messages
15
Hi everyone,

I need your help for Find Function with Multiple criterias. Ex-

ADC XE AD ADKO R Ad Know Op
ADC XE AD ADKO X Ad Know
ADC XE AD ADKOAd Know
KNE XE KN ACDA

If this is my data in Column A, I need to find the names which contains " R " and " X " in 16th digit. I can do it using find formula twice but is there a way to do it in on shot..?

The formula I'm using is =FIND(" R ",A1,16) it gives me numbers like 16, 17, 19, 20 etc but I'm interested only in 16 digit so I just filter for 16 and copy the data to seperate tab.

Waiting for you ans​
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Re: Need help to Combine a formula

yes that is correct because they can't both be true. You can only have one of those, R or X, in the 16th placement
 
Upvote 0
Re: Need help to Combine a formula

yes that is correct because they can't both be true. You can only have one of those, R or X, in the 16th placement

Ya but I meant it even ignores if there is "R " in the 16th place. Wen "X " is not it should check for other condition which is not happening..!
 
Upvote 0
No, it is case sensitive.

As written the formula must find uppercase " R " or " X ".

Sheet1

AB

<COLGROUP><COL style="FONT-WEIGHT: bold; WIDTH: 30px"><COL style="WIDTH: 237px"><COL style="WIDTH: 72px"></COLGROUP><TBODY>
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: left"]ADC XE AD ADKO r Ad Know Op[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: left"]ADC XE AD ADKO R Ad Know Op[/TD]
[TD="align: right"]TRUE[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: left"]ADC XE AD ADKO x Ad Know[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: left"]ADC XE AD ADKO X Ad Know[/TD]
[TD="align: right"]TRUE[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: left"]ADC XE AD ADKOAd Know[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: left"]KNE XE KN ACDA[/TD]
[TD="align: right"]FALSE[/TD]

</TBODY>



This formula entered in B2 and copied down:

=OR(EXACT(MID(A2,15,3),{" R "," X "}))

If that's not what you want then we need to see more examples and tell us what results you expect.

[TABLE="width: 349"]
<TBODY>[TR]
[TD]Names</SPAN>[/TD]
[TD]Formula</SPAN>[/TD]
[/TR]
[TR]
[TD]AD AD ADKO I Acquired Content</SPAN>[/TD]
[TD]TRUE</SPAN>[/TD]
[/TR]
[TR]
[TD]SCS XE RE RE__ I Knowledge</SPAN>[/TD]
[TD]TRUE</SPAN>[/TD]
[/TR]
[TR]
[TD]SCS XE SC SECO I Knowledge</SPAN>[/TD]
[TD]TRUE</SPAN>[/TD]
[/TR]
[TR]
[TD]KNC XE IC CMIO I StrtIntCntPrj</SPAN>[/TD]
[TD]TRUE</SPAN>[/TD]
[/TR]
[TR]
[TD]SCM XE TH TECH I Knowledge</SPAN>[/TD]
[TD]TRUE</SPAN>[/TD]
[/TR]
[TR]
[TD]KNC XE KN DDOP I Digital Deply</SPAN>[/TD]
[TD]TRUE</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL></COLGROUP>[/TABLE]

I'm gettting result as True for these names as well. So I'm not getting how it works..!
 
Upvote 0
[TABLE="width: 349"]
<TBODY>[TR]
[TD]Names</SPAN>
[/TD]
[TD]Formula</SPAN>
[/TD]
[/TR]
[TR]
[TD]AD AD ADKO I Acquired Content</SPAN>
[/TD]
[TD]TRUE</SPAN>
[/TD]
[/TR]
[TR]
[TD]SCS XE RE RE__ I Knowledge</SPAN>
[/TD]
[TD]TRUE</SPAN>
[/TD]
[/TR]
[TR]
[TD]SCS XE SC SECO I Knowledge</SPAN>
[/TD]
[TD]TRUE</SPAN>
[/TD]
[/TR]
[TR]
[TD]KNC XE IC CMIO I StrtIntCntPrj</SPAN>
[/TD]
[TD]TRUE</SPAN>
[/TD]
[/TR]
[TR]
[TD]SCM XE TH TECH I Knowledge</SPAN>
[/TD]
[TD]TRUE</SPAN>
[/TD]
[/TR]
[TR]
[TD]KNC XE KN DDOP I Digital Deply</SPAN>
[/TD]
[TD]TRUE</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]

I'm gettting result as True for these names as well. So I'm not getting how it works..!
Here are the results I get:

Book1
AB
2AD AD ADKO I Acquired ContentFALSE
3SCS XE RE RE__ I KnowledgeFALSE
4SCS XE SC SECO I KnowledgeFALSE
5KNC XE IC CMIO I StrtIntCntPrjFALSE
6SCM XE TH TECH I KnowledgeFALSE
7KNC XE KN DDOP I Digital DeplyFALSE
8ADC XE AD ADKO R Ad Know OpTRUE
9ADC XE AD ADKO x Ad KnowFALSE
10ADC XE AD ADKO X Ad KnowTRUE
11ADC XE AD ADKOAd KnowFALSE
12KNE XE KN ACDAFALSE
Sheet1
 
Upvote 0
Here are the results I get:

Sheet1

*AB

<COLGROUP><COL style="FONT-WEIGHT: bold; WIDTH: 30px"><COL style="WIDTH: 223px"><COL style="WIDTH: 72px"></COLGROUP><TBODY>
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: left"]AD AD ADKO I Acquired Content[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: left"]SCS XE RE RE__ I Knowledge[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: left"]SCS XE SC SECO I Knowledge[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: left"]KNC XE IC CMIO I StrtIntCntPrj[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: left"]SCM XE TH TECH I Knowledge[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: left"]KNC XE KN DDOP I Digital Deply[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: left"]ADC XE AD ADKO R Ad Know Op[/TD]
[TD="align: right"]TRUE[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="align: left"]ADC XE AD ADKO x Ad Know[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: left"]ADC XE AD ADKO X Ad Know[/TD]
[TD="align: right"]TRUE[/TD]

[TD="bgcolor: #cacaca, align: center"]11[/TD]
[TD="align: left"]ADC XE AD ADKOAd Know[/TD]
[TD="align: right"]FALSE[/TD]

[TD="bgcolor: #cacaca, align: center"]12[/TD]
[TD="align: left"]KNE XE KN ACDA[/TD]
[TD="align: right"]FALSE[/TD]

</TBODY>

Hey it works great. I think earlier i would have messed up with formula. Thank you very very much. (But can we add one more condition to it like names wich contains SMR in it (any place) need to be determined. It would be great if that can be done as well. But even as if now it saves lot of time.

Thank you very much for you help.

This is the data for reference
ASL XE AT ASLRIFRSEUDevSMR
CFT XE CF FLXCFlexCompSMR

Thanks again..!
 
Upvote 0
Hey it works great. I think earlier i would have messed up with formula. Thank you very very much. (But can we add one more condition to it like names wich contains SMR in it (any place) need to be determined. It would be great if that can be done as well. But even as if now it saves lot of time.

Thank you very much for you help.

This is the data for reference
ASL XE AT ASLRIFRSEUDevSMR
CFT XE CF FLXCFlexCompSMR

Thanks again..!
Is that an additional condition or is it a separate condition?

Does the case matter? Find exactly uppercase "SMR" or will any case be OK?
 
Upvote 0
Is that an additional condition or is it a separate condition?

Does the case matter? Find exactly uppercase "SMR" or will any case be OK?

I need names which satisfies either of the conditions
1. 16th digit " X " or " R " (Wich is solved).
2. Or which contains SMR (Not case sensitive) in it.

U can say its just an additional condition. But I need it in just one formula as if either of the one condition satisfies I need result as true or something which can differentiante between true and false.
 
Upvote 0
I need names which satisfies either of the conditions
1. 16th digit " X " or " R " (Wich is solved).
2. Or which contains SMR (Not case sensitive) in it.

U can say its just an additional condition. But I need it in just one formula as if either of the one condition satisfies I need result as true or something which can differentiante between true and false.
Try this...

Book1
AB
2AD AD ADKO I Acquired ContentFALSE
3SCS XE RE RE__ I KnowledgeFALSE
4SCS XE SC SECO I KnowledgeFALSE
5KNC XE IC CMIO I StrtIntCntPrjFALSE
6SCM XE TH TECH I KnowledgeFALSE
7KNC XE KN DDOP I Digital DeplyFALSE
8ADC XE AD ADKO R Ad Know OpTRUE
9ADC XE AD ADKO x Ad KnowFALSE
10ADC XE AD ADKO X Ad KnowTRUE
11ADC XE AD ADKOAd KnowFALSE
12KNE XE KN ACDAFALSE
13ASL XE AT ASLRIFRSEUDevSMRTRUE
14CFT XE CF FLXCFlexsmrCompTRUE
Sheet1

This formula entered in B2 and copied down:

=OR(EXACT(MID(A2,15,3),{" R "," X "}),COUNT(SEARCH("SMR",A2)))
 
Upvote 0

Forum statistics

Threads
1,225,487
Messages
6,185,270
Members
453,285
Latest member
Wullay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top