I have a portfolio holding statement in PDF. Which I extracted to excel. Now the table that it has generated looks like below:
AND INVESTMENTS IN MUTUAL FUNDS FOR THE PERIOD FROM 01-07-2022 TO 13-07-2022 Summary of Investments (on the basis of PAN of first holder) |
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
| Holding Statement as 13 Jul 2022 | | | | | | | |
| | | | | | | | | | |
| | ISIN | Security | Current Bal | Frozen Bal | Pledge Bal | Pledge Setup Bal | Free Bal | Market Price / Face Value | Value (`) |
| | ABCD123456 | Test | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX |
| | WXYZ123456 | Test2 | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX |
| | | | | | | | | | |
| | Holding Statement as 13 Jul 2022 (Cont.) | | | | | |
| | | | | | | | | | |
| | ISIN | Security | Current Bal | Frozen Bal | Pledge Bal | Pledge Setup Bal | Free Bal | Market Price / Face Value | Value (`) |
| | PQRS09876 | Test3 | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX |
| | Portfolio Value XXXXXXX | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
| Holding Statement as 13 Jul 2022 | | | | | | | |
| | | | | | | | | | |
| | ISIN | Security | Current Bal | Frozen Bal | Pledge Bal | Pledge Setup Bal | Free Bal | Market Price / Face Value | Value (`) |
| | ABCD123456 | Test | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX |
| | WXYZ123456 | Test2 | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX |
| | | | | | | | | | |
| | Holding Statement as 13 Jul 2022 (Cont.) | | | | | |
| | | | | | | | | | |
| | ISIN | Security | Current Bal | Frozen Bal | Pledge Bal | Pledge Setup Bal | Free Bal | Market Price / Face Value | Value (`) |
| | PQRS09876 | Test3 | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX | XXXX |
| | Portfolio Value XXXXXXX | | | | | | | |
| | | | | | | | | | |
I want to grab the range of Holding Statements. Range to start if first column contains "Holding statement" and stop if the second column contains "Portfolio value".
Note: Section for the "Holding statements" are dynamic and can appear multiple times based on the number of demat account holding of the user.
It will be very helpful if anyone can help me with any quick way to select the range as specified above dynamically.