+ Reply to Thread
Results 1 to 4 of 4

Macro to add space to single digit

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    zurich
    MS-Off Ver
    Excel 2010
    Posts
    99

    Macro to add space to single digit

    Hello everyone

    In the attached excel spreadsheet, I want a macro which add one extra space when encounter single digit with the symbol like below
    i.e. for (4 日) -->output should be (4 日)
    for (8 日) -->output should be (8 日)


    I don't want to add spaces when two or more digits are there. i.e. No change for symbol like (14 日)

    Advance thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro to add space to single digit

    I don't see any change in your examples, attach please a file with current data and desired result
    Last edited by patel45; 12-11-2013 at 03:46 PM.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    zurich
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Macro to add space to single digit

    Its already there in the attached sheet with red font.

    rowno 5 [01-JUL-2013~(2日)]--------> output should be 01-JUL-2013~(2 日)
    rowno 6 : [01-JUL-2013~10-JUL-2013(10 日); ~( 日); 24-JUL-2013~27-JUL-2013(4 日); 24-JUL-2013~(7 日)] ---> output should be
    01-JUL-2013~10-JUL-2013(10 日); ~( 日); 24-JUL-2013~27-JUL-2013(4 日); 24-JUL-2013~(7 日)
    rowno10: 01-JUL-2013~(2 日) --------> output should be 01-JUL-2013~(2 日)

    same for row with red color

  4. #4
    Registered User
    Join Date
    03-07-2013
    Location
    zurich
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Macro to add space to single digit

    can anyone help me to add only one space if single digit appears in bracket followed by 日

+ 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] Color a single digit in a mult-digit number cell
    By Phyllis in forum Excel General
    Replies: 8
    Last Post: 09-30-2022, 04:22 PM
  2. [SOLVED] How to subtract single cells with double digits into a single digit of a single cell.
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-11-2021, 02:05 AM
  3. Space after every 4th Number in a 16 digit Character Set
    By Flipback in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2014, 01:20 AM
  4. Replies: 7
    Last Post: 05-16-2013, 03:32 PM
  5. replace double space with single space within a range
    By erikd80 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-05-2011, 01:20 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