+ Reply to Thread
Results 1 to 6 of 6

find and edit data from list

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    220

    find and edit data from list

    hi guys

    I am desperate for something that will do the following:

    I have a list on part numbers i.e 00111222
    Some of them start with 00 some of them dont. What I need to do is find all of the ones that have 00 at the start and edit them. they need to have the first 0 removed and a . put two characters in. so the part number above would become 01.11222.
    Any ideas?

    Thanks

  2. #2
    Registered User Chappo's Avatar
    Join Date
    09-04-2006
    Posts
    33

    Re: find and edit data from list

    try this in an adjacent column
    =IF(LEFT(A1,2)="00",MID(A1,2,2)&"."&MID(A1,4,LEN(A1)-1),A1)
    "There has never been reported stomach aches or related medical trauma that takes place after swallowing your pride.
    "
    - Daisuke Aramaki

  3. #3
    Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    220

    Re: find and edit data from list

    Hi,

    thanks for the reply.

    my boss has now changed his mind on what he wants

    i now need it to remove any 000s at the start of the number and put the . two characters in. i.e. 00012345 would change to 12.345 and 0123654 would change to 12.3654.

    Any ideas?

  4. #4
    Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    220

    Re: find and edit data from list

    bump bump bump

  5. #5
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Re: find and edit data from list

    Code:
    =IF(LEFT(A1,1)="0",MID(A1,1,2)&"."&MID(A1,3,LEN(A1)-1),A1)
    =IF(LEFT(A1,2)="00",MID(A1,2,2)&"."&MID(A1,4,LEN(A1)-1),A1)
    =IF(LEFT(A1,3)="000",MID(A1,3,2)&"."&MID(A1,5,LEN(A1)-1),A1)
    Try this code.
    Not sure whether you meant this.

  6. #6
    Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    220

    Re: find and edit data from list

    hey, thanks for the reply

    this isnt quite it.

    That formula adds the . two characters in but doesnt remove the 000s at the start.

    It needs to remove any 0 characters at the start of the product code, then add a . two characters in.

    so 0011122 would change to 11.122

+ 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