Forum Discussion
Moving last name into a different column and delete from the original
- Feb 28, 2023
If necessary, insert empty columns in columns B and C.
Enter the following formula in B2:
=TRIM(LEFT(SUBSTITUTE(A2, " ", REPT(" ", 255)),LEN(SUBSTITUTE(A2, " ", REPT(" ", 255)))-255))
And in C2:
=TRIM(RIGHT(SUBSTITUTE(A2, " ", REPT(" ", 255)),255))
Select B2 and C2, then fill down, for example by double-clicking the fill handle in the lower right corner of C2.
With the range still selected, copy it, then paste as values.
You can now delete column A if desired.
If necessary, insert empty columns in columns B and C.
Enter the following formula in B2:
=TRIM(LEFT(SUBSTITUTE(A2, " ", REPT(" ", 255)),LEN(SUBSTITUTE(A2, " ", REPT(" ", 255)))-255))
And in C2:
=TRIM(RIGHT(SUBSTITUTE(A2, " ", REPT(" ", 255)),255))
Select B2 and C2, then fill down, for example by double-clicking the fill handle in the lower right corner of C2.
With the range still selected, copy it, then paste as values.
You can now delete column A if desired.
- JCountrymanFeb 28, 2023Copper ContributorThat worked perfect! Thank You