Excel Sheet for IBAN Checker

maas

New Member
Joined
Nov 22, 2004
Messages
46
Hello All,

I am looking for a ready excel sheet or a useful way to include an IBAN checker in an excel sheet.
I searched for a number of examples but I could not find a useful one.

Can you help in finding this sheet or at least help in doing the excel.

Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I have no experience with IBAN, but following the algorithm laid out here...

http://en.wikipedia.org/wiki/International_Bank_Account_Number

I came up with this function (can be used as a UDF if need be)...

Code:
Function IsFormatIBAN(ByVal S As String) As Boolean
  Dim X As Long, DigitValue As Long, Total As Long
  If Not S Like "*[0-9A-Z ]*" Then Exit Function
  S = Replace(S, " ", "")
  S = Mid(S, 5) & Left(S, 4)
  For X = 65 To 90 'A to Z
    S = Replace(S, Chr(X), X - 55)
  Next
  S = StrReverse(S)
  DigitValue = 1
  Total = Left(S, 1)
  For X = 2 To Len(S)
    DigitValue = 10 * DigitValue Mod 97
    Total = Total + Mid(S, X, 1) * DigitValue
  Next
  IsFormatIBAN = (Total Mod 97) = 1
End Function
This should tell you if the IBAN number is correctly formatted but, of course, not if there is an actual account matched to it. I believe the code is correct, but without any knowledge of IBAN (until your post), my suggestion is for you to test it out against several known good and bad IBAN numbers to make sure it really returns the correct values for you.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,158
Messages
6,170,427
Members
452,325
Latest member
BlahQz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top