Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Copy only the digits from a cell

Hi group,
In a cell I have written first a text, then a space, and finally some digits
(between 3 and 5)

Is it possible, with the help of a formula or a macro, to copy only the
digits to a new cell?



Regards,

Kaj Pedersen


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy only the digits from a cell

does "a text" mean a single character, so that the numbers always start as
the third letter in the string
=Right(A1,len(a1)-2)

If not, you will need to use the find command to fine the space.

=RIGHT(A1,LEN(A1)-FIND(" ",A1))

--
Regards,
Tom Ogilvy



Kaj Pedersen wrote in message
...
Hi group,
In a cell I have written first a text, then a space, and finally some

digits
(between 3 and 5)

Is it possible, with the help of a formula or a macro, to copy only the
digits to a new cell?



Regards,

Kaj Pedersen




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Copy only the digits from a cell

Hi Tom,
The FIND command was exactly what I needed.
Thanks for your help.

Regards
Kaj Pedersen



"Tom Ogilvy" skrev i en meddelelse
...
does "a text" mean a single character, so that the numbers always start as
the third letter in the string
=Right(A1,len(a1)-2)

If not, you will need to use the find command to fine the space.

=RIGHT(A1,LEN(A1)-FIND(" ",A1))

--
Regards,
Tom Ogilvy



Kaj Pedersen wrote in message
...
Hi group,
In a cell I have written first a text, then a space, and finally some

digits
(between 3 and 5)

Is it possible, with the help of a formula or a macro, to copy only the
digits to a new cell?



Regards,

Kaj Pedersen






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA write macro change column with 3 number digits to 4 digits the James C[_2_] Excel Discussion (Misc queries) 3 January 25th 10 03:12 PM
Sort by even and odd digits and copy to separate worksheet K Drier[_2_] Excel Worksheet Functions 3 September 3rd 08 07:56 PM
Copy middle digits from one cell into another Sharon R Excel Worksheet Functions 7 January 3rd 07 11:35 PM
copy middle digits from one cell into another Sharon R Excel Discussion (Misc queries) 1 January 3rd 07 09:23 PM
copy, insert and add digits Ronco Bill Excel Worksheet Functions 1 February 3rd 06 08:20 PM


All times are GMT +1. The time now is 11:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"