help with a forumla

supermax77

New Member
Joined
Jun 26, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi
i have three COLUMNS of data and i want to search each ROW to get a yes/no as to whether or not a list of five items are in ANY of the 3 columns for each ROW.

thanks

Max
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
1723671694854.png
 
Upvote 0
=--(COUNT(MATCH($I$2:$I$6,B2:D2,0))>0)

Copy down.
Book1
ABCDEFGHI
1IDPrim DXAD1AD2MH Dx Match
2xxF43.0R45.811F1*
3xxF43.1F19.11F2*
4XXF25.01F3*
50F4*
6xxJ96.00F5*
7
Sheet1
Cell Formulas
RangeFormula
E2:E6E2=--(COUNT(MATCH($I$2:$I$6,B2:D2,0))>0)
 
Upvote 0
thank you. but when i enter this i only get Zeros and, blanks and > but these are not accurate

i wonder if my look up values aren't formatted correctly, I have said F1* because i want the formula to include any value with an F1 in it - as a match..

is this what is causing the issue?
I cant work out how to upload my spreadsheet
 
Upvote 0
Hello, could you please test this:

Excel Formula:
=BYROW(B2:D28,LAMBDA(a,IF(SUM(--(ISTEXT(XLOOKUP(I2:I6,a,a,,2))))>0,1,0)))
 
Upvote 0
thank you. but when i enter this i only get Zeros and, blanks and > but these are not accurate

i wonder if my look up values aren't formatted correctly, I have said F1* because i want the formula to include any value with an F1 in it - as a match..

is this what is causing the issue?
I cant work out how to upload my spreadsheet
I interpreted that as starting with F1, F2 etc. Can it appear in the middle of the string? If you look at my sample, if you mean it starts at the beginning of the string that my formula does that.
1 if any of those values appear in the row, 0 if it doesn't
 
Upvote 0
If the F1, F2,... can appear anywhere in the text:

Book1
ABCDEFGHI
1IDPrim DXAD1AD2MH Dx Match
2xxF43.0R45.81F11F1
3xxF43.1F19.11F2
4XXF25.0F11F3
50F4
6xxJ96.0F810F5
Sheet9
Cell Formulas
RangeFormula
E2:E6E2=(COUNT(MATCH("*"&$I$2:$I$6&"*", B2:D2,0))>0)*1
 
Upvote 1

Forum statistics

Threads
1,221,504
Messages
6,160,199
Members
451,630
Latest member
zxhathust

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