+ Reply to Thread
Results 1 to 5 of 5

restructure text format

  1. #1
    Registered User
    Join Date
    02-29-2020
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    87

    restructure text format

    Hi,

    Restructure format.png

    Column A is the original text and i want to convert it like in Column C.

    In order to do that I need to
    1) remove wording "NO", for example in cell A2, A3 and A4
    2) If the number is single digit then will add "0" to become at least 2 digit number. For example if the number is 1 then will become 01 and A9 will become A09.

    Thank you.
    Attached Files Attached Files
    Last edited by babychai; 07-29-2020 at 12:27 PM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: restructure text format

    Here is a crazy long formula and most likely there are better solutions:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click the * to say thanks.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,112

    Re: restructure text format

    Another option
    =IF(LEFT(A2,2)="NO",TEXT(SUBSTITUTE(A2,"NO",""),"00"),IF(LEN(A2)=2,REPLACE(A2,2,0,0),A2))

  4. #4
    Registered User
    Join Date
    02-29-2020
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    87

    Re: restructure text format

    Hi,

    PaulM100, yeah the formula is long but still worth to understand it as well. might useful in my future work.
    Fluff13, this formula is short and sweet. no doubt this formula give me the expected result.

    Thanks both. really appreciate your help

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,112

    Re: restructure text format

    You're welcome & thanks for the feedback.

+ 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. [SOLVED] about restructure repeated measure data into long format from wide format
    By sohel_for in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-18-2015, 01:10 AM
  2. Need to restructure data layout.
    By mheinemann in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-05-2015, 10:32 AM
  3. Dataset reshape- restructure.
    By Marvin85 in forum Excel General
    Replies: 1
    Last Post: 02-12-2015, 05:28 PM
  4. Restructure data into columns
    By refuelled in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2013, 08:18 AM
  5. formula to restructure data
    By Shinerttu in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-13-2011, 07:50 PM
  6. Restructure a if statement
    By Danny William in forum Excel General
    Replies: 5
    Last Post: 07-08-2008, 03:25 AM
  7. Restructure text order
    By Edward in forum Excel General
    Replies: 2
    Last Post: 04-25-2006, 04:50 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