+ Reply to Thread
Results 1 to 6 of 6

Issue in the date format in attached spreadsheet

  1. #1
    Registered User
    Join Date
    12-22-2012
    Location
    Basel
    MS-Off Ver
    Excel 2007
    Posts
    24

    Issue in the date format in attached spreadsheet

    Hello fnds,

    In the attached excel sheet, how can I set the parameter so that date for a particular month will be displayed cumulatively.

    If you have a look on the date for the month Decemeber in the spreadsheet which was retrieved from database, then available dates are 21/12/2012 11:58:35, 14/12/2012 10:28:29, 19/12/2012 8:54:46.



    But when I select the month "Dec" through filter, only the date '7' is displayed (but not 21/12,14/12 and 19/12). Can I use any function so that all the dates will be populated under a particular month.

    Advance Thanks..
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Issue in the date format in attached spreadsheet

    A lot of your dates are actually text values which just look like dates and times. You can put this formula in B2:

    =A2*1

    and copy this down, to convert them all to Excel date/times, then your filter (on column B) will work properly.

    Hope this helps.

    Pete

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Issue in the date format in attached spreadsheet

    put in b2 =TEXT(A2,"mmm") fill down ,now use that column for the filter (note when i opened it they all seem to be real dates with a time only formatted differently)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    09-07-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Issue in the date format in attached spreadsheet

    In your worksheet, the date getting entered in dd-mmm-yyyy format for 7th December and for others in a long format of dd/mm/yyyy hh:mm:ss.

    You need to make date in similar format in same column or in next column and then try filter. I hope this would do as per your requirement.

    Tks.

    ---------------------------------------------------------------------------------------------------------
    if my answer had helped you do not forget to click the * below and mark the thread as [solved]

  5. #5
    Registered User
    Join Date
    12-22-2012
    Location
    Basel
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Issue in the date format in attached spreadsheet

    Thanks all for your feedback but I m not getting final solution.
    In the spreadsheet, other data columns are also present along with this date column while retrieved from database.
    so the text function will not work becoz it filter only month, not date and year.

    Is there any option available where date will be populated for partiular month as above.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Issue in the date format in attached spreadsheet

    Another approach is to enter 1 in a blank cell somewhere (let's say X1). Then select X1 and click <copy>, then move the cursor and highlight all the cells in column A which contain those dates, then right-click and choose Paste Special from the drop-down. Then in the dialogue box click against Values, and against Multiply, then click OK and then press the <Esc> key.

    Then you should be able to apply the filter to the cells in column A - you can delete the 1 from cell X1 (or whichever cell you have used).

    Hope this helps.

    Pete

+ 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