web
You’re offline. This is a read only version of the page.
close
Skip to main content
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), "")

 

I have the same question (0)
  • Verified answer
    huijij Profile Picture
    19,811 on at
    RE: MT940 statement format setup line 61 formula for pulling bank document number

    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
    RE: MT940 statement format setup line 61 formula for pulling bank document number

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,882

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 794 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 525 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans