#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default nine digits

Dear Experts,
I have one column represents customer’s phone numbers in the following
format 045735403, 04 is the key and the rest is the line number.
How can I know if the number contains nine digits only, not more not
less?
Many thanks in advance
Omar
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default nine digits

In B1, copied down: =LEN(A1)
will reveal the actual number of underlying characters that's in col A,
regardless of the formatting applied
(formatting affects only the display, not the underlying values)

You can apply it directly as a test for 9 char,
eg in C1, copied down: =LEN(A1)=9
will return it as TRUEs/FALSEs
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Omar" wrote:
Dear Experts,
I have one column represents customers phone numbers in the following
format 045735403, 04 is the key and the rest is the line number.
How can I know if the number contains nine digits only, not more not
less?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default nine digits

try this

in adjacent cell of phone number put this formula
=IF(LEN(A1)<9,"less or more than 9 digit","")

or

use conditional format
select the range where u have phone number then
go to | format | conditonal format | condition1 : formula is =LEN(A1)
<9 | format | choose a color | ok | ok



On Jan 28, 1:02*pm, Omar wrote:
Dear Experts,
I have one column represents customer’s phone numbers in the following
format 045735403, 04 is the key and the rest is the line number.
How can I know if the number contains nine digits only, not more not
less?
Many thanks in advance
Omar


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default nine digits

And remember that you would need to enter the data as a text string to get
9.

If it goes in as a number the length will be 8, even if displayed as 9
digits with a format 000000000
--
David Biddulph


"Max" wrote in message
...
In B1, copied down: =LEN(A1)
will reveal the actual number of underlying characters that's in col A,
regardless of the formatting applied
(formatting affects only the display, not the underlying values)

You can apply it directly as a test for 9 char,
eg in C1, copied down: =LEN(A1)=9
will return it as TRUEs/FALSEs
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Omar" wrote:
Dear Experts,
I have one column represents customer's phone numbers in the following
format 045735403, 04 is the key and the rest is the line number.
How can I know if the number contains nine digits only, not more not
less?




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
How to customize number to 10 digits including 2 digits after deci Carina Excel Worksheet Functions 3 September 20th 07 02:50 AM
last 2 digits rexmann Excel Discussion (Misc queries) 2 March 6th 07 09:40 AM
2 DIGITS OUT OF 4 gregork Excel Discussion (Misc queries) 9 February 20th 05 03:30 PM
2 DIGITS OUT OF 4 Knoxi Excel Discussion (Misc queries) 0 February 19th 05 05:54 PM
15 digits??? muckali Excel Discussion (Misc queries) 1 February 15th 05 05:21 AM


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

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

About Us

"It's about Microsoft Excel"