mahmed1
Well-known Member
- Joined
- Mar 28, 2009
- Messages
- 2,302
- Office Version
- 365
- 2016
- Platform
- Windows
I know with countif you can have a fuzzy lookup i.e
=COUNTIF($A$1:$A$6,"*"&F1&"*") = 3
F1 = Harry
A1:A6
HARRY
JAMES
BEN AND HARRY
BEN
MARK AND HARRY
MARK
Is there a way i could add an OR criteria for the criteria range in Countif
i.e =COUNTIF($A$1:$A$6,OR("*"&F1&"*","*"&F2&"*") )
Another quick question
How can i look at the range A1:A6 and have it equal to a fuzzy lookup and then give me that row number where it matches?
e.g
A1:A6
HARRY
JAMES
BEN AND HARRY
BEN
MARK AND HARRY
ME AND JAMES
F1 = HARRY
LOOK THROUGH THE RANGE A1:A6, AND TELL ME THE ROW NUMBERS WHERE I HAVE HARRY IN THERE, IN MY CASE 1,3 AND 5 (i can then use the small function and rows and index to give the data the data in order
HARRY
BEN AND HARRY
MARK AND HARRY
IF POSSIBLE CAN I HAVE 2 CRITERIAS SUCH AS
LOOK THROUGH THE RANGE A1:A6, AND TELL ME THE ROW NUMBERS WHERE I HAVE JAMES AND BEN
IN MY CASE 2, 3, 4 AND 6
JAMES
BEN AND HARRY
BEN
ME AND JAMES
=COUNTIF($A$1:$A$6,"*"&F1&"*") = 3
F1 = Harry
A1:A6
HARRY
JAMES
BEN AND HARRY
BEN
MARK AND HARRY
MARK
Is there a way i could add an OR criteria for the criteria range in Countif
i.e =COUNTIF($A$1:$A$6,OR("*"&F1&"*","*"&F2&"*") )
Another quick question
How can i look at the range A1:A6 and have it equal to a fuzzy lookup and then give me that row number where it matches?
e.g
A1:A6
HARRY
JAMES
BEN AND HARRY
BEN
MARK AND HARRY
ME AND JAMES
F1 = HARRY
LOOK THROUGH THE RANGE A1:A6, AND TELL ME THE ROW NUMBERS WHERE I HAVE HARRY IN THERE, IN MY CASE 1,3 AND 5 (i can then use the small function and rows and index to give the data the data in order
HARRY
BEN AND HARRY
MARK AND HARRY
IF POSSIBLE CAN I HAVE 2 CRITERIAS SUCH AS
LOOK THROUGH THE RANGE A1:A6, AND TELL ME THE ROW NUMBERS WHERE I HAVE JAMES AND BEN
IN MY CASE 2, 3, 4 AND 6
JAMES
BEN AND HARRY
BEN
ME AND JAMES