+ Reply to Thread
Results 1 to 5 of 5

dd/mm in numeric format without respect to yyyyy

  1. #1
    Registered User
    Join Date
    07-09-2022
    Location
    Slovenia
    MS-Off Ver
    Prof.Plus 2016
    Posts
    2

    dd/mm in numeric format without respect to yyyyy

    I have a long list of flowering time records (format date: dd/mm/yyyy) of a given botanic species. Time span of the records is over 30 years long. To treat this data statistically (computing average flowering time, SD, min, max, etc.) I need dd/mm (without respect of the yyyy) in numerical format - as numbers (like all records would be made in 1900 for example). How can I do this?
    Sincerely
    Amadej

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,761

    Re: dd/mm in numeric format without respect to yyyyy

    If you need it displayed in that format then use a custom format of "dd/mm"

    If you need text in that format then you need to add another column and use the formula =TEXT(A1,"dd/mm")

    Note that original date in the example below is U.S. format.

    date.jpg
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,463

    Re: dd/mm in numeric format without respect to yyyyy

    I am guessing that you do not want to destroy your original data, so I would suggest creating the modified dates in another column using a formula similar to this...

    =DATE(1900,MONTH(A2),DAY(A2))

    I am not sure what you meant by needing dd/mm in numerical format, but you can control the display using cell formatting. Either format it as "General" to see the underlying date serial number or "dd/mm" to see in that format instead.

  4. #4
    Registered User
    Join Date
    07-09-2022
    Location
    Slovenia
    MS-Off Ver
    Prof.Plus 2016
    Posts
    2

    Smile Re: dd/mm in numeric format without respect to yyyyy

    Great! Thanks to both. Rick's formula calculates exactly what I wanted (however, after replacing commas with semicolons). It transposes flowering dates in any year onto the year 1900. These data can be further manipulated by statistical formulas. The display format is irrelevant.
    Amadej

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,761

    Re: dd/mm in numeric format without respect to yyyyy

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking addreputationiconsmall.jpg below their name.

+ 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] Cell Validation specific Alpha Numeric format returns false if in wrong format
    By Ratso in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-12-2019, 10:05 AM
  2. Returned values from UDFs don't respect the format style of the cell
    By gordonbe in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-14-2018, 10:23 AM
  3. [SOLVED] Convert Dates from Apr 11, 2018 format to numeric format MM/DD/YYYY
    By worswick25 in forum Excel General
    Replies: 16
    Last Post: 04-17-2018, 06:38 AM
  4. Determine if Cell Format is M/D/YYYY and Change to Numeric Value in YYYYMMDD Format
    By bryanmarks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2017, 06:16 PM
  5. date issue mm/dd/yyyy and dd/mm/yyyyy
    By hattrick_123a in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2011, 10:16 PM
  6. sort dates by dd/mm/yyyyy
    By Summer_Girl in forum Excel General
    Replies: 2
    Last Post: 05-08-2006, 10:25 PM
  7. [SOLVED] Change number (in text format) to numeric format
    By Pam in forum Excel General
    Replies: 5
    Last Post: 10-24-2005, 03:05 PM

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