![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: San Antonio, TX
Posts: 186
|
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 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
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 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
Maybe
=AND(LEFT(A1,3)&"-"&RIGHT(A1,8)=A1,LEN(A1)=12,ISNUMBER(SUBSTITUTE(A1,"-","",1)+0)) |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
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 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|