Hi StephenM, =isnumber(left(a1,1))=isnumber(right(a1,1)) That will return TRUE if the first and last character are the same type (numeric or non-numeric).
It will return FALSE if they are different types. Asa -----Original Message----- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of StephenM Sent: Friday, December 16, 2011 9:58 AM To: MS EXCEL AND VBA MACROS Subject: $$Excel-Macros$$ Compare character types in 2 character string I have extracted 2 characters from a longer string. I need to determine if both characters are the same type (both alphabetic, or both numeric), else if they are a different character types. The order of character types does not matter, just if they are both the same type. Please correct my terms if they are wrong. The data looks like this. I would expect a function to tell me that the values ZJ and 85 are the same type, and to tell me the values Q3 and R1 are different types. Is this possible? ZJ 85 Q3 R1 -- FORUM RULES (934+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ---------------------------------------------------------------------------- -------------------------- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (934+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com