+ Reply to Thread
Results 1 to 5 of 5

Change numbers from an specific cell

  1. #1
    Registered User
    Join Date
    05-18-2020
    Location
    Porto
    MS-Off Ver
    Offiec 365
    Posts
    15

    Talking Change numbers from an specific cell

    Hello all,

    I need to modify one excel format number from an specific cell and write it in a different cell.
    For example, I have number 787122005 and need the following format in another cell.

    12_000_2005_000

    It would be, digits numbers 4,5 (12) following _000, then digit numbers 6,7,8,9 (2005) following for _000
    Can you help me with a formula to get this format?

    Thanks!!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Change numbers from an specific cell

    Try this in B2, assuming your original number is in cell A2:

    =MID(A2,4,2)&"_000_"&RIGHT(A2,4)&"_000"

    Hope this helps.

    Pete

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,135

    Re: Change numbers from an specific cell

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    05-18-2020
    Location
    Porto
    MS-Off Ver
    Offiec 365
    Posts
    15

    Re: Change numbers from an specific cell

    Yes, that worked
    Many thanks Pete

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Change numbers from an specific cell

    You're welcome.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. VBA to automatically change specific cell value to active cell in specific range
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2016, 04:53 PM
  2. Macro to change colour of cell based on finding a specific word in the cell
    By Shelby761 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2014, 09:46 AM
  3. Replies: 7
    Last Post: 02-27-2014, 10:56 PM
  4. [SOLVED] Conditional Formatting to change text in cell if other cell contains specific letter
    By RichTea88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2014, 06:47 AM
  5. [SOLVED] How to change numbers to negative numbers specific with a text
    By Patnaik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-11-2012, 07:22 AM
  6. [SOLVED] Worksheet change macro on a change in a specific cell
    By dzuspann in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2012, 04:19 PM
  7. Highlight a row if a specific cell is specific numbers/words
    By sea0221 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2005, 09:06 PM

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