Hello
I have a database to process and there are values on same cell (separate with / or | ) i need to split cell into name cell and surname cell
Please check file attach
Hello
I have a database to process and there are values on same cell (separate with / or | ) i need to split cell into name cell and surname cell
Please check file attach
Please try at B2
=TRIM(MID(SUBSTITUTE(TRIM(MID(SUBSTITUTE(SUBSTITUTE($A2,"/","|"),"|",REPT(" ",99)),CEILING(COLUMNS($B2:B2)/2,1)*99-98,99))," ",REPT(" ",99)),MOD(COLUMNS($B2:B2)-1,2)*99+1,99))
A little shorter, in B2 copied across and down:
=TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($A2," | "," ")," / "," ")," ",REPT(" ",99)),(99*COLUMNS($B2:B2))-98,99))
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks