+ Reply to Thread
Results 1 to 18 of 18

i need to remove the "zero"s from cell

  1. #1
    Registered User
    Join Date
    10-13-2016
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    82

    i need to remove the "zero"s from cell

    like these cells
    00012345-A
    0012345-A
    00000012345-A

    i think left/right function with len mybe can sovle it?
    but idk how to do it :D

    anyhelp ?

    thanks in advance
    Attached Files Attached Files
    Last edited by bkcffee; 03-16-2017 at 06:51 AM.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: i need to remove the "zero"s from cell

    Substitute function, maybe

    =SUBSTITUTE(D11, "0", "")

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: i need to remove the "zero"s from cell

    I assume your data start from A1, so try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    with Control+Shift+Enter

    cytop's solution is shorter, normal (non-array) so use it

  4. #4
    Registered User
    Join Date
    10-13-2016
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    82

    Re: i need to remove the "zero"s from cell

    thank you
    it worked perfectly !!

  5. #5
    Registered User
    Join Date
    10-13-2016
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    82

    Re: i need to remove the "zero"s from cell

    Quote Originally Posted by sandy666 View Post
    I assume your data start from A1, so try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    with Control+Shift+Enter

    cytop's solution is shorter, normal (non-array) so use it
    O.o
    wow... keep it simple man :P

    no my data start with zeros and end with -letter :x

  6. #6
    Registered User
    Join Date
    10-13-2016
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    82

    Re: i need to remove the "zero"s from cell

    oh no
    i had another preblem
    Substitute function removed all the zeros in the cell
    example
    000000590-A end up being like 59-A and it should be 590-A
    004104599-A 414599-A shold be 4104599-A

    i only need to remove the zeros in the begining !!

  7. #7
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: i need to remove the "zero"s from cell

    Slightly more complicated...

    =SUBSTITUTE(TRIM(SUBSTITUTE(D11,"0"," "))," ","0")

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: i need to remove the "zero"s from cell

    Use what you want
    with my formula result is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and this is simple smile3_e0.gif

    try with 000123000005670000-C
    Last edited by sandy666; 03-16-2017 at 05:56 AM.

  9. #9
    Registered User
    Join Date
    10-13-2016
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    82

    Re: i need to remove the "zero"s from cell

    im sorry
    i tried urs too
    but it gave me #value error :/

    i copy and past

    i'll try to put it in attachment

  10. #10
    Registered User
    Join Date
    10-13-2016
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    82

    Re: i need to remove the "zero"s from cell

    Quote Originally Posted by cytop View Post
    Substitute function, maybe

    =SUBSTITUTE(D11, "0", "")
    it gave me blank cells :x

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: i need to remove the "zero"s from cell

    Quote Originally Posted by bkcffee View Post
    im sorry
    i tried urs too
    but it gave me #value error :/

    i copy and past

    i'll try to put it in attachment
    I said like below

    Quote Originally Posted by sandy666 View Post
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    with Control+Shift+Enter

  12. #12
    Registered User
    Join Date
    10-13-2016
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    82

    Re: i need to remove the "zero"s from cell

    WTF !!!
    nvr used ctlr shift enter with formulas before

    and it worked
    it added {formula} :D

    thank you

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: i need to remove the "zero"s from cell

    If the basic problem is solved
    - it's always a good practice to show respect to the person(s) who have helped you
    - is a click on the Add Reputation first (left lower corner of the post of person(s) who helped you) and then
    - mark the thread as SOLVED (top right corner over your first post - Thread Tools). This is important for all of us,

    Thanks

  14. #14
    Forum Contributor
    Join Date
    02-14-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    128

    Re: i need to remove the "zero"s from cell

    bkcfee,

    =MID(A2,FIND(LEFT(SUBSTITUTE(A2&" ","0",""),1),A2),LEN(A2))
    Manikandan Arumugam
    Excel Learner

  15. #15
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: i need to remove the "zero"s from cell

    One way ...

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

  16. #16
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: i need to remove the "zero"s from cell

    and another
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 00012345-A 12345-A
    2 0012345-A 12345-A
    3 00000012345-A 12345-A
    4 000000590-A 590-A
    5 004104599-A 4104599-A
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  17. #17
    Registered User
    Join Date
    10-13-2016
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    82

    Re: i need to remove the "zero"s from cell

    Quote Originally Posted by AlKey View Post
    and another
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 00012345-A 12345-A
    2 0012345-A 12345-A
    3 00000012345-A 12345-A
    4 000000590-A 590-A
    5 004104599-A 4104599-A
    care to explain plz?
    keep in mind that my cells end up with -A -B etc....

  18. #18
    Registered User
    Join Date
    10-13-2016
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    82

    Re: i need to remove the "zero"s from cell

    Quote Originally Posted by Manikandan Arumugam View Post
    bkcfee,

    =MID(A2,FIND(LEFT(SUBSTITUTE(A2&" ","0",""),1),A2),LEN(A2))
    Quote Originally Posted by Phuocam View Post
    One way ...

    =--LEFT(A1,LEN(A1)-2)&RIGHT(A1,2)
    ty guys <3

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. "Add Row" and "Remove Row" Buttons... adding rows with formulas down filled
    By excelatnothing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2015, 02:44 AM
  3. Replace "_" with "." and remove Trailing Alpha (where and when applicable)
    By chacamasur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-24-2014, 02:22 PM
  4. Replies: 1
    Last Post: 08-10-2014, 01:22 PM
  5. [SOLVED] VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 02:11 PM
  6. [SOLVED] UDF to remove "equivalent" expressions from a ";" delimited string
    By dredwolf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2012, 07:25 PM
  7. Remove "TRUE" "FALSE" words from a linked checkbox
    By MDCK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2008, 03:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1