+ Reply to Thread
Results 1 to 16 of 16

Custom number format with text

Hybrid View

  1. #1
    Forum Contributor TechRetard's Avatar
    Join Date
    06-14-2009
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Custom number format with text

    newb formula of the day

    say you are inputing into cell b1...use data validation, custom formula

    =AND(LEN(B1)=10,CODE(LEFT(B1))>=65,CODE(LEFT(B1,1))>=65,CODE(LEFT(B1,2))>=65,CODE(MID(B1,4,1))=45,CODE(LEFT(B1,4))<=90,CODE(LEFT(B1,5))<=90,CODE(LEFT(B1,6))<=90,CODE(LEFT(B1,7))<=90,CODE(LEFT(B1,8))<=90,CODE(LEFT(B1,9))<=90,CODE(LEFT(B1,10))<=90)
    drag down
    Last edited by TechRetard; 01-14-2011 at 08:50 PM.

  2. #2
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Custom number format with text

    A modification to the above formula

    F8:
    =AND(ISNUMBER(VALUE(RIGHT(F8,6))),LEN(F8)=10,CODE(MID(F8,4,1))=45,CODE(LEFT(F8,1))>=65,CODE(LEFT(F8,1))<=90,CODE(MID(F8,2,1))>=65,CODE(MID(F8,2,1))<=90,CODE(MID(F8,3,1))>=65,CODE(MID(F8,3,1))<=90,CODE(MID(F8,9,1))<>69)
    Copy + Past special to copy

    Regards

  3. #3
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    213

    Re: Custom number format with text

    I tried the suggestion in the B1 cell, and also the suggestion in the F8 cell. I copied the formula into the custom validation window, but both formulas bring up a dialog box that says this will result in an error.
    I am not sure what I am doing wrong.
    Thank you for the suggestions.

+ 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