Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DBLWizard
 
Posts: n/a
Default Remove leading Numbers from text

Howdy All,

I am trying figure out a way to remove the front portions of a cell if
the cell starts with numbers. If it doesn't I just want to copy the
text.

I have the function to remove the numbers(well actually up to the first
space) but it works for what I want.

=TRIM(MID(C2,FIND(" ",C2),LEN(C2)-FIND(" ",C2)))

But I can't figure out a way to do this without using VBScript and the
client doesn't want that enabled in the files.

Is there any function in Excel that will tell you if a character is
numeric or not? If so then I could do it with an inline IF statement
but I haven't been able to find one.

Thanks

dbl

  #2   Report Post  
DBLWizard
 
Posts: n/a
Default

I forgot to include a sample of the text. Here is what 2 different
rows would look like:

3.1.2(a) Does the INFOSEC policy have an owner who is responsible for
reviewing it according to a defined review process & updating it as
needed?

How often are reviews of the policy's effectiveness conducted? (based
on the nature, number & impact of recorded security events)

I want to truncate off the 3.1.2(a) in the first one and leave the
second alone.

thanks

dbl

  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

Try:

=IF(ISNUMBER(LEFT(A1)*1),MID(A1,FIND(" ",A1)+1,1024),A1)

HTH
Jason
Atlanta, GA

-----Original Message-----
Howdy All,

I am trying figure out a way to remove the front

portions of a cell if
the cell starts with numbers. If it doesn't I just want

to copy the
text.

I have the function to remove the numbers(well actually

up to the first
space) but it works for what I want.

=TRIM(MID(C2,FIND(" ",C2),LEN(C2)-FIND(" ",C2)))

But I can't figure out a way to do this without using

VBScript and the
client doesn't want that enabled in the files.

Is there any function in Excel that will tell you if a

character is
numeric or not? If so then I could do it with an inline

IF statement
but I haven't been able to find one.

Thanks

dbl

.

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
How to convert Excel imported numbers from text to numbers? Alden Excel Discussion (Misc queries) 9 April 1st 05 09:51 PM
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM
roundoff when converting text to numbers Jack Excel Worksheet Functions 3 January 30th 05 01:51 AM
Sorting when some numbers have a text suffix confused on the tundra Excel Discussion (Misc queries) 5 December 18th 04 10:19 PM
numbers and text in Excel to read as text keeping the leading zer. Ralph Excel Discussion (Misc queries) 2 December 10th 04 07:05 PM


All times are GMT +1. The time now is 12:17 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"