I have various cells with different length words and names with numbers after them, eg John Jack 28',,,,, . I want to find the last LETTER used in cell and return everything before it so in this example just leave me with John Jack. Possible?
I have various cells with different length words and names with numbers after them, eg John Jack 28',,,,, . I want to find the last LETTER used in cell and return everything before it so in this example just leave me with John Jack. Possible?
Is there a a max number of words/names at the start?
Say thanks, click *
The names could be any length and any amount of words. Could be John Johnathan Joseeeeeeeee Jacko Macnkkkkkkkkkkkkkkkkkko for example! or even longer!
Try
=TRIM(LEFT(SUBSTITUTE(A1," ",REPT(" ",100)),LEN(SUBSTITUTE(A1," ",REPT(" ",100)))-100))
Life's a spreadsheet, Excel!
Say thanks, Click *
Doesn't do what I want ACE. I should mention there could be any amount of numbers after the name so it could be John Jack 28', 52', 55', 95',
Perhaps a macro like this would work for you?
Change range to suit your needs.Please Login or Register to view this content.
Alf
use array formula
{=LEFT(A1,MAX(IF(MID(A1,ROW(1:100),1)=" ",ROW(1:100))))}
hi there. if you want to find the last letter, shouldn't it be "k" from "John Jack 28'"? if you want everything before the numbers, try:
=TRIM(LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1))
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
Thanks guys. Works great!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks