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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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