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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

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,143,919
Messages
5,721,536
Members
422,369
Latest member
redinator

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