+ Reply to Thread
Results 1 to 6 of 6

How to put space in between text

  1. #1
    Registered User
    Join Date
    05-22-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    47

    Question How to put space in between text

    I am trying to segregate a data in a cell that should be read as time (hh:mm am/pm).

    Data I'm getting from the system
    : 9:00AM
    Data that I need to convert in excel: 9:00 AM
    Last edited by Locust; 10-06-2021 at 09:49 AM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to put space in between text

    If the data source is in cell A1 try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and then format as time.
    Dave

  3. #3
    Registered User
    Join Date
    05-22-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: How to put space in between text

    How about if the data is 9:00AM how can I take it out considering there are a lot of time punches there beyond that time?
    Last edited by AliGW; 10-06-2021 at 09:50 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Registered User
    Join Date
    05-22-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: How to put space in between text

    Quote Originally Posted by FlameRetired View Post
    If the data source is in cell A1 try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and then format as time.
    I finally got it now I use this formula =IF(LEN(A1)<=6,REPLACE(A1,5,0," "),REPLACE(A1,6,0," "))

    tHANK YOU!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,278

    Re: How to put space in between text

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to put space in between text

    You are welcome. Glad to help. Thank you for the feedback and added rep.

+ 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] VBA - delete text b/w first and second space in a string of text - apply to selected range
    By mgerner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2018, 03:52 PM
  2. [SOLVED] Extra space or spaces in Text in Forum Post. BB Code for extra space ?
    By Doc.AElstein in forum The Water Cooler
    Replies: 21
    Last Post: 03-02-2016, 02:59 PM
  3. [SOLVED] Get text after 3rd space and text before 3rd space
    By smartbuyer in forum Excel General
    Replies: 5
    Last Post: 12-04-2015, 12:36 AM
  4. parsing text return space to space
    By dosmastr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2015, 12:09 AM
  5. [SOLVED] Remove Blanc Space, parse text, convert text to measurement
    By plans in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-25-2015, 07:50 PM
  6. Replies: 4
    Last Post: 07-25-2013, 05:28 AM
  7. Cell wrap text: Some cells have blank white space above text
    By stuckagain in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 06-09-2009, 06:47 AM

Tags for this Thread

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