IF formula

luisitocarrion1900

Board Regular
Joined
Oct 30, 2017
Messages
194
Office Version
  1. 365
Platform
  1. Windows
I need formula to paste in column C that if Column B the number is not in this format BE0573C will return a false, for example if it don't start if two letters follow by 4 numbers and ending with a letter it should return a false
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Will it only ever be letters or numbers? Below will fail if a special character is in a text spot for instance.

=IF(AND(COUNT(FIND({0,1,2,3,4,5,6,7,8,9},LEFT(B2,2)))=0,COUNT(FIND({0,1,2,3,4,5,6,7,8,9},MID(B2,3,4)))=4,COUNT(FIND({0,1,2,3,4,5,6,7,8,9},RIGHT(B2,1)))=0,LEN(B2)=7),"",FALSE)
 
Upvote 0

Forum statistics

Threads
1,215,014
Messages
6,122,697
Members
449,092
Latest member
snoom82

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