search for a number format
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: search for a number format

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Seattle Area, WA
    Posts
    212
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I need to search for a specfic number format, and ignore everything else.

    I am looking for a Text format the is 3 numbers, a dash, followed by 8 numbers. (###-########). I know how to write a macro to search for a specific string, but not for a format.

    Any Suggestions??

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Denver, CO
    Posts
    1,743
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default



    nevermind, back to drawing board.




    the following formula should work (either in a cell for sorting or conditional formatting)
    =AND(ISNUMBER(SUBSTITUTE(A1,"-","",1)+0),LEN(SUBSTITUTE(A1,"-","",1)=11),LEN(A1)<>11)

    good luck

    [ This Message was edited by: IML on 2002-04-05 08:36 ]

  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Denver, CO
    Posts
    1,743
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Maybe
    =AND(LEFT(A1,3)&"-"&RIGHT(A1,8)=A1,LEN(A1)=12,ISNUMBER(SUBSTITUTE(A1,"-","",1)+0))

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    On 2002-04-05 08:24, ermccarthy wrote:
    I need to search for a specfic number format, and ignore everything else.

    I am looking for a Text format the is 3 numbers, a dash, followed by 8 numbers. (###-########). I know how to write a macro to search for a specific string, but not for a format.

    Any Suggestions??
    If you're just trying to locate where this format has been used on a worksheet, and this is a "one-time" need...

    1. Make a copy of your worksheet and select all of its cells.
    2. Using ASAP Utilities freeware add-in (see www.asap-utilities.com) choose its Range | Convert cell's value to its formatted look menu command.
    3. Now, you can use Excel's Find command and search for ???-????????.

    [ This Message was edited by: Mark W. on 2002-04-05 08:57 ]

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com