Example of my string array looks like this:
Serialno. firstname middlename lastname IDnumber Country Date
I have split the array by spacing, so i count from the back to extract each individual index (starting from date, country, IDnumber).
From my example, ID number is index 4. How do I write my formula "If Index 4 is ID number, then join Index 1 2 3 (firstname middlename lastname) to create a variable Name?
Thanks!
Currently, I am stucked at finding the Index of IDnumber which can vary. I have saved it as a variable name: ID
Then after,
If index is 3 means [0], [1], [2]. Join to become Name.
If index is 4 means the [0], [1], [2], [3]. Join to become Name.
My data is reading business company information, in particularly search for the line which contains different directors’ details.
So the line I retrieve will look like this:
Serialno.(sometimes it appears or not appear) firstname(vary) middlename(vary) lastname(vary) IDnumber(vary) Country(vary) Date(vary)
There is no fixed data for me to identify IDnumber because it can either starts with number or starts with alphabet depends on the person nationality.
String Array:
Serialno. firstname middlename lastname IDnumber Country Date
Your suggestions have been very useful! I am able to see some results now. I will go play around with the script given. Thank you so much for your help!