Peter Davison
Active Member
- Joined
- Jun 4, 2020
- Messages
- 437
- Office Version
- 365
- Platform
- Windows
I have the following excel cell formula
=IFERROR(MID($A14,IF(COLUMN()=2,1,SUMPRODUCT(LEN(A14:$B14))+COLUMN(A14)),FIND($B$3,RIGHT($A14,LEN($A14)-IFERROR(FIND($B$3,$A14,IF(COLUMN()=2,1,SUMPRODUCT(LEN(A14:$B14))+COLUMN(A14))-1),0))&$B$3)-1),"")
It looks at Cell B3 to determine the delimiter (e.g. a comma ,)
As my original data may have both a comma , or a dash (or maybe something different but lets say 2 for now) - is there a way of changing the formula above to look at two cells with different delimiters and then split accordingly? (e.g. Cells B3 and C3)
Thanks for your help
=IFERROR(MID($A14,IF(COLUMN()=2,1,SUMPRODUCT(LEN(A14:$B14))+COLUMN(A14)),FIND($B$3,RIGHT($A14,LEN($A14)-IFERROR(FIND($B$3,$A14,IF(COLUMN()=2,1,SUMPRODUCT(LEN(A14:$B14))+COLUMN(A14))-1),0))&$B$3)-1),"")
It looks at Cell B3 to determine the delimiter (e.g. a comma ,)
As my original data may have both a comma , or a dash (or maybe something different but lets say 2 for now) - is there a way of changing the formula above to look at two cells with different delimiters and then split accordingly? (e.g. Cells B3 and C3)
Thanks for your help