web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

MT940 statement format setup line 61 formula for pulling bank document number

(0) ShareShare
ReportReport
Posted on by 40

Hi everyone,

Good day to all, i am trying to update existing ER design formula to get document number after "//" as my MT940 file line 61 contains document number but some lines will contain characters. Example 
:61:2304201111CD11,80NTRFTest company//01359
Result:01359
:61:2304201111CD11,80NTRFTest company//DOC1234
Result: 1234
:61:2304201111CD11,-//MMB11289578698201?12345678
Result: 11289578698
:61:2304030678OC14,40NTRFTesting Company//T67584965789201?123456
Result:67584965789

My current formula:

IF(CONTAINS(@.Line61, "//"), RIGHT(FIRST(SPLIT(INDEX(SPLIT(@.Line61, "//"), 2).VALUE, "201?")).VALUE, Len(FIRST(SPLIT(INDEX(SPLIT(@.Line61, "//"), 2).VALUE, "201?")).VALUE) - 3), "")

 

  • Verified answer
    huijij Profile Picture
    19,813 on at

    Hi sir,

    You can start with a small part of the function and test it, then see what the real problems are.

  • Benjamin long Profile Picture
    40 on at

    Hi Judy,

    Thank you so much for your response, I manage to get the formula to work.

    IF(CONTAINS(@.Line61, "//"), REPLACE(FIRST(SPLIT(INDEX(SPLIT(@.Line61, "//"), 2).VALUE, "??")).VALUE, "[^0-9]", "", true), "")

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 219

#3
Subra Profile Picture

Subra 213 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans