+ Reply to Thread
Results 1 to 8 of 8

date format need to require in same format

  1. #1
    Registered User
    Join Date
    07-31-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    35

    date format need to require in same format

    dear all.
    need to change all the date in same format. i am trying with change the format but it is not taking.

    pl suggest any way for convert into same format.

    sample sheet attached
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: date format need to require in same format

    First make the format of date as date mm/dd/yyyy hh:mm and then use this macro to convert every
    cell to your desire format
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Kamboj
    _________________________________________________________________________________
    Mark the thread as SOLVED if my answer satisfy you.

  3. #3
    Registered User
    Join Date
    07-31-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    35

    Re: date format need to require in same format

    hi thanks for reply

    there may be some sintex error in macro so it is not running.

    pl check again and suggest

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: date format need to require in same format

    Hi,

    This can be done using formula.

    In A2 you have 09/08/2015, is it '9th Aug 2015' or '8th Sep 2015' ?

  5. #5
    Registered User
    Join Date
    07-31-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    35

    Re: date format need to require in same format

    hi,

    it is 9th aug 2015

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: date format need to require in same format

    Hi,

    Try the following formula in C2:

    =IFERROR(A2*1,DATE(MID(A2,FIND("/",A2)+4,4),LEFT(A2,FIND("/",A2)-1),MID(A2,FIND("/",A2)+1,2))+1*RIGHT(A2,LEN(A2)-FIND(" ",A2)))

    See the attached file.
    Attached Files Attached Files

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: date format need to require in same format

    C2=B2-IF(ISNUMBER(A2),A2,(MID(A2,FIND("/",A2,4)-2,3)&REPLACE(A2,FIND("/",A2,4)-2,3,))+0)
    Please Login or Register  to view this content.
    Try this and copy towards down
    Last edited by samba_ravi; 10-06-2015 at 06:32 AM.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: date format need to require in same format

    First select col a and then right click and select format Cells
    Under Number Choose the category Custom and then under type write ->
    Please Login or Register  to view this content.
    <-
    and press ok
    after that run this macro
    Please Login or Register  to view this content.

+ 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. Converting from the 1904 date format to the 1900 date format without losing data
    By Patty McJorst in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-01-2020, 12:53 PM
  2. Help require to change a year format to custom yyyy-yyyy format
    By mso3 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-23-2015, 01:04 AM
  3. [SOLVED] Help require to get date in dd mm yyyy format in mail merge letter
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2015, 09:57 AM
  4. Replies: 17
    Last Post: 10-14-2014, 08:21 AM
  5. [SOLVED] Require vba or formula for convert general format data in date format
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2013, 03:53 AM
  6. [SOLVED] Macro to convert require date format
    By rvkadu1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2013, 07:08 AM
  7. Replies: 5
    Last Post: 02-08-2013, 11:06 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