Identify incorrect format

darkhangelsk

New Member
Joined
Feb 10, 2013
Messages
27
Hi,

I would like to ask if there's a fastest way to identify incorrect format? like in column A there's a hundreds - thousands of data and i have to make sure they have correct format.
Correct format would be:
TICKET-12345 - (any text here)

So basically i need to identify the incorrect ones. Some are like this - > "TICKET_12344 text" or TICKET-12244 text
for these kind of format i need to highlight it.

Identifying it manually making me sick and eat lot of time. But if someone can help correct direction, that would be great.

Thanks!
 
Fluff, I'm curious about the implementation of the first MID function...would MID(A2,8,5) be strictly correct rather than MID(A2,8,6)? I realize it doesn't matter in this case since the correct format should have a space at position 13, and the 2nd implementation of MID checks for that space.
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Glad we could help & thanks for the feedback
 
Upvote 0
@KRice
In this case you could use both. When I was setting it up I did it in stages & included the extra character (ie 6 rather than 5 in the Mid) to check that it wasn't a - (ie missing the space after the number). Although that is redundant as the last part then checks for a " - "
 
Upvote 0
Nice solution...thanks for the explanation.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
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