Hi,
I have a large dataset stored as string values in Column A. I need to extract the text that appears immediately after the second hyphen (-) and before the third hyphen (-).
Currently, I am using the following formula:
=MID(A2, FIND(CHAR(1), SUBSTITUTE(A2, "-", CHAR(1), 2)) + 1, FIND(CHAR(1), SUBSTITUTE(A2, "-", CHAR(1), 3)) - FIND(CHAR(1), SUBSTITUTE(A2, "-", CHAR(1), 2)) - 1)
However, this formula is lengthy, complicated, and not efficient for a large dataset.
I am using Excel 2021. Are there any simpler and more efficient formulas to achieve the same result?
I appreciate your usual support and assistance.
I have a large dataset stored as string values in Column A. I need to extract the text that appears immediately after the second hyphen (-) and before the third hyphen (-).
Currently, I am using the following formula:
=MID(A2, FIND(CHAR(1), SUBSTITUTE(A2, "-", CHAR(1), 2)) + 1, FIND(CHAR(1), SUBSTITUTE(A2, "-", CHAR(1), 3)) - FIND(CHAR(1), SUBSTITUTE(A2, "-", CHAR(1), 2)) - 1)
However, this formula is lengthy, complicated, and not efficient for a large dataset.
I am using Excel 2021. Are there any simpler and more efficient formulas to achieve the same result?
I appreciate your usual support and assistance.