+ Reply to Thread
Results 1 to 5 of 5

Need to identify if values are formatted as tax EIN ##-#######, SSN ###-##-####or not

  1. #1
    Registered User
    Join Date
    02-14-2012
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    18

    Need to identify if values are formatted as tax EIN ##-#######, SSN ###-##-####or not

    I would like to find a formula to idendity whether a value is formatted as an EIN ##-#######, a SSN ###-##-#### or if it is neither and needs to be corrected. The formula will go in column D. I have tried TEXT, IFs WITH ISNUMBERs and ISBLANKS, I just can not seem to get the result I am after.

    Idendtify TID.xlsx

    Thanks In Advance,
    Chris
    Last edited by chrisboughter; 02-21-2012 at 06:12 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Need to dentify if values are formatted as tax EIN ##-#######, SSN ###-##-#### or

    Try this UDF:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Need to dentify if values are formatted as tax EIN ##-#######, SSN ###-##-#### or

    Or
    if you prefer formula instead VBA code.

    Here the file

    Cheers
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-14-2012
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Need to dentify if values are formatted as tax EIN ##-#######, SSN ###-##-#### or

    Thank you so much. The formula I tried seemed so convoluted and I was in a hurry when I originally posted this. I will try both VBA and the formula and attempt to understand both. Thanks again, this is resolved

  5. #5
    Registered User
    Join Date
    02-14-2012
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Need to dentify if values are formatted as tax EIN ##-#######, SSN ###-##-#### or

    This combination of formulas did not work when the EIN, for instance, exceeded 9 digits
    e.g. the result for 12-34567891 was EIN but this has 10 digits, 11 including the dash

    Or the EIN had 9 digits but the dash was in the wrong place
    e.g. the result for 123-456789 was EIN but the dash is in the wrong place

    The VBA works perfectly, though, and seems to be the way to go.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1