Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
nevilledhamsiri
Specialist
Specialist

Extraction of codes & names seperately from a long list

Hi

I need to extract code as the debtor code & the name as the debtor name from the field debtor.The excel too attached & the length of the debtor is varying from one debtor to the other.please explain with clear steps where & how I get this done?

Neville.

Very sorry our exerts, I have still failed to grasp what you explained. If I am to tell you again what I want is to create two list boxes for Debtor names & debtor codes for that name & codes to be separated. When I followed your steps I get codes & names together as debtor name. Please see below how the excel data once I loaded looks like. Please do write your expression in this data loading so that I will be able to understand better. Sorry for troubling you!

Thanks Neville

  Directory;

LOAD DEBTOR,

     RISK_DATE,

     AS_AT_DATE,

     POL_NUMBER,

     REF_NUMBER,

     INSURED,

     AMOUNT,

     H

FROM

[..\DEBTORS.xlsx]

(ooxml, embedded labels, table is [DEB(RA)]);

       

DEBTORRISK_DATEAS_AT_DATEPOL_NUMBERREF_NUMBERINSUREDAMOUNT
Debtor Code      : 07383    -    S.GURUSINGHE11-Jun-1531-Aug-17RA0015CT0000072RA0015D0047778B.A.M.H. KURUPPU0
Debtor Code      : 07383    -    S.GURUSINGHE25-Feb-1631-Aug-17RA0016CT0000086RA0016D0051868B.A.M.H. KURUPPU0
Debtor Code      : 07383    -    S.GURUSINGHE24-May-1631-Aug-17RA0016CT0000091RA0016D0053298B.A.M.H. KURUPPU0
Debtor Code      : 07383    -    S.GURUSINGHE24-May-1631-Aug-17RA0016CT0000092RA0016D0053299W.M.G.U. WIJESUNDARA0
Debtor Code      : 07383    -    S.GURUSINGHE20-Dec-1631-Aug-17RA0016CT0000104RA0016D0056906B.A.M.H. KURUPPU0
Debtor Code      : 07383    -    S.GURUSINGHE2-Jun-1731-Aug-17RA00151C0003035RA0017D0059345K.G.S. RATHNESEKARA208,895
Debtor Code      : 07383    -    S.GURUSINGHE12-Jun-1731-Aug-17RA00171C0003282RA0017D0059466. WINWOOD TEA ESTATE (PVT) LTD1,766
Debtor Code      : 07383    -    S.GURUSINGHE26-Jun-1731-Aug-17RA00121C0002600RA0017D0059674P.K.I.U KUMARASIRI79,710
Debtor Code      : 07383    -    S.GURUSINGHE27-Jun-1731-Aug-17RA00121C0002651RA0017D0059684P.K.M.L. PINWATTA,13,057
Debtor Code      : 07383    -    S.GURUSINGHE29-Jun-1731-Aug-17RA00171C0003288RA0017D0059707G.D.D. SENANI50,322
Debtor Code      : 07383    -    S.GURUSINGHE29-Jun-1731-Aug-17RA00061A000851RA0017D0059720M/S.UNI-TEC LANKA ENGINEERING CO.52,721
Debtor Code      : 07383    -    S.GURUSINGHE30-Jun-1731-Aug-17RA00153F0016500RA0017D0059731P.K.P. BANDARA800
Debtor Code      : 07383    -    S.GURUSINGHE1-Jul-1731-Aug-17RA00081A001253RA0017D0059747R.M.S.L RATNAYAKE58,797
Debtor Code      : 07383    -    S.GURUSINGHE1-Jul-1731-Aug-17RA00121C0002610RA0017D0059749M.D.D.A.K. PEIRIS22,607
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00151C0003054RA0017D0059762R.U. JAYASEKARA.41,502
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00151C0003060RA0017D0059763U.N. MARKETING (PVT) LTD33,759
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00151C0003056RA0017D0059764R.U. JAYASEKARA.22,713
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00111F000952RA0017D0059765B.M.H. KURUPPU9,565
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00121C0002621RA0017D0059766L.H.D. SHANTHALAL53,244
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00151C0003066RA0017D0059769. WINWOOD TEA ESTATE (PVT) LTD68,992
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00151C0003065RA0017D0059771. WINWOOD TEA ESTATE (PVT) LTD68,992
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00151C0003059RA0017D0059772. HENATHENNA TEA FACTORY (PVT) LT35,196
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00151C0003058RA0017D0059774. WINWOOD TEA ESTATE (PVT) LTD57,237
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00121A0001782RA0017D0059775M/S.WINWOOD TEA ESATES (PVT)LTD.,218,557
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00111C002388RA0017D0059804A.L.C.U. LIYANAGE18,889
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00051C001455RA0017D0059806A.L.C.U. LIYANAGE31,684
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00141F0001089RA0017D0059819MS.KANLIT ENTERPRISES (PVT) LTD32
Debtor Code      : 07383    -    S.GURUSINGHE3-Jul-1731-Aug-17RA00141F0001086RA0017D0059822MS.KANLIT ENTERPRISES (PVT) LTD10,371
Debtor Code      : 07383    -    S.GURUSINGHE5-Jul-1731-Aug-17RA00171C0003289RA0017D0059834W.A.C PERERA55,061
Debtor Code      : 07383    -    S.GURUSINGHE6-Jul-1731-Aug-17RA0010TC002160RA0017D0059852MS.UPALI TRADE CENTER37,151
Debtor Code      : 07383    -    S.GURUSINGHE6-Jul-1731-Aug-17RA00151B0005845RA0017D0059855M.W.S.S. MUNASINGHE27,043
Debtor Code      : 07383    -    S.GURUSINGHE6-Jul-1731-Aug-1702RT1D000862RA0017D0059857A.G.A.S ALGODA19,048
Debtor Code      : 07383    -    S.GURUSINGHE6-Jul-1731-Aug-17RA00141A0002120RA0017D0059858K.M.A. WIJEKOON79,352
Debtor Code      : 07383    -    S.GURUSINGHE6-Jul-1731-Aug-17RA0015TF0000076RA0017D0059859M.K.L. ARIYASENA2,267
Debtor Code      : 07383    -    S.GURUSINGHE6-Jul-1731-Aug-17RT04TC001335RA0017D0059861A.G.J.N. ALGODA37,313
Debtor Code      : 07383    -    S.GURUSINGHE7-Jul-1731-Aug-17RA00121C0002597RA0017D0059866K.M. PRIYANTHA KUMARA12,676
Debtor Code      : 07383    -    S.GURUSINGHE7-Jul-1731-Aug-17RA0014CF0001181RA0017D0059871M.Y.M. ILHAMYEHIYA51,694
Debtor Code      : 07383    -    S.GURUSINGHE7-Jul-1731-Aug-17RA0014CF0001185RA0017D0059874M.Y.M. ILHAMYEHIYA12,720
Debtor Code      : 07383    -    S.GURUSINGHE10-Jul-1731-Aug-17RA00151A0002390RA0017D0059892D.P. MALALGODA867
Debtor Code      : 07383    -    S.GURUSINGHE11-Jul-1731-Aug-17RA00151B0005866RA0017D0059919K.A.R. KODISINGHE.137,315
Debtor Code      : 07383    -    S.GURUSINGHE11-Jul-1731-Aug-17RA00161C0003200RA0017D0059924W.R. VIDANAGAMAGE15,469
Debtor Code      : 07383    -    S.GURUSINGHE12-Jul-1731-Aug-17RA00111C002396RA0017D0059925W.R. VIDANAGAMAGE28,973
Debtor Code      : 07383    -    S.GURUSINGHE12-Jul-1731-Aug-17RA00091C002196RA0017D0059940P WALIWATTE33,015
Debtor Code      : 07383    -    S.GURUSINGHE12-Jul-1731-Aug-17RT01TF000032RA0017D0059943. KONGAHAWATTE TEA FACTORY219,253
Debtor Code      : 07383    -    S.GURUSINGHE12-Jul-1731-Aug-17RA0012CP0000022RA0017D0059945. KONGAHAWATTE TEA FACTORY206,955
Debtor Code      : 07383    -    S.GURUSINGHE12-Jul-1731-Aug-17RA0008EL000130RA0017D0059946. KOONGAHAWATTE TEA FACTORY99,719
Debtor Code      : 07383    -    S.GURUSINGHE14-Jul-1731-Aug-17RA00173A0003339RA0017D0059970H.P.T. CALDERA2,500
Debtor Code      : 07383    -    S.GURUSINGHE18-Jul-1731-Aug-17RA00153C0001576RA0017D0059993. WINWOOD TEA ESTATE (PVT) LTD3,500
Debtor Code      : 07383    -    S.GURUSINGHE18-Jul-1731-Aug-17RA00151A0002396RA0017D0059994P.G.G. HARISHCHANDRA325,973
Debtor Code      : 07383    -    S.GURUSINGHE18-Jul-1731-Aug-17RA0009HH000230RA0017D0059996D.M.D.B. SAMARAJEEWA926
Debtor Code      : 07383    -    S.GURUSINGHE18-Jul-1731-Aug-17RA00171C0003291RA0017D0059997G.D.D. SENANI54,241
Debtor Code      : 07383    -    S.GURUSINGHE18-Jul-1731-Aug-1703RT1D001175RA0017D0060011W.K DHARMASENA24,247
Debtor Code      : 07383    -    S.GURUSINGHE20-Jul-1731-Aug-17RA00061C001679RA0017D0060034W.W.D.S.R. PERERA25,725
Debtor Code      : 07383    -    S.GURUSINGHE21-Jul-1731-Aug-17RA0014CF0001187RA0017D0060052J.M.M. JAYASUNDARA17,074
Debtor Code      : 07383    -    S.GURUSINGHE21-Jul-1731-Aug-17RA0014TL0000023RA0017D0060053J.M.M. JAYASUNDARA4,120
Debtor Code      : 07383    -    S.GURUSINGHE26-Jul-1731-Aug-17RA00171B0005908RA0017D0060093K.V.D.M. WIMALANATHA20,700
Debtor Code      : 07383    -    S.GURUSINGHE28-Jul-1731-Aug-17RA00171A0002880RA0017D0060136D.M.J.C.S DASANAYAKA.97,015
Debtor Code      : 07383    -    S.GURUSINGHE28-Jul-1731-Aug-17RA00101F000888RA0017D0060153M.R.M.P.M. GUNATHILAKA9,118
Debtor Code      : 07383    -    S.GURUSINGHE1-Aug-1731-Aug-17RA00141A0002142RA0017D0060239W.R.N. GUNASEKARA36,847
Debtor Code      : 07383    -    S.GURUSINGHE1-Aug-1731-Aug-17RA00111C002406RA0017D0060240W.S.S.S. GUNASENA34,555
Debtor Code      : 07383    -    S.GURUSINGHE1-Aug-1731-Aug-17RA00141C0002923RA0017D0060241. K.A. SAMARAJEEWA. KANLITH ENTER18,356
Debtor Code      : 07383    -    S.GURUSINGHE1-Aug-1731-Aug-17RA00141C0002924RA0017D0060245. K.A. SAMARJEEWA, KANLIT ENTERPR18,356
Debtor Code      : 07383    -    S.GURUSINGHE1-Aug-1731-Aug-17RA00111C002410RA0017D0060246S.S.P.ENGINEERS (PRIVATE) LIMITED56,313
Debtor Code      : 07383    -    S.GURUSINGHE1-Aug-1731-Aug-17RA00151B0005858RA0017D0060247M.A.U. PRADEEP28,036
Debtor Code      : 07383    -    S.GURUSINGHE1-Aug-1731-Aug-17RA00151B0005859RA0017D0060248M.A.U. PRADEEP48,585
Debtor Code      : 07383    -    S.GURUSINGHE1-Aug-1731-Aug-17RA00151B0005857RA0017D0060250M.A.U. PRADEEP32,158
Debtor Code      : 07383    -    S.GURUSINGHE1-Aug-1731-Aug-17RA00171A0002881RA0017D0060258L.L.A. NANDANA55,616
Debtor Code      : 07383    -    S.GURUSINGHE2-Aug-1731-Aug-17RA00171C0003295RA0017D0060262M.K.L. ARIYASENA.346,837
Debtor Code      : 07383    -    S.GURUSINGHE2-Aug-1731-Aug-17RA00173A0003354RA0017D0060292M.A.K. ANURADHA.2,500
Debtor Code      : 07383    -    S.GURUSINGHE4-Aug-1731-Aug-17RA0015TF0000076RA0017D0060315M.K.L. ARIYASENA395,332
Debtor Code      : 07383    -    S.GURUSINGHE4-Aug-1731-Aug-17RA00161W0000173RA0017D0060317S. MOHOMAD NAWAZ10,000
Debtor Code      : 07383    -    S.GURUSINGHE4-Aug-1731-Aug-17RA0015CP0000027RA0017D0060318M.K.L. ARIYASENA205,656
Debtor Code      : 07383    -    S.GURUSINGHE4-Aug-1731-Aug-17RA0007TF000050RA0017D0060332U. LIYANAGE CHANDANA MITHSEN313,956
Debtor Code      : 07383    -    S.GURUSINGHE4-Aug-1731-Aug-17RA0007CP000010RA0017D0060334U. LIYANAGE CHANDANA MITHSEN39,448
Debtor Code      : 07383    -    S.GURUSINGHE4-Aug-1731-Aug-17RT01TF000032RA0017D0060335. KONGAHAWATTE TEA FACTORY12,337
Debtor Code      : 07383    -    S.GURUSINGHE4-Aug-1731-Aug-17RA0012CP0000022RA0017D0060336. KONGAHAWATTE TEA FACTORY23,835
Debtor Code      : 07383    -    S.GURUSINGHE5-Aug-1731-Aug-17RA00171C0003296RA0017D0060372M.G.I.R. WICKRAMASINGHE74,110
Debtor Code      : 07383    -    S.GURUSINGHE8-Aug-1731-Aug-17RA0012EL0000164RA0017D0060376THUSHAN UPASENA94,466
Debtor Code      : 07383    -    S.GURUSINGHE8-Aug-1731-Aug-17RA00151W0000088RA0017D0060407D.P.G. PRIYANKARA6,313
Debtor Code      : 07383    -    S.GURUSINGHE9-Aug-1731-Aug-17RA00141X0001246RA0017D0060421W.M.T. BUDDIKA BANDARA7,152
Debtor Code      : 07383    -    S.GURUSINGHE9-Aug-1731-Aug-17RA00171A0002884RA0017D0060435S. ABEYGUNARATNE.52,941
Debtor Code      : 07383    -    S.GURUSINGHE10-Aug-1731-Aug-17RA0015FZ0000213RA0017D0060469S.S.P. ENGINEERS (PVT) LTD.,71,007
Debtor Code      : 07383    -    S.GURUSINGHE10-Aug-1731-Aug-17RA0015CF0001277RA0017D0060473S.D.A. INDRATHILAKA42,274
Debtor Code      : 07383    -    S.GURUSINGHE11-Aug-1731-Aug-17RA00141A0002149RA0017D0060475D.H.D.U. INDRARATNE94,623
Debtor Code      : 07383    -    S.GURUSINGHE11-Aug-1731-Aug-17RA00161A0002670RA0017D0060476M.C. HATHARASINGHE47,844
Debtor Code      : 07383    -    S.GURUSINGHE11-Aug-1731-Aug-17RA00071B002933RA0017D0060477B.G.N BODARAGAMA46,843
Debtor Code      : 07383    -    S.GURUSINGHE11-Aug-1731-Aug-17RA00101D002940RA0017D0060485M.A.N. WICKRAMASINGHE19,238
Debtor Code      : 07383    -    S.GURUSINGHE15-Aug-1731-Aug-17RA00153C0001594RA0017D0060512M.D. ARIYASENA3,800
Debtor Code      : 07383    -    S.GURUSINGHE15-Aug-1731-Aug-17RA00153C0001593RA0017D0060513M.D. ARIYASENA3,800
Debtor Code      : 07383    -    S.GURUSINGHE15-Aug-1731-Aug-17RA00153D0000660RA0017D0060514M.D. ARIYASENA3,800
Debtor Code      : 07383    -    S.GURUSINGHE15-Aug-1731-Aug-17RT01CF00712RA0017D0060520K.D.N.T.K.  UPASENA17,952
Debtor Code      : 07383    -    S.GURUSINGHE15-Aug-1731-Aug-17RA00171F0001157RA0017D0060526CEYLINCO  GENERAL INSURANCE LTD..12,250
Debtor Code      : 07383    -    S.GURUSINGHE15-Aug-1731-Aug-1703RT1C001049RA0017D0060527H.G DHARMAWARDANA23,409
Debtor Code      : 07383    -    S.GURUSINGHE16-Aug-1731-Aug-17RA00163B0002556RA0017D0060536M.D. ARIYASENA3,300
Debtor Code      : 07383    -    S.GURUSINGHE16-Aug-1731-Aug-17RA00153C0001598RA0017D0060537M.K.L. ARIYASENA3,800
Debtor Code      : 07383    -    S.GURUSINGHE16-Aug-1731-Aug-17RA0012TF0000067RA0017D0060541K.D.N.T.K. UPASENA25,601
Debtor Code      : 07383    -    S.GURUSINGHE17-Aug-1731-Aug-17RA0009TF000054RA0017D0060548M.K.L. ARIYASENA599,555
Debtor Code      : 07383    -    S.GURUSINGHE18-Aug-1731-Aug-17RA0015CP0000029RA0017D0060558M.K.L. ARIYASENA188,175
Debtor Code      : 07383    -    S.GURUSINGHE18-Aug-1731-Aug-17RA00153C0001595RA0017D0060560M.D. ARIYASENA3,800
Debtor Code      : 07383    -    S.GURUSINGHE18-Aug-1731-Aug-17RA0012TF0000067RA0017D0060561K.D.N.T.K. UPASENA47,335
Debtor Code      : 07383    -    S.GURUSINGHE18-Aug-1731-Aug-17RA00161A0002662RA0017D0060564S.A. THISSA JAYAWARDHANA798,278
Debtor Code      : 07383    -    S.GURUSINGHE21-Aug-1731-Aug-17RA0010DF000898RA0017D0060574D.S. PUNCHIHEWA & MR.P.L.PUNCHIHE9,228
Debtor Code      : 07383    -    S.GURUSINGHE21-Aug-1731-Aug-17RA00131A0001944RA0017D0060576K.A.U. LALANTHA44,751
Debtor Code      : 07383    -    S.GURUSINGHE21-Aug-1731-Aug-1704RT1D001568RA0017D0060579W.K. DARMASENA68,898
Debtor Code      : 07383    -    S.GURUSINGHE21-Aug-1731-Aug-17RA00141A0002160RA0017D0060580W.M.G.U. WIJESUNDARA.44,095
Debtor Code      : 07383    -    S.GURUSINGHE21-Aug-1731-Aug-17RA00131D0003484RA0017D0060582A.K. MILTON SILVA.48,454
Debtor Code      : 07383    -    S.GURUSINGHE21-Aug-1731-Aug-17RA00141C0002937RA0017D0060583S.S.P. ENGINEERS (PVT) LTD.,94,633
Debtor Code      : 07383    -    S.GURUSINGHE22-Aug-1731-Aug-17RA00161C0003186RA0017D0060587B.A.R.U. NISANSALA39,547
Debtor Code      : 07383    -    S.GURUSINGHE22-Aug-1731-Aug-17RA00091D002819RA0017D0060588L.H SWARNALATHA50,428
Debtor Code      : 07383    -    S.GURUSINGHE22-Aug-1731-Aug-17RA00141C0002933RA0017D0060592S.S.P. ENGINEERS (PVT) LTD.,114,937
Debtor Code      : 07383    -    S.GURUSINGHE23-Aug-1731-Aug-17RA00171F0001158RA0017D0060599CEYLINCO GENERAL INSURANCE LTD...12,250
Debtor Code      : 07383    -    S.GURUSINGHE23-Aug-1731-Aug-17RA00171F0001159RA0017D0060600CEYLINCO  GENERAL  INSURANCE LTD.12,250
Debtor Code      : 07383    -    S.GURUSINGHE23-Aug-1731-Aug-17RA00171F0001160RA0017D0060601CEYLINCO  GENERAL  INSURANCE LTD.12,250
Debtor Code      : 07383    -    S.GURUSINGHE23-Aug-1731-Aug-17RA00171F0001161RA0017D0060602CEYLINCO  GENERAL  INSURANCE LTD.12,250
Debtor Code      : 07383    -    S.GURUSINGHE24-Aug-1731-Aug-17RA00171X0002563RA0017D0060613J.M.S.K. BANDARA7,908
Debtor Code      : 07383    -    S.GURUSINGHE25-Aug-1731-Aug-17RA00153D0000661RA0017D0060621M.D. ARIYASENA3,800
Debtor Code      : 07383    -    S.GURUSINGHE25-Aug-1731-Aug-17RA00091B003517RA0017D0060622K.T.J MAHESH38,360
Debtor Code      : 07383    -    S.GURUSINGHE25-Aug-1731-Aug-17RA00121X0000020RA0017D0060625N.J. RANASINGHE11,433
Debtor Code      : 07383    -    S.GURUSINGHE27-Aug-1731-Aug-17RA00173F0021123RA0017D0060632E.V.U.S. KUMARA1,000
Debtor Code      : 07639    -    M.T.N.A.KUMARA28-Jun-1731-Aug-17RA00071D002523RA0017D0059699N. BULUTOTA49,807
Debtor Code      : 07639    -    M.T.N.A.KUMARA17-Jul-1731-Aug-1704RT1D001531RA0017D0059972M.G.P.N. KULATHUNGA.7,978
Debtor Code      : 07639    -    M.T.N.A.KUMARA31-Jul-1731-Aug-1703RT1B000736RA0017D0060179W.K  CHANDRADASA46,171
Debtor Code      : 07639    -    M.T.N.A.KUMARA14-Aug-1731-Aug-17RA00051B001681RA0017D0060507M.A.P. RUPASINGHE44,478
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN30-Jun-1731-Aug-17RA0017HB0000629RA0017D0059742P.M.N.S. DAYANANDA1,953
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN10-Jul-1731-Aug-17RA00141X0001109RA0017D0059888S.C. SOMASIRI5,395
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN11-Jul-1731-Aug-17RA00164F0000315RA0017D0059901R.M.R. MALKANTHI9,848
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN11-Jul-1731-Aug-17RA0016SE0001267RA0017D0059921R.S. RANATHUNGA1,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN11-Jul-1731-Aug-17RA0016SE0001234RA0017D0059922U.T. PUSHPA KUMARA1,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN11-Jul-1731-Aug-17RA0017SE0001419RA0017D0059923T. INDRALAL1,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN12-Jul-1731-Aug-17RA0009TC002042RA0017D0059941K.G. LALITH KUMARA29,079
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN17-Jul-1731-Aug-17RA00161A0002655RA0017D0059973G.H.T.N. YASARATHNE.66,974
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN17-Jul-1731-Aug-17RA0016SE0001264RA0017D0059977R.G.S. KANTHI1,000
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN17-Jul-1731-Aug-17RA0016SE0001284RA0017D0059988M.M.A.S. PEREREA1,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN17-Jul-1731-Aug-17RA0016SE0001278RA0017D0059989M.M.N. PERERA1,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN19-Jul-1731-Aug-17RA0017PH0003227RA0017D0060021J.S.I. NILANTHI1,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN19-Jul-1731-Aug-17RA0017SE0001424RA0017D0060022J.S.I. NILANTHI1,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN21-Jul-1731-Aug-17RA0016PH0002953RA0017D0060055S.S. SENARATHNA1,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN24-Jul-1731-Aug-17RA0016SE0001245RA0017D0060066A.A.D.R. PREMATHILAKA1,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN24-Jul-1731-Aug-17RA0017SE0001428RA0017D0060067D.M.S. JAYALATH1,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN26-Jul-1731-Aug-17RA0015CF0001273RA0017D0060087J. DAMIYAN3,709
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN26-Jul-1731-Aug-17RA0015HB0000576RA0017D0060088J. DAMIYAN3,709
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN26-Jul-1731-Aug-17RA0010PH001241RA0017D0060098W.D. UPUL PRIYANTHA1,000
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN26-Jul-1731-Aug-17RA0017OM0000721RA0017D0060105L.A. CHATHURA MADUSHAN2,500
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN27-Jul-1731-Aug-17RA0017PH0003232RA0017D0060118W.N. INDUNIL1,000
Debtor Code      : 08593    -    MR. L.A. CHATHURA MADUSHAN
1 Solution

