• sort by dates with inconsistant format (Outlook 2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » sort by dates with inconsistant format (Outlook 2000)

    Author
    Topic
    #412652

    I need to make an document listing items by date and I need to be able to sort by date. The problem I am running into is the dates of the items are inconsistent. One item may have a date such as 11/20/2004, the next only the year. Is there a way to enter items that don’t have the dd/mm/yy or dd/mm/yyyy format and have them all sort? Thanks

    Viewing 1 reply thread
    Author
    Replies
    • #904207

      You can add a calculated column that contains real dates, and sort on that. For example, assuming all dates are in 1930 or later, enter this formula in C2:

      =IF(A2>DATE(1930,1,1),A2,DATE(A2,1,1))

      and fill down as far as necessary. Sort on column C. See attached version.

      • #904409

        I see what you mean but that assigns a month and date and we can’t have that. These are publication dates. One might be an article published on a certain date, another could be an annual report that’s only date is the year and we need to show it that way. I tried replacing the 1s in the formulas with 0 but it didn’t work. Any other suggestions? Thanks

        • #904415

          You could keep the original column for display purposes and use the calculated column only for sorting.

          If that is not what you want, you will have to explain what you do want.

          • #904417

            That could do the trick. Thank you your prompt responses. I appreciate all the help on get from folks here in the Lounge!

          • #904418

            That could do the trick. Thank you your prompt responses. I appreciate all the help on get from folks here in the Lounge!

        • #904416

          You could keep the original column for display purposes and use the calculated column only for sorting.

          If that is not what you want, you will have to explain what you do want.

      • #904410

        I see what you mean but that assigns a month and date and we can’t have that. These are publication dates. One might be an article published on a certain date, another could be an annual report that’s only date is the year and we need to show it that way. I tried replacing the 1s in the formulas with 0 but it didn’t work. Any other suggestions? Thanks

    • #904208

      You can add a calculated column that contains real dates, and sort on that. For example, assuming all dates are in 1930 or later, enter this formula in C2:

      =IF(A2>DATE(1930,1,1),A2,DATE(A2,1,1))

      and fill down as far as necessary. Sort on column C. See attached version.

    Viewing 1 reply thread
    Reply To: sort by dates with inconsistant format (Outlook 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: