This will sort out the ones where there is no space and, by implication, no trailing number:
=IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=0,"",SUBSTITUTE(A1," ",",",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))
Regards
This will sort out the ones where there is no space and, by implication, no trailing number:
=IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=0,"",SUBSTITUTE(A1," ",",",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))
Regards
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks