Anonymous User 51392
New Member
- Joined
- Jul 22, 2022
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
I have a table of input of words such as:
May I know what formula should I apply in the Result column so that:
=IFERROR(FILTERXML("<a><b>"&IFERROR(SUBSTITUTE(C3:C987,MID(LEFT(C3:C987,FIND("]",C3:C987)),FIND("[",C3:C987),LEN(C3:C987)),""),C3:C987)&"</b></a>","//b"),"")
May I know how can I improve the formula? Or are there any better formula?
Input | Result |
Biology[23], Chemistry, Physics[17], History, [21]Geography[11] | Biology, Chemistry, Physics, History, Geography |
Mathematics,[27] Science (Terminated), [51]English,[36] History,[79] Music[3] | Mathematics, Science, English, History, Music |
Accounting (Suspended), Economics[25] | Accounting, Economics |
Arts, Literature (Begins on 7/7/2022)[6] | Arts, Literature |
... | ... |
- the square brackets along with the contents inside the square brackets can be removed?
- the round brackets along with the contents inside the round brackets can be removed?
- The formula in the result column should be the same for every row and it uses colon for cell reference (e.g. C3:C987) so that drag and fill of formula can be omitted.
- The result should be as shown in the column on the right.
=IFERROR(FILTERXML("<a><b>"&IFERROR(SUBSTITUTE(C3:C987,MID(LEFT(C3:C987,FIND("]",C3:C987)),FIND("[",C3:C987),LEN(C3:C987)),""),C3:C987)&"</b></a>","//b"),"")
May I know how can I improve the formula? Or are there any better formula?