View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default Formatting a cell with a formula

Formatting a cell does not change the value in the cell, only the way it is
displayed, so your search won't work if the *contents* (as distinct from the
*display*) don't match your search criteria.

If you want to search for a string including the hyphen, you probably need a
helper column such as =TEXT(A2,"0-00")
--
David Biddulph

"Jim" wrote in message
...
Hello,

In would like help with adding a dash to a series of numbers. I know I
can
format with special formatting using 0-00. However the result does return
a
hit when I search with the -00. Can you offer a formula that will add the
dash and yield a result that can be searched.

Thanks for the help (example below)

Now Needs to be
38605.................386-05
118306...............1183-06
511602...............5116-02
553404...............5534-04
553703...............5537-03
597309...............5973-09
597704...............5977-04