+ Reply to Thread
Results 1 to 9 of 9

Date field and checking the Date portion of the date field not the time

  1. #1
    Registered User
    Join Date
    02-04-2021
    Location
    Australlia
    MS-Off Ver
    365
    Posts
    48

    Red face Date field and checking the Date portion of the date field not the time

    If my date fields are in G column and i want to count how many of them match the date part of the field say 15/02/22 ( Put into CELL C2 ) how do i do the COUNT formula?
    would that be ?
    =COUNTIF(G1:G9999, ?????)

    Thanks
    Attached Files Attached Files
    Last edited by badmullah; 02-15-2022 at 10:31 PM. Reason: add attachments

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Date field and checking the Date portion of the date field not the time

    If K2 contains the date you are looking for:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-04-2021
    Location
    Australlia
    MS-Off Ver
    365
    Posts
    48

    Re: Date field and checking the Date portion of the date field not the time

    Hi
    Sorry I could not get it to work - I have uploaded the XLS . in Output Sheet Cell C1 i m trying to fetch the count of records in the other sheet that in its G column all the dates that contain the value of C2
    Thanks

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,427

    Re: Date field and checking the Date portion of the date field not the time

    worksheet or Tab name : Output

    Cell B2 formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    OR

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 02-15-2022 at 11:19 PM.

  5. #5
    Registered User
    Join Date
    02-04-2021
    Location
    Australlia
    MS-Off Ver
    365
    Posts
    48

    Re: Date field and checking the Date portion of the date field not the time

    last question
    If I put 2022/02/15 in a Text Cell say D2

    can i use =SUMPRODUCT((Closed!F2:F9000="COMPLETE")*(TEXT(Closed!G2:G9000,"yyyy/mm/dd")=D2)) ?

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,427

    Re: Date field and checking the Date portion of the date field not the time

    try this formula , unless your D2 storage format is text input

    TEXT Format = text format

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    OR value format = value format

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 02-16-2022 at 12:32 AM.

  7. #7
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,427

    Re: Date field and checking the Date portion of the date field not the time

    @badmullah You're Welcome. Glad to help . Thank You for the feedback and rep.

    If you finally get a solution please mark your thread as SOLVED:
    - Click Thread Tools above your first post,you will see the text PREFIX on the upper left, press the button to select [SOLVED]

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Date field and checking the Date portion of the date field not the time

    Your formula corrected

    =SUMPRODUCT(--(INT(Closed!$G$2:$G$1048)= INT(C2)))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Date field and checking the Date portion of the date field not the time

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Convert date field to usable date field in excel
    By bbeards in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-01-2022, 09:43 AM
  2. [SOLVED] Cannot add date in a field of data type date/time
    By mahju in forum Access Tables & Databases
    Replies: 7
    Last Post: 07-17-2018, 10:10 PM
  3. [SOLVED] Changing a Text Field with a Date to an Actual Date Field
    By chcalissie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-22-2014, 09:54 AM
  4. Replies: 3
    Last Post: 07-22-2014, 04:23 PM
  5. Replies: 1
    Last Post: 04-11-2013, 12:22 AM
  6. Replies: 2
    Last Post: 12-09-2011, 08:51 AM
  7. Replies: 4
    Last Post: 08-09-2005, 06: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