ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   remove dates is the middle of a line (https://www.excelbanter.com/excel-discussion-misc-queries/147113-remove-dates-middle-line.html)

jason2444

remove dates is the middle of a line
 
have a file full of lines like this Reg. Cab Long Bed 03-07 "Classic"

is there a way to remove the 03-07 from the middle of a line?

Toppers

remove dates is the middle of a line
 
If dates are all of the format of your example (yy-yy) then try:

=LEFT(A1,FIND("-",A1)-3) & MID(A1,FIND("-",A1)+3,255)

HTH

"jason2444" wrote:

have a file full of lines like this Reg. Cab Long Bed 03-07 "Classic"

is there a way to remove the 03-07 from the middle of a line?


Teethless mama

remove dates is the middle of a line
 
Try this:

=REPLACE(A1,FIND("-",A1)-3,6,"")


"jason2444" wrote:

have a file full of lines like this Reg. Cab Long Bed 03-07 "Classic"

is there a way to remove the 03-07 from the middle of a line?



All times are GMT +1. The time now is 07:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com