+ Reply to Thread
Results 1 to 4 of 4

HOW TO COUNT NUMBER OF Months in a Column starting from 2017 till 2018

  1. #1
    Registered User
    Join Date
    08-18-2017
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    62

    Post HOW TO COUNT NUMBER OF Months in a Column starting from 2017 till 2018

    I am trying to count number of Months in a given range.

    Using formula - =SUMPRODUCT(--(MONTH(INT($B$2:$BA$100))=8))

    But it is re-calculating Aug 2017 data for Aug 2018 Month.


    Attached sample sheet for reference.
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: HOW TO COUNT NUMBER OF Months in a Column starting from 2017 till 2018

    Hi Shabaz- Paste this in G10 and copy down:
    Please Login or Register  to view this content.

    PS- Suggest you use Phuocam's Post#3 formula. The one shown here would misread the last day of the month.
    Last edited by leelnich; 02-22-2018 at 03:48 AM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,909

    Re: HOW TO COUNT NUMBER OF Months in a Column starting from 2017 till 2018

    Try this:

    =COUNTIFS($B$2:$B$101,">="&F10,$B$2:$B$101,"<"&EDATE(F10,1))

    if B2 =8/31/2017 5:19:00 PM then the result is 1

  4. #4
    Registered User
    Join Date
    08-18-2017
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: HOW TO COUNT NUMBER OF Months in a Column starting from 2017 till 2018

    Thanks alot

+ 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] Amend VBA to add dd-mm-yyyy at end of file name as it show 5-2-2018 instead of 05-02-2018
    By robertguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2018, 10:58 AM
  2. how to sort Week no- Year (04-2018, 05-2019, 07-2018) in pivot chart.
    By sahana108 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2018, 09:07 AM
  3. Fiscal Year 2018 ( Feb 4, 2017 - Feb 3, 2018)
    By chethan1333 in forum Excel General
    Replies: 1
    Last Post: 05-09-2017, 08:40 AM
  4. [SOLVED] LOOKUP A VALUE IN A ROW and COUNT Number of BLANKS Below it till NEXT Value
    By learnall18 in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 05-18-2016, 08:42 AM
  5. Counting text in between Months in a column till next blank cell
    By sapell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-13-2014, 04:41 PM
  6. Search for specific data and count number of rows till empty Cell
    By kjanani30 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2013, 06:05 AM
  7. [SOLVED] Count the number of days till the next birthday
    By JO505 in forum Excel General
    Replies: 5
    Last Post: 12-21-2012, 06:12 PM

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