Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Only remove first digit if it is a "0"

Hello from Steve Dee

Please I would like to only remove first digit if it is a "0" In Col B:B.

Yes their are more digits in a row in Col B:B

Yes some have digit starting at "1" to "9" which I need to stay

Yes their is 1 Character only "X" which I need to stay

I thankyou
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Only remove first digit if it is a "0"

Hello from Steved

I looked at other answers to my query

=MID(B35,1,LEN(B35))

Thankyou.

ps Can the above be done in VBA please.



"Steved" wrote:

Hello from Steve Dee

Please I would like to only remove first digit if it is a "0" In Col B:B.

Yes their are more digits in a row in Col B:B

Yes some have digit starting at "1" to "9" which I need to stay

Yes their is 1 Character only "X" which I need to stay

I thankyou

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Only remove first digit if it is a "0"

Hello from Steved

Oops I forgot to check my column, the below does not remove the first "0"

=MID(B35,1,LEN(B35))

Thankyou.



"Steved" wrote:

Hello from Steved

I looked at other answers to my query

=MID(B35,1,LEN(B35))

Thankyou.

ps Can the above be done in VBA please.



"Steved" wrote:

Hello from Steve Dee

Please I would like to only remove first digit if it is a "0" In Col B:B.

Yes their are more digits in a row in Col B:B

Yes some have digit starting at "1" to "9" which I need to stay

Yes their is 1 Character only "X" which I need to stay

I thankyou

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Only remove first digit if it is a "0"

Assuming the "0" is actually part of the cell's value and not put there by
Cell Formatting, then try this formula...

=MID(B1,1+(LEFT(B1)="0"),99)

and copy it down as needed.

--
Rick (MVP - Excel)


"Steved" wrote in message
...
Hello from Steved

Oops I forgot to check my column, the below does not remove the first "0"

=MID(B35,1,LEN(B35))

Thankyou.



"Steved" wrote:

Hello from Steved

I looked at other answers to my query

=MID(B35,1,LEN(B35))

Thankyou.

ps Can the above be done in VBA please.



"Steved" wrote:

Hello from Steve Dee

Please I would like to only remove first digit if it is a "0" In Col
B:B.

Yes their are more digits in a row in Col B:B

Yes some have digit starting at "1" to "9" which I need to stay

Yes their is 1 Character only "X" which I need to stay

I thankyou


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Only remove first digit if it is a "0"

Hello Rick

I Thankyou

Steved

"Rick Rothstein" wrote:

Assuming the "0" is actually part of the cell's value and not put there by
Cell Formatting, then try this formula...

=MID(B1,1+(LEFT(B1)="0"),99)

and copy it down as needed.

--
Rick (MVP - Excel)


"Steved" wrote in message
...
Hello from Steved

Oops I forgot to check my column, the below does not remove the first "0"

=MID(B35,1,LEN(B35))

Thankyou.



"Steved" wrote:

Hello from Steved

I looked at other answers to my query

=MID(B35,1,LEN(B35))

Thankyou.

ps Can the above be done in VBA please.



"Steved" wrote:

Hello from Steve Dee

Please I would like to only remove first digit if it is a "0" In Col
B:B.

Yes their are more digits in a row in Col B:B

Yes some have digit starting at "1" to "9" which I need to stay

Yes their is 1 Character only "X" which I need to stay

I thankyou



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
=SUBSTITUTE(C4,"~?#","") will this work to remove multiple string Raja Mahendiran S Excel Worksheet Functions 6 May 12th 10 09:10 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
displays "####" when 1-digit number typed meanmommy Excel Discussion (Misc queries) 2 April 12th 08 06:40 PM
Mail Merge drops 1st digit ("0") converting from Excel to Word Chuck Martini Excel Discussion (Misc queries) 3 August 7th 06 10:34 PM
Microsoft Excel will not show a "zero" as the first digit spot. Girls Club Excel Discussion (Misc queries) 1 April 26th 06 05:13 PM


All times are GMT +1. The time now is 01:29 PM.

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"