+ Reply to Thread
Results 1 to 5 of 5

first 0

Hybrid View

  1. #1
    delmac
    Guest

    first 0

    Hi all ihave a column of numbers like
    00022230013A
    00111110007A
    00044440132A and I need to find the first 0 from the right in each number,
    can anyone please help. Ta.
    --
    delmac

  2. #2
    Bob Phillips
    Guest

    Re: first 0

    Do you mean find its position in the string?

    =FIND("~",SUBSTITUTE(A1,"0","~",LEN(A1)-LEN(SUBSTITUTE(A1,"0",""))))

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "delmac" <delmac@discussions.microsoft.com> wrote in message
    news:2240335F-00C1-47C5-94A6-95EB952044C0@microsoft.com...
    > Hi all ihave a column of numbers like
    > 00022230013A
    > 00111110007A
    > 00044440132A and I need to find the first 0 from the right in each number,
    > can anyone please help. Ta.
    > --
    > delmac




  3. #3
    Niek Otten
    Guest

    Re: first 0

    =FIND("#",SUBSTITUTE(A1,0,"#",LEN(A1)-LEN(SUBSTITUTE(A1,0,""))))

    --
    Kind regards,

    Niek Otten
    Microsoft MVP - Excel

    "delmac" <delmac@discussions.microsoft.com> wrote in message news:2240335F-00C1-47C5-94A6-95EB952044C0@microsoft.com...
    | Hi all ihave a column of numbers like
    | 00022230013A
    | 00111110007A
    | 00044440132A and I need to find the first 0 from the right in each number,
    | can anyone please help. Ta.
    | --
    | delmac



  4. #4
    Charlie
    Guest

    RE: first 0

    to find the position using VB:

    Dim iPos As Long
    Dim MyString As String
    iPos = InStrRev(MyString, "0")


    "delmac" wrote:

    > Hi all ihave a column of numbers like
    > 00022230013A
    > 00111110007A
    > 00044440132A and I need to find the first 0 from the right in each number,
    > can anyone please help. Ta.
    > --
    > delmac


  5. #5
    delmac
    Guest

    RE: first 0

    tried this and got nothing Charlie, thanks though.
    --
    delmac


    "Charlie" wrote:

    > to find the position using VB:
    >
    > Dim iPos As Long
    > Dim MyString As String
    > iPos = InStrRev(MyString, "0")
    >
    >
    > "delmac" wrote:
    >
    > > Hi all ihave a column of numbers like
    > > 00022230013A
    > > 00111110007A
    > > 00044440132A and I need to find the first 0 from the right in each number,
    > > can anyone please help. Ta.
    > > --
    > > delmac


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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