search a row for text

nayone69

New Member
Joined
Sep 11, 2009
Messages
6
Hi there,

what seems quite simple is giving me a headache>

What I an trying to do is with a formula search a row with multiple cells with various narrative to see if it contains the text 'fx' or 'FX' and just need yes no response
any pointers other than VBA

Alex
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi there,

what seems quite simple is giving me a headache>

What I an trying to do is with a formula search a row with multiple cells with various narrative to see if it contains the text 'fx' or 'FX' and just need yes no response
any pointers other than VBA

Alex

=LOOKUP(9.99999999999999E+307,SEARCH(E2,A2:A10),A2:A10)

would return the contents of the A-cell where E2 housing something like fx (case insensitive) occurs.
 
Upvote 0
thx for all the suggestions
=IF(ISNUMBER(MATCH("fx",A1:D1,0)),"Yes","No")

only works if the FX or FX is not within text in a cell

=FIND("fx",(CONCATENATE(A6,B6,C6,D6,E6,F6)))

does surprisingly well

and
=LOOKUP(9.99999999999999E+307,SEARCH(E2,A2:A10),A2:A10)
works but I have no idea how, very clever thx

Alex
 
Upvote 0
thx for all the suggestions
=IF(ISNUMBER(MATCH("fx",A1:D1,0)),"Yes","No")

only works if the FX or FX is not within text in a cell

Requires wild-carding. See Peter's follow up.

=FIND("fx",(CONCATENATE(A6,B6,C6,D6,E6,F6)))

does surprisingly well

Yes, but it's case sensitive in case that's relevant.

and
=LOOKUP(9.99999999999999E+307,SEARCH(E2,A2:A10),A2:A10)
works but I have no idea how, very clever thx

Alex

SEARCH and FIND behaves somewhat similar.

SEARCH returns an array of integers and/or #VALUE! errors. LOOKUP with the big number as look up value picks out the row number of the last integer and returns the value at that row number.

See post #7 in:

http://www.mrexcel.com/forum/showthread.php?t=310278

for an explanation of the mechanics.
 
Upvote 0
Hi there,

what seems quite simple is giving me a headache>

What I an trying to do is with a formula search a row with multiple cells with various narrative to see if it contains the text 'fx' or 'FX' and just need yes no response
any pointers other than VBA

Alex
Here's another one:

=IF(COUNTIF(A1:E1,"*FX*"),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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