Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default count the number of digits ISBN : 0524102434

I need to find a way to count the number of digits in cells that contain
information such as "ISBN : 0524102434".

If the number of digits is not 10 or 13 then the ISBN is not valid.

The digits, may sometimes, include an X.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default count the number of digits ISBN : 0524102434

Say ISBN No. is in A1, then
=LEN(TRIM(SUBSTITUTE(SUBSTITUTE(A1,"ISBN",""),":", "")))

Regards,
Stefi

€˛Max Bialystock€¯ ezt Ć*rta:

I need to find a way to count the number of digits in cells that contain
information such as "ISBN : 0524102434".

If the number of digits is not 10 or 13 then the ISBN is not valid.

The digits, may sometimes, include an X.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,886
Default count the number of digits ISBN : 0524102434

Hi Max

Assuming all entries start with "ISBN: " i.e. 6 characters, then
=IF(OR(LEN(A1)=16,LEN(A1)=19),"OK","Incorrect")

--
Regards

Roger Govier


"Max Bialystock" wrote in message
...
I need to find a way to count the number of digits in cells that
contain information such as "ISBN : 0524102434".

If the number of digits is not 10 or 13 then the ISBN is not valid.

The digits, may sometimes, include an X.





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
Count number of digits in a cell Julieeeee Excel Worksheet Functions 7 April 3rd 23 04:19 PM
Count number of digits (Numbers) JohnUK Excel Discussion (Misc queries) 3 November 28th 08 05:08 PM
NEED EXCEL FORMULA TO CONVERT 13 DIGIT ISBN TO 10 DIGIT ISBN Don_Quixote60 Excel Discussion (Misc queries) 7 April 1st 07 10:58 PM
urgent : count of digits in a number SHIRA Excel Programming 4 April 26th 06 09:19 PM
ISBN Check Digits Colin Vicary Excel Discussion (Misc queries) 3 August 12th 05 04:12 PM


All times are GMT +1. The time now is 11:27 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"