Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Help finding the last space in a cell
I need to isolate all the characters in a cell prior to the last
space. Can anyone tell me how to find the the posistion of the last space in the cell? This is an example of my data: CompanyA Company B CompC The output I want from my formula is: CompanyA Company B CompC I'm trying use a LEFT formula knowing the position of the last space; but other suggestions are welcome. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Help finding the last space in a cell
Hi,
You can use the following array formula =LEFT(A1,MAX(IF(MID(A1,ROW(A1:A99),1)=" ",ROW(A1:A99),""))) This assumes that the entry is in B1. To enter an array press Shift+Ctrl+Enter -- If this helps, please click the Yes button Cheers, Shane Devenshire " wrote: I need to isolate all the characters in a cell prior to the last space. Can anyone tell me how to find the the posistion of the last space in the cell? This is an example of my data: CompanyA Company B CompC The output I want from my formula is: CompanyA Company B CompC I'm trying use a LEFT formula knowing the position of the last space; but other suggestions are welcome. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Finding (and eliminating) hidden "space" character | Excel Discussion (Misc queries) | |||
space before cell contents | Excel Worksheet Functions | |||
space before cell contents | Excel Worksheet Functions | |||
How to combind to cell with a <space | Excel Worksheet Functions | |||
space in cell | Excel Discussion (Misc queries) |