Closed Thread
Results 1 to 2 of 2

help needed replacing parts of numbers with other numbers

  1. #1
    Registered User
    Join Date
    02-15-2018
    Location
    ontario, canada
    MS-Off Ver
    office 365
    Posts
    4

    help needed replacing parts of numbers with other numbers

    Hello there

    I am a total excel noob. Not sure if this is a Formula or a macro solution so I am going to post in both.

    I have column A with numbers like this and there are over 1000 of them
    004 0 10 13
    004 0 10 14
    004 0 10 15
    012 0 03 00
    012 0 03 01
    012 0 03 02
    012 0 03 03
    I would like to be able change the first set of numbers 004 to 056 and the 012 to 048
    Basically i have the following to change
    004 to 056
    012 to 048
    020 to 052
    024 to 044
    028 to 040

    I also need to change the next digit 0 to a 1 if the set of digits is 08 to 15 and then if the third set is 08 to 15 if would need to be changed to
    08 to 00
    09 to 01
    10 to 02
    11 to 03
    12 to 04
    13 to 05
    14 to 06
    15 to 07


    Here are a few examples
    004 0 01 01 needs to be changed to 056 0 01 01
    004 0 08 12 needs to be changed to 056 1 00 12

    Can this all be done with one formula or do I have to do this in stages or can it not even be done? I would like the original number to be in column A and the new number in column B.

    Any help would be greatly appreciated.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,064

    Re: help needed replacing parts of numbers with other numbers

    This thread is closed as a duplicate. Please do NOT open more than one thread per issue. Have a read through the forum rules before posting again, please.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 06-04-2015, 01:42 PM
  2. Replacing strings/ replacing numbers and letters
    By Insert Name in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2015, 01:15 PM
  3. [SOLVED] all possible formula needed to convert text numbers to numbers
    By JEAN1972 in forum Excel General
    Replies: 5
    Last Post: 07-21-2014, 01:20 PM
  4. Replies: 5
    Last Post: 01-18-2013, 11:21 AM
  5. [SOLVED] Replace parts of a cell (Numbers and letters)
    By nicdyb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-19-2012, 08:15 AM
  6. Replacing numbers with a new set of numbers
    By quikgun15 in forum Excel General
    Replies: 2
    Last Post: 07-17-2009, 10:51 AM
  7. Matching parts to model numbers
    By Craig wotdoo in forum Excel General
    Replies: 4
    Last Post: 05-12-2005, 01:06 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