Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
I have a column that lists project, sub-project, sub-project, area and would like the cells in this column to display only the area for a report I am creating. For example, cells in the column contain: /XYZ/ABCD/New Requests /XYZ/ABCD/Problems /XYZ/ABCD/Features But I only want the information beyond the last slash, for example: New Requests Problems Features Is there a function that will do this? Thank you, Tom |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Tommy
Try =MID(A1,FIND(" ",SUBSTITUTE(A1,"/"," ",3))+1,255) and copy down -- Regards Roger Govier "tommcbrny" wrote in message ... Hello, I have a column that lists project, sub-project, sub-project, area and would like the cells in this column to display only the area for a report I am creating. For example, cells in the column contain: /XYZ/ABCD/New Requests /XYZ/ABCD/Problems /XYZ/ABCD/Features But I only want the information beyond the last slash, for example: New Requests Problems Features Is there a function that will do this? Thank you, Tom |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Roger,
That almost worked. My examples didn't include spaces, however, and my real data does. When I enter the function you provided, it eliminates only the text befoe the first space. I tried playing with the function to account for the spaces, but I'm only making it worse. Here is a more accurate representation of the actual text in the column: /XY - Z/AB - CD/New Requests /XY - Z/AB - CD/Problems /XY - Z/AB - CD/Features So, space dash space between the "Y" and "Z", space dash space again between the "B" and "C". Can the function be adjusted to account for them? Thank you again, Tom "Roger Govier" wrote: Hi Tommy Try =MID(A1,FIND(" ",SUBSTITUTE(A1,"/"," ",3))+1,255) and copy down -- Regards Roger Govier "tommcbrny" wrote in message ... Hello, I have a column that lists project, sub-project, sub-project, area and would like the cells in this column to display only the area for a report I am creating. For example, cells in the column contain: /XYZ/ABCD/New Requests /XYZ/ABCD/Problems /XYZ/ABCD/Features But I only want the information beyond the last slash, for example: New Requests Problems Features Is there a function that will do this? Thank you, Tom |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Tommy
AS your data didn't have spaces, I substitutes the third slash with a space then searched for the space - hence the results you got. Let's use the caret character " ^ " instead of space, then you should be OK =MID(A1,FIND(" ",SUBSTITUTE(A1,"/","^",3))+1,255) -- Regards Roger Govier "tommcbrny" wrote in message ... Hi Roger, That almost worked. My examples didn't include spaces, however, and my real data does. When I enter the function you provided, it eliminates only the text befoe the first space. I tried playing with the function to account for the spaces, but I'm only making it worse. Here is a more accurate representation of the actual text in the column: /XY - Z/AB - CD/New Requests /XY - Z/AB - CD/Problems /XY - Z/AB - CD/Features So, space dash space between the "Y" and "Z", space dash space again between the "B" and "C". Can the function be adjusted to account for them? Thank you again, Tom "Roger Govier" wrote: Hi Tommy Try =MID(A1,FIND(" ",SUBSTITUTE(A1,"/"," ",3))+1,255) and copy down -- Regards Roger Govier "tommcbrny" wrote in message ... Hello, I have a column that lists project, sub-project, sub-project, area and would like the cells in this column to display only the area for a report I am creating. For example, cells in the column contain: /XYZ/ABCD/New Requests /XYZ/ABCD/Problems /XYZ/ABCD/Features But I only want the information beyond the last slash, for example: New Requests Problems Features Is there a function that will do this? Thank you, Tom |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I would copy the column then DataText to ColumnsDelimited by "/"
Then in third step pick the items to skip(do not import) and you would be left with what you want. Gord Dibben MS Excel MVP On Fri, 15 Dec 2006 08:23:00 -0800, tommcbrny wrote: Hello, I have a column that lists project, sub-project, sub-project, area and would like the cells in this column to display only the area for a report I am creating. For example, cells in the column contain: /XYZ/ABCD/New Requests /XYZ/ABCD/Problems /XYZ/ABCD/Features But I only want the information beyond the last slash, for example: New Requests Problems Features Is there a function that will do this? Thank you, Tom |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text entries behaving like numbers | Excel Discussion (Misc queries) | |||
Aligning Wraped Text to the bottom of a cell | Excel Discussion (Misc queries) | |||
Conversion to Text file format error | Excel Discussion (Misc queries) | |||
How change dimensions of data label text box in pie chart? | Charts and Charting in Excel | |||
Read Text File into Excel Using VBA | Excel Discussion (Misc queries) |