If Formula

Atraviss

New Member
Joined
Jul 28, 2002
Messages
16
I want to enter an IF formula where the logical test is : CellA1 contains 17, where the cell contents may be 12abcd or 17abcd etc. Is this possible or should I use another formula?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Ian Mac

MrExcel MVP
Joined
Feb 20, 2002
Messages
1,174
Hello,

Welcome to the board,

You can use COUNTIF()

as follows:
Book1
ABCD
1TestDataResult
217abcdYES
317bcdeYES
41abcd7NO
58uNO
6ab17cdYES
Sheet1


If you only need to test if 7 is at the begining of the test data then just use "17*".

Hope this helps
 

Forum statistics

Threads
1,181,539
Messages
5,930,495
Members
436,741
Latest member
buckeyerich

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