Can someone give me a formula to delete last word in a column? Thanks roger901
R roger_home Feb 16, 2005 #1 Can someone give me a formula to delete last word in a column? Thanks roger901
J Jason Morin Feb 16, 2005 #2 One way: =RIGHT(A1,MATCH(" ",MID(A1,LEN(A1)+1-ROW(INDIRECT("1:"&LEN (A1))),1),0)-1) Array-entered (press ctrl + shift + enter). HTH Jason Atlanta, GA
One way: =RIGHT(A1,MATCH(" ",MID(A1,LEN(A1)+1-ROW(INDIRECT("1:"&LEN (A1))),1),0)-1) Array-entered (press ctrl + shift + enter). HTH Jason Atlanta, GA
S swatsp0p Feb 16, 2005 #3 Do you have a column of mixed numeric and text entries and you want to delete the last text entry? What if the last text entry is more than one word, delete only the last word or the entire entry? This will probably require VB code to accomplish. More details, please....
Do you have a column of mixed numeric and text entries and you want to delete the last text entry? What if the last text entry is more than one word, delete only the last word or the entire entry? This will probably require VB code to accomplish. More details, please....
J Jason Morin Feb 16, 2005 #4 Sorry, I wasn't paying attention. The formula will extract the last word. Use this instead: =LEFT(A1,LEN(A1)-MATCH(" ",MID(A1,LEN(A1)+1-ROW(INDIRECT ("1:"&LEN(A1))),1),0)) Also array-entered. Jason
Sorry, I wasn't paying attention. The formula will extract the last word. Use this instead: =LEFT(A1,LEN(A1)-MATCH(" ",MID(A1,LEN(A1)+1-ROW(INDIRECT ("1:"&LEN(A1))),1),0)) Also array-entered. Jason