Results 1 to 10 of 10

Insert comma to change data format

Threaded View

  1. #1
    Registered User
    Join Date
    08-23-2024
    Location
    North Carolina
    MS-Off Ver
    Microsoft 365
    Posts
    3

    Insert comma to change data format

    I'm very new to macros but I have a problem that's probably pretty easy for some of you on here. I have several spreadsheets with approximately 100 rows and columns each. Some of the columns are supposed to be formatted as dates but they are entered as text (ex, Jan 05 2023 8:24 AM). I can't sort as a date in this format and changing the format to "Date" doesn't work. I found that when I add a comma between the day and year (05 and 2023 in my example) the cell converts to date format.

    I think I need a macro to look for all cells in this format (3 text characters then a blank and 2 numbers) and insert a comma into the 7th position.

    Can somebody help me out or offer a simpler approach?

    Thanks in advance.

    Sample data.xlsx
    Last edited by ST8GUY; 08-23-2024 at 03:24 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Cannot change format of scientific value on Microsoft Excel Comma Separated Values File
    By saudi_red_neck in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-26-2022, 05:22 AM
  2. [SOLVED] Group & concatenate data in comma seperated format
    By aashishni in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-19-2018, 08:29 AM
  3. Replies: 9
    Last Post: 04-09-2018, 09:46 PM
  4. macro to format data label, and add comma and percentage
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2015, 05:37 AM
  5. Replies: 21
    Last Post: 02-03-2014, 02:43 PM
  6. [SOLVED] Macro to change data entered in a cell seperated by a comma, into a vertical list of data
    By jholly3 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-13-2012, 03:51 PM
  7. Replies: 0
    Last Post: 04-10-2006, 05:10 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