+ Reply to Thread
Results 1 to 2 of 2

Count Days

  1. #1
    Registered User
    Join Date
    11-12-2011
    Location
    Glendale, CA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Count Days

    I want to counts the date once. If I have the same teams and same date I only want it to show up 1 time and the rest bill be 0.

    I have attached file.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Count Days

    Not sure is this is what you want, but lets see.

    1st of all, you will have to convert the date/time you have in G to just a date, else you will never find a matching day. use this, copied down...
    =DATE(YEAR(G2),MONTH(G2),DAY(G2)) I put this in column Y

    Then I used this, copied down to extract the numbers you want. The answers dont all match the answers you gave in X, but take a look and see...
    =IF(B2=B1,0,IF(COUNTIFS($N$2:$N$18,"approved",$Y$2:$Y$18,Y2,$B$2:$B$18,B2)>1,1,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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