Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I pull just the numeric characters in a cell?


Hi,

I have some cells that I want to pull just the numeric value so I can
do a Vlookup off the number. Example: 12345678DM. In the cell next
to it I would like to pull just the number while leaving the DM off. I
can't always promise that the amount of numbers will be 8 so I can't
just do a =left(A1,8) or something. Any ideas?

Thanks as always,

Eddie


--
punter


------------------------------------------------------------------------
punter's Profile: http://www.excelforum.com/member.php...fo&userid=2044
View this thread: http://www.excelforum.com/showthread...hreadid=567213

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default How do I pull just the numeric characters in a cell?

Try this:

=--LEFT(A1,LEN(A1)-2)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"punter" wrote in
message ...

Hi,

I have some cells that I want to pull just the numeric value so I can
do a Vlookup off the number. Example: 12345678DM. In the cell next
to it I would like to pull just the number while leaving the DM off. I
can't always promise that the amount of numbers will be 8 so I can't
just do a =left(A1,8) or something. Any ideas?

Thanks as always,

Eddie


--
punter


------------------------------------------------------------------------
punter's Profile:
http://www.excelforum.com/member.php...fo&userid=2044
View this thread: http://www.excelforum.com/showthread...hreadid=567213


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default How do I pull just the numeric characters in a cell?

you can still do the left if you know that there will always be 2
letters at the end:
=LEFT(F5,LEN(F5)-2)

Hope that helps

punter wrote:
Hi,

I have some cells that I want to pull just the numeric value so I can
do a Vlookup off the number. Example: 12345678DM. In the cell next
to it I would like to pull just the number while leaving the DM off. I
can't always promise that the amount of numbers will be 8 so I can't
just do a =left(A1,8) or something. Any ideas?

Thanks as always,

Eddie


--
punter


------------------------------------------------------------------------
punter's Profile: http://www.excelforum.com/member.php...fo&userid=2044
View this thread: http://www.excelforum.com/showthread...hreadid=567213


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I pull just the numeric characters in a cell?


punter Wrote:
Hi,

I have some cells that I want to pull just the numeric value so I can
do a Vlookup off the number. Example: 12345678DM. In the cell next
to it I would like to pull just the number while leaving the DM off. I
can't always promise that the amount of numbers will be 8 so I can't
just do a =left(A1,8) or something. Any ideas?

Thanks as always,

Eddie

Hi Eddie,

Try something like this,

=LEFT(A1,FIND("DM",A1)-1)*1

oldchippy :)


--
oldchippy
------------------------------------------------------------------------
oldchippy's Profile: http://www.excelforum.com/member.php...o&userid=19907
View this thread: http://www.excelforum.com/showthread...hreadid=567213

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I pull just the numeric characters in a cell?


Thanks everyone. They all work. You are the greatest.

Eddie.


--
punter


------------------------------------------------------------------------
punter's Profile: http://www.excelforum.com/member.php...fo&userid=2044
View this thread: http://www.excelforum.com/showthread...hreadid=567213

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
Automatically printing psted text over 250 characters to another cell Hobart007 Excel Worksheet Functions 1 July 14th 06 12:12 PM
Number of characters in a cell Braders999 Excel Discussion (Misc queries) 3 July 10th 06 02:39 PM
How can I pick up characters after the first 4 in Excel cell KKay Excel Discussion (Misc queries) 6 June 23rd 06 02:17 PM
Display text 1024 characters in a cell Martin Excel Worksheet Functions 6 November 12th 05 11:25 PM
if one cell has "X" textin contents, then pull cell "Y"... azazel Excel Worksheet Functions 3 October 24th 05 05:43 PM


All times are GMT +1. The time now is 08:28 AM.

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

About Us

"It's about Microsoft Excel"