Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default conversion of book bar code to ISBN

Is there a formula or method that will convert the barcode printed on book
to the ISBN. - I can scan the barcode into Excel eg barcode is 9781585955565
and the ISBN is 158595556 - the last digit in the ISBN number is a checksum
digit, but I really need the ISBN.
thanks for any suggestions/advice

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default conversion of book bar code to ISBN

oops mistyped the ISBN should be 1585955566


"GrahamBookman" wrote in message
...
Is there a formula or method that will convert the barcode printed on book
to the ISBN. - I can scan the barcode into Excel eg barcode is
9781585955565 and the ISBN is 158595556 - the last digit in the ISBN
number is a checksum digit, but I really need the ISBN.
thanks for any suggestions/advice


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default conversion of book bar code to ISBN

Graham,

You can use the function below. It accepts a 13 digit EAN13 number
(the barcode number) and returns an ISBN.

Public Function EAN13ToISBN(c As String) As String
If Len(c) < 13 Or Not IsNumeric(c) Then Exit Function

Dim isbn As String
isbn = Mid(c, 4, 9)

Dim i As Integer
Dim total As Long
For i = 1 To 9
total = total + i * Int(Mid(isbn, i, 1))
Next i

Dim cd As Integer
cd = total Mod 11

If cd = 10 Then
EAN13ToISBN = isbn & "X"
Else
EAN13ToISBN = isbn & cd
End If
End Function


Alek Szymanski
http://www.barcodewiz.com

GrahamBookman wrote:
Is there a formula or method that will convert the barcode printed on book
to the ISBN. - I can scan the barcode into Excel eg barcode is 9781585955565
and the ISBN is 158595556 - the last digit in the ISBN number is a checksum
digit, but I really need the ISBN.
thanks for any suggestions/advice


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default conversion of book bar code to ISBN

Hi Graham

try
=MID(A1,4,10)

--
Regards

Roger Govier


"GrahamBookman" wrote in message
...
oops mistyped the ISBN should be 1585955566


"GrahamBookman" wrote in message
...
Is there a formula or method that will convert the barcode printed on
book to the ISBN. - I can scan the barcode into Excel eg barcode is
9781585955565 and the ISBN is 158595556 - the last digit in the ISBN
number is a checksum digit, but I really need the ISBN.
thanks for any suggestions/advice




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default conversion of book bar code to ISBN

thanks so much G.
"barcodewiz" wrote in message
oups.com...
Graham,

You can use the function below. It accepts a 13 digit EAN13 number
(the barcode number) and returns an ISBN.

Public Function EAN13ToISBN(c As String) As String
If Len(c) < 13 Or Not IsNumeric(c) Then Exit Function

Dim isbn As String
isbn = Mid(c, 4, 9)

Dim i As Integer
Dim total As Long
For i = 1 To 9
total = total + i * Int(Mid(isbn, i, 1))
Next i

Dim cd As Integer
cd = total Mod 11

If cd = 10 Then
EAN13ToISBN = isbn & "X"
Else
EAN13ToISBN = isbn & cd
End If
End Function


Alek Szymanski
http://www.barcodewiz.com

GrahamBookman wrote:
Is there a formula or method that will convert the barcode printed on
book
to the ISBN. - I can scan the barcode into Excel eg barcode is
9781585955565
and the ISBN is 158595556 - the last digit in the ISBN number is a
checksum
digit, but I really need the ISBN.
thanks for any suggestions/advice





  #6   Report Post  
Banned
 
Posts: 2
Default

Sounds to be an interesting topic to me. I've been working with something like the vb.net barcode reader for not short a time. However, I never imagined such kind of things.
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
Text formatting Kace Excel Worksheet Functions 1 September 18th 06 08:28 PM
VB code to copy sheet format to another sheet ASU Excel Discussion (Misc queries) 12 August 10th 06 02:37 AM
4+ Zip Code Conversion PalletHead Excel Discussion (Misc queries) 1 May 9th 06 10:35 PM
Can someone help me put psuedo code into actual excel macro?? bxc2739 Excel Discussion (Misc queries) 1 April 22nd 06 02:58 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM


All times are GMT +1. The time now is 03:37 AM.

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"