Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have copied hundreds of .jpg file names, using DOS, to copy them into a
listing within a worksheet. As a substantial amount are numeric with a file extension I would like to split the cells to remove file extension to give me a numeric result. i.e. "123.jpg" into a numeric "123" or "Many files.jpg" into "Many files" The file names are variable in size and are either numeric or just characters Thank you |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try
=LEFT(A1,LEN(A1)-4) Mike "Problem poser" wrote: I have copied hundreds of .jpg file names, using DOS, to copy them into a listing within a worksheet. As a substantial amount are numeric with a file extension I would like to split the cells to remove file extension to give me a numeric result. i.e. "123.jpg" into a numeric "123" or "Many files.jpg" into "Many files" The file names are variable in size and are either numeric or just characters Thank you |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
try this
=SUBSTITUTE(A1,".jpg","") or Select the column Go to Data | text column | delimited | next | choose other option : put an dot | next select the jpg column in data preview | choose do not import (skip) option | finish | On Jan 17, 12:10*am, Problem poser <Problem wrote: I have copied hundreds of .jpg file names, using DOS, to copy them into a listing within a worksheet. As a substantial amount are numeric with a file extension I would like to split the cells to remove file extension to give me a numeric result. i.e. "123.jpg" into a numeric "123" or "Many files.jpg" into "Many files" The file names are variable in size and are either numeric or just characters Thank you |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Since there are different lengths, I would use Ctrl+H
replace: .jpg with: (leave this blank) Replace All "Problem poser" wrote: I have copied hundreds of .jpg file names, using DOS, to copy them into a listing within a worksheet. As a substantial amount are numeric with a file extension I would like to split the cells to remove file extension to give me a numeric result. i.e. "123.jpg" into a numeric "123" or "Many files.jpg" into "Many files" The file names are variable in size and are either numeric or just characters Thank you |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you Angela, Mike and Muddan
This is the first time that I have used this discussion group All answers work and "I am impressed"with the time to respond. Thank you again Michael |
#6
![]() |
|||
|
|||
![]()
To remove the last 4 characters within a cell:
If you want to remove the file extension from the cell(s) as well:
__________________
I am not human. I am an Excel Wizard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to remove characters in a cell that precede a specific hyphen | Excel Discussion (Misc queries) | |||
Macro to remove last 4 characters from the contents of a cell. | New Users to Excel | |||
Remove Characters from a cell | Excel Worksheet Functions | |||
remove non-numeric characters from a cell | Excel Discussion (Misc queries) | |||
remove last three characters of cell | Excel Discussion (Misc queries) |