+ Reply to Thread
Results 1 to 5 of 5

auto row format general/date to text. Is there a function?

  1. #1
    Registered User
    Join Date
    06-16-2010
    Location
    Newark, New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    3

    auto row format general/date to text. Is there a function?

    Hi all,
    I'm very very new to programming concepts so bare with me.

    I have a column of dates(100+ sometimes). I make a copy of the column so I know what the dates are.
    Then, I select the entire column, right-click and go to format cells. Then I convert the entire column to text format. Some of the dates gets converted to datevalue number. I go back and manually type in the dates from the original copy(cell by cell). This is very tedious/time consuming and plain ol boring.

    Couple of points to consider is:
    I need is the row has to be in text format.
    I can't use "custom format" for the cell like dd-mm-yyyy
    I can't change the regional settings to UK in control panel.
    I can't have slashes eg. dd/mm/yyyy it won't work
    The dates should display as dd-mm-yyyy again in text format.

    It's a peculiar situation since i'm transfering this file to another program and that programs accepts this crazy format.

    Is there a way to automate this process??

    Thanks much...
    Attached Images Attached Images
    Last edited by Mitul; 06-21-2010 at 09:43 AM.

  2. #2
    Registered User
    Join Date
    06-16-2010
    Location
    Newark, New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: auto row format general/date to text. Is there a function?

    I will bump this thread once I guess

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: auto row format general/date to text. Is there a function?

    Hi Mitul

    Converting dates to text has always given me problems. This is a convoluted method I've used in the past. I'm certain there's a more direct approach but I've not figured it out.
    Please Login or Register  to view this content.
    Hope this helps.

    John
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: auto row format general/date to text. Is there a function?

    Another way would be to leave your cells as custom-formatted dates until you're ready to publish, then select the range of interest and run this:
    Please Login or Register  to view this content.
    Last edited by shg; 06-20-2010 at 12:29 PM.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    06-16-2010
    Location
    Newark, New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: auto row format general/date to text. Is there a function?

    Thanks for all the help.. I thought it would as easy as simple formulas and functions that you can just drag down. But the hole goes even deeper lol...

    The code does work and that gives me hope. I have much reading to do. Thank you again.

    -Mitul
    Last edited by Mitul; 06-20-2010 at 12:42 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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