Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Example:
Apple and Pear Oct 2,2006 Orange and Lime Oct 30,2006 Pear and Pineapple Oct 6, 2006 I want to remove the date at the end of each cell. Can someone help? Thank you. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=LEFT(A1,FIND("Oct",A1,1)-2) will remove the date for October data.
-- Gary's Student "Sweepea" wrote: Example: Apple and Pear Oct 2,2006 Orange and Lime Oct 30,2006 Pear and Pineapple Oct 6, 2006 I want to remove the date at the end of each cell. Can someone help? Thank you. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() One TOO simple way would be to have a helper column =left(a2,len(a2)-11) Leaves a space on the single digit but probably doesn't matter. -- Don Guillett SalesAid Software "Sweepea" wrote in message ... Example: Apple and Pear Oct 2,2006 Orange and Lime Oct 30,2006 Pear and Pineapple Oct 6, 2006 I want to remove the date at the end of each cell. Can someone help? Thank you. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Based on your samples the date appears after the 3rd space. If that's
consistent within your data: =LEFT(A1,FIND("~",SUBSTITUTE(A1," ","~",3))-1) Biff "Sweepea" wrote in message ... Example: Apple and Pear Oct 2,2006 Orange and Lime Oct 30,2006 Pear and Pineapple Oct 6, 2006 I want to remove the date at the end of each cell. Can someone help? Thank you. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try Edit, Replace, and in Find What type in Oct * Then click on Replace
or Replace All at the bottom. Carole O "Sweepea" wrote: Example: Apple and Pear Oct 2,2006 Orange and Lime Oct 30,2006 Pear and Pineapple Oct 6, 2006 I want to remove the date at the end of each cell. Can someone help? Thank you. |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you all for your help! It works! :-)
"Sweepea" wrote: Example: Apple and Pear Oct 2,2006 Orange and Lime Oct 30,2006 Pear and Pineapple Oct 6, 2006 I want to remove the date at the end of each cell. Can someone help? Thank you. |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
The archives want to know what you used
-- Don Guillett SalesAid Software "Sweepea" wrote in message ... Thank you all for your help! It works! :-) "Sweepea" wrote: Example: Apple and Pear Oct 2,2006 Orange and Lime Oct 30,2006 Pear and Pineapple Oct 6, 2006 I want to remove the date at the end of each cell. Can someone help? Thank you. |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
My previous posting will only remove Oct data. If the text has an aribtrary
number of words and the date is always the last three words in the cell then this little UDF will remove then: Function sweepea(s As String) As String ss = Split(s, " ") For i = 0 To UBound(ss) - 3 sweepea = sweepea & ss(i) & " " Next End Function -- Gary's Student "Sweepea" wrote: Example: Apple and Pear Oct 2,2006 Orange and Lime Oct 30,2006 Pear and Pineapple Oct 6, 2006 I want to remove the date at the end of each cell. Can someone help? Thank you. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
count specific text that occurs in a range of cells | Excel Discussion (Misc queries) | |||
count cells that begin with specific text | Excel Worksheet Functions | |||
how insert same text in empty cells in column (10000 rows) | Excel Worksheet Functions | |||
extract specific info from cells in a column | New Users to Excel | |||
creating a bar graph | Excel Discussion (Misc queries) |