Accepted Solutions
7 Replies
sunny_talwar

Try this

Table:

LOAD DEBTOR,

Trim(TextBetween(DEBTOR, ':', '-')) as DEBTOR_CODE,

PurgeChar(Trim(SubField(DEBTOR, '-', -1)), Chr(160)) as DEBTOR_NAME,

    RISK_DATE,

    AS_AT_DATE,

    POL_NUMBER,

    REF_NUMBER,

    INSURED,

    AMOUNT

FROM

[..\..\Downloads\DEBTORS.xlsx]

(ooxml, embedded labels, table is Sheet1);

Capture.PNG

sunny_talwar

Or this

Table:

LOAD DEBTOR,

Trim(PurgeChar(TextBetween(DEBTOR, ':', '-'), Chr(160))) as DEBTOR_CODE,

Trim(PurgeChar(SubField(DEBTOR, '-', -1), Chr(160))) as DEBTOR_NAME,

    RISK_DATE,

    AS_AT_DATE,

    POL_NUMBER,

    REF_NUMBER,

    INSURED,

    AMOUNT

FROM

[..\..\Downloads\DEBTORS.xlsx]

(ooxml, embedded labels, table is Sheet1);

nevilledhamsiri
Specialist
Specialist
Author

Thank for your reply, but it seems working for few cases such as what you have highlighted. Please check following cases as an example!

2019-039

peoples leasing & finance PLCBAL

How the code & name appear in the original data, but  check them after being loaded which  appears as below

code as 2019, name as BAL.

I check some more cases which are having longer lengths all of them not get the full code & names.

Appreciate if this is looked in to.

LOAD DEBTOR,

     TRIM(TEXTBETWEEN(DEBTOR,':','-')) AS DEBTOR_CODE,

     PURGECHAR(TRIM(SUBFIELD(DEBTOR,'-',-1)),CHR(160)) AS DEBTOR_NAME,

     RISK_DATE,

     AS_AT_DATE,

     POL_NUMBER,

     REF_NUMBER,

     INSURED,

     AMOUNT,

     H

FROM

[..\DEBTORS.xlsx]

(ooxml, embedded labels, table is [DEB(RA)]);

sunny_talwar

This is what is available in DEBOR

2019-039

peoples leasing & finance PLCBAL

What would you like to see in DEBOR_CODE and DEBTOR_NAME? Also, can you share more variations because I cannot give you a solution for all cases unless I know the values that might come through

upaliwije
Creator II
Creator II

Nevil,

Create a separate File under following headings and link the same to your data file

Debtor_code    Debtor_name

nevilledhamsiri
Specialist
Specialist
Author

Thanks Mr Upali,

What you suggested I have applied & got the results. Simply what I wanted  was to achieve the results as it is.What Sunny proposed did work 90% but for few cases it appears to be not working!. Thanks all guys I could manage this.