"contains" keyword?

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,130
hey hi all,

can any pls tell what symbol we are using for "contains" keyword?

pls suggest :eek:
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Do you mean something like

Code:
If Range("A1").Value Like "*keyword*" Then
 

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,130
Hi Vog Sir,
actually i have formula below..
what i try..

if BA434 contains 125ab or 50ab or 5ab then only number comes to M4 i.e 125 or 50 or 5

or else if it 125abc or 50abc or 5abc then straightway 125abc or 50abc or 5abc.

=IF(BA4<>"",IF(BA4="%ab", LEFT(BA4,LEN(BA4)-3), BA4),"")

is my formula in correct direction?
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try

=IF(BA4="","",IF(RIGHT(BA4,2)="ab",LEFT(BA4,LEN(BA4)-2),BA4))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,335
Messages
5,595,573
Members
413,996
Latest member
mabelO

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
Top