#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formatting in Excel

I have imported a database and cannot format the phone numbers I have tried
formatting the cells prior to importing and also tried conditional
formatting. For some reason these numbers always show up without a space
between the brackets. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Formatting in Excel

< Can anyone help? Yes.

Just tell us what the data looks like, and what you want it to be.

Regards
Fred.

"Darrel" wrote in message
...
I have imported a database and cannot format the phone numbers I have tried
formatting the cells prior to importing and also tried conditional
formatting. For some reason these numbers always show up without a space
between the brackets. Can anyone help?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Formatting in Excel

It sounds like that the data is text--not real numbers.

Try a few functions that'll describe that cell (before you retype the value).

=istext(a1)
=isnumber(a1)
=len(a1)

You could be pasting extra characters into that cell--maybe extra spaces or
those HTML non-breaking spaces (char(160)'s).

Depending on what you find out, ...

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

And if you're new to macros, you may want to read David's intro:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Darrel wrote:

I have imported a database and cannot format the phone numbers I have tried
formatting the cells prior to importing and also tried conditional
formatting. For some reason these numbers always show up without a space
between the brackets. Can anyone help?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving Excel 2007 conditional formatting in Excel 2003 format [email protected] Excel Discussion (Misc queries) 0 March 28th 08 06:42 AM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
expanding custom formatting without removing existing cell formatting? Keith Excel Worksheet Functions 3 December 27th 06 01:54 PM


All times are GMT +1. The time now is 02:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"