Formula to identify text entry in numeric data

KayJay0618

New Member
Joined
Jul 20, 2016
Messages
40
I have looked and cannot find anything to help. End users will be copying data with several hundred to several thousand records from an external source (to which they cannot connect) into a template I've created to help them identify keying errors in the source. The product number (which must contain exactly 9 numeric digits) must not contain alpha characters. In some cases there is appropriately a leading zero. I need a formula that will identify when an alpha character or a special character exists in the product number column. I already have the formula to identify short and long product numbers. Below is a sample. I would need to identify that row 4 has an alpha character and that row 6 has a special character. Data validation doesn't do the trick for me.

ABCDEFGH
1IDCust NoCustLastCustFirstDAPAPSAProductNo
2AJ07797812294097992SmithWILLIAME76140136334
37675614147116JonesROCHELLE380E76146132497
44109274598452JacksonSue134E761460B4370
57822994598452JacksonSue134E76146131696
61893364444486AdamsPago120E7614-106687
7RM14020000564001248MatthewsAmancio134E76142006190
8RM14050001174001248MatthewsAmancio134E76142040328
94921584249567EverlyRobert134E76146108574

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col><col></colgroup>
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I would probably use conditional formatting for this but here is another option using a formula. Since the data will be constantly growing, I would make it into a table so that you do not have to create a dynamic range or keep changing the ranges in the formula.

Then, you can use a formula like this (dragged down as far as needed):


Excel 2010
ABCDEFGHIJ
1IDCust NoCustLastCustFirstDAPAPSAProductNoRow #'s to check
2AJ07797812294097992SmithWILLIAME761401363344
37675614147116JonesROCHELLE380E761461324976
44109274598452JacksonSue134E761460B4370
57822994598452JacksonSue134E76146131696
61893364444486AdamsPago120E7614-106687
7RM14020000564001248MatthewsAmancio134E76142006190
8RM14050001174001248MatthewsAmancio134E76142040328
94921584249567EverlyRobert134E76146108574
Sheet1
Cell Formulas
RangeFormula
J2{=IFERROR(SMALL(IF(ISNUMBER(Table1[ProductNo])=FALSE,ROW(Table1[ProductNo])),ROWS($A$1:$A1)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Amendment to the formula in post #3:

=IFERROR(SMALL(IF(ISNUMBER(Table1[ProductNo]+0)=FALSE,ROW(Table1[ProductNo])),ROWS($A$1:$A1)),"") Ctrl Shift Enter

or

=IFERROR(SMALL(IF(ISERROR(Table1[ProductNo]+0),ROW(Table1[ProductNo])),ROWS($A$1:$A1)),"") Ctrl Shift Enter
 
Last edited:
Upvote 0
63falcondude - how would you use conditional formatting? I would prefer that.

I would still format the data as a table. Then, select the "ProductNo" column (this would highlight H2:H9 in your example) > Conditional Formatting > New Rule > Use a formula

=ISERROR(H2+0)

Format: Fill color of your choice > OK
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

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