Generating source data to simplified data

satoshi_sd

New Member
Joined
Nov 5, 2021
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Is there any formula to read source file and generate a simplified data?

These are the raw data I downloaded from the system, the number of rows are not consistent and as you can see below when there are data, the system will automatically increase a row to show the data (It gets very long when dealing with more options and currencies). It also comes with 4 main sections (bold and underline) but I can't figure out the right formula to read the main section to generate the data accordingly:
ItemsPurpose
Code
Institutional
Sector
CountryCurrency Code
Direct Investment (Exposure with Related Counterparty)
a. Equity Capital
----
Subtotal​
b. Retained Earnings
----
Subtotal​
c. Bonds and Notes
----
Subtotal​
d. Money Market Instruments
----
Subtotal​
e. Non-Participating RPS
----
Subtotal​
f. Real Estates
----
Subtotal​
g. Swaps
----
Subtotal​
h. Forwards
----
Subtotal​
i. Futures
----
Subtotal​
j. Options
----
Subtotal​
k. Other Financial Derivatives
----
Subtotal​
l. Loans
----
Subtotal​
m. Suppliers Credit
----
Subtotal​
n. Deposits
----
Subtotal​
o. Insurance, Pension and Standardised Guarantee Schemes
----
Subtotal​
p. Others
39900FAJPUSD
39900NFAUUSD
39900NFHKUSD
39900NFKYUSD
39900NFSGUSD
Subtotal​
Portfolio Investment
a. Equity Securities
----
Subtotal​
b. Bonds and Notes
----
Subtotal​
c. Money Market Instruments
----
Subtotal​
d. Non-Participating RPS
----
Subtotal​
Financial Derivatives
a. Swaps
----
Subtotal​
b. Forwards
----
Subtotal​
c. Futures
----
Subtotal​
d. Options
----
Subtotal​
e. Other Financial Derivatives
----
Subtotal​
f. Employee Stock Options
----
Subtotal​
Other Investment (Exposure with Non-related Counterparty)
a. Currency
----
Subtotal​
b. Loans
----
Subtotal​
c. Suppliers Credit
31220ICAEAED
31220ICAEEUR
31220ICAESAR
Subtotal​
d. Deposits
----
Subtotal​
e. Insurance, Pension and Standardised Guarantee Schemes
----
Subtotal​
f. Others
----
Subtotal​
TOTAL

Legend (To shorten long name)
MainShort form

Direct Investment (Exposure with Related Counterparty)
DI
Portfolio Investment PI
Financial Derivatives FD
Other Investment (Exposure with Non-related Counterparty) OT

Desired Result:

Short formPurpose CodeInstitutional SectorCountryCurrency Code
DI
39900​
FAJPUSD
DI
39900​
NFAUUSD
DI
39900​
NFHKUSD
DI
39900​
NFKYUSD
DI
39900​
NFSGUSD
OT
31220​
ICAEAED
OT
31220​
ICAEEUR
OT
31220​
ICAESAR
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,215,641
Messages
6,125,980
Members
449,276
Latest member
surendra75

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