+ Reply to Thread
Results 1 to 5 of 5

how to count month from the date format "mm/dd/yyyy" without converting it ?

  1. #1
    Registered User
    Join Date
    11-20-2019
    Location
    nepal
    MS-Off Ver
    office 2016
    Posts
    21

    how to count month from the date format "mm/dd/yyyy" without converting it ?

    dear all,

    every time i download my excel report it has date format of "mm/dd/yyyy" and till date, I have been using countif function to count the month from it and before that I have to convert the date using the function =text(value, format) then only able to count it.
    is there any alternative where I can count the months without converting the date.
    i have uploaded the sample excel file to make my question clear.

    regards,
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,332

    Re: how to count month from the date format "mm/dd/yyyy" without converting it ?

    How about this?

    =SUMPRODUCT((TEXT($A$2:$A$19,"mmmm")=J2)*($A$2:$A$19<>""))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-20-2019
    Location
    nepal
    MS-Off Ver
    office 2016
    Posts
    21

    Re: how to count month from the date format "mm/dd/yyyy" without converting it ?

    thank you soo much,
    so if my criteria increases then can I use like this
    =SUMPRODUCT((TEXT($A$2:$A$19,"mmmm")=J2)*($B$2:$B$19<>"SALES")*($C$2:$C$19<>"DAVID"))

    this is possible right.

  4. #4
    Registered User
    Join Date
    11-20-2019
    Location
    nepal
    MS-Off Ver
    office 2016
    Posts
    21

    Re: how to count month from the date format "mm/dd/yyyy" without converting it ?

    you have always been so much helpful.

    thankyou!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,332

    Re: how to count month from the date format "mm/dd/yyyy" without converting it ?

    Yes, you can add criteria.

    Glad to help.

+ 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. Replace date in "DD.MM.YYYY" with date "DD/MM/YYYY" format as soon as user hits enter
    By abhinavbinkar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2019, 09:12 AM
  2. [SOLVED] Check Date Format Input into Excel Column with VBA code ("DD/MM/YYYY" format)
    By inoka in forum Excel Programming / VBA / Macros
    Replies: 44
    Last Post: 04-17-2018, 05:26 AM
  3. [SOLVED] Check Date Format Input into Excel Column with VBA code ("DD/MM/YYYY" format)
    By inoka in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 12-14-2017, 08:30 AM
  4. [SOLVED] Excel cell automatically converting into "[$-en-SG,1]dd/mm/yyyy;@" Custom format
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-18-2017, 02:14 AM
  5. [SOLVED] Userform Dynamically Generated Combobox format value as date ("mm/dd/yyyy")
    By CieloSalas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2017, 03:39 PM
  6. Replies: 8
    Last Post: 06-21-2016, 08:56 AM
  7. Replies: 3
    Last Post: 08-13-2013, 06:25 AM

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