+ Reply to Thread
Results 1 to 3 of 3

Count how many times a month appear but ignore blank cells

Hybrid View

  1. #1
    Registered User
    Join Date
    03-14-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2003
    Posts
    12

    Count how many times a month appear but ignore blank cells

    hai

    i have big issue which i couldn't clear it.

    date A ----------------- date B
    2-jan-2011 -------- 5-jan-2011
    5-jan-2011 ------- 7-jan-2011
    7-may-2011 ---------
    8-may-2011 ------- 9-may-2011
    2-feb-2011 --------5-feb-2011
    2-feb-2011 ----- 8-feb-2011
    2-apr-2011


    1. = i want to count how many times a months appear in (date A)

    2.=if i put date B same months which is in date A that i have to count separately.


    3.= deferent months in date B that i have to count separately.


    Please help me to solve this problem


    thank you.
    Last edited by mdithi; 03-14-2012 at 05:06 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count how many times a month appear but ignore blank cells

    Assuming data in A2:B8, and assuming I understood you correctly,

    To count how many dates in column A don't have a corresponding date in column B, try:

    =SUMPRODUCT((A2:A8<>"")*(B2:B8=""))

    To count how many dates in column A have same month as dates in column B, try

    =SUMPRODUCT((MONTH(A2:A8)=MONTH(B2:B8))*(B2:B8<>""))

    To count how many dates in column A do not have same month as dates in column B, try

    =SUMPRODUCT((MONTH(A2:A8)<>MONTH(B2:B8))*(B2:B8<>""))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-14-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Count how many times a month appear but ignore blank cells

    thank dude

+ 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