Hi,
I need a excel formula or a excel function which can perform the info on this website http://www.pgrocer.net/Cis51/mod11.html
Hi,
I need a excel formula or a excel function which can perform the info on this website http://www.pgrocer.net/Cis51/mod11.html
Last edited by pr4t3ek; 06-09-2011 at 12:43 AM.
--
Regards
PD
----- Don't Forget -----
1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
2. Thank those who have helped you by Clicking the scales above each post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Hello,
I used discription from site:
http://www.kfupm.edu.sa/cim/OCW/ACCT...alculation.pdf
and here you are:
Best Regards![]()
Function mod11(digStr As String) As String Dim L, sum, memo, weight As Integer L = Len(digStr) sum = 0 memo = 0 For i = 1 To L weight = L - i + 2 sum = sum + CInt(Mid(digStr, i, 1)) * weight Next i memo = sum Mod 11 If memo = 0 Then mod11 = digStr & memo ElseIf memo = 1 Then mod11 = digStr & "X" Else mod11 = digStr & CStr(11 - memo) End If End Function
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks