+ Reply to Thread
Results 1 to 5 of 5

Would like to count cell values based on date criteria in a different range

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    26

    Would like to count cell values based on date criteria in a different range

    The forum members here have been incredibly helpful in assisting me with this project and I am learning a lot about excel and it's capabilities. I turn once again to the members here with (what I hope to be) the last part of this puzzle I call a workbook! With an attendance template created with the date along row 5 and the data populating in a calendar like format below it, I would like to use a formula to determine vacation days remaining and used based on a "vacation reset" trigger being their anniversary date. A simple count is not going to work because even though a vacation may be input on the sheet, it is not considered used until the date has passed. (Someone told the employees they could change their minds! LOL) I have tried countifs and sumproduct all to no avail. I have attached a sample sheet with Anniversary dates and vacation days per year. On this sheet the H column (Vacation days remaining) should result in 2 for Robin, 11 for Mickey, 3 for Donald and 10 for Peter as I am only counting "v" days used between anniversaries.

    I hope I have described what I am trying to make happen (it's clear in my head, but not everybody can fit). Any help, or even a push in the right direction would be greatly appreciated.

    "Stuck" in Vegas,

    Scott
    Attached Files Attached Files
    Last edited by sdavison; 06-23-2013 at 12:42 AM.

  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: Would like to count cell values based on date criteria in a different range

    How do you get 2 for Robin? I count 6. and this formula gives me that too...
    =COUNTIFS($I$5:$AK$5,">="&DATE(YEAR(G6)-1,MONTH(G6),DAY(G6)),$I$5:$AK$5,"<="&TODAY(),I6:AK6,"v")
    Last edited by FDibbins; 06-22-2013 at 04:45 PM. Reason: corected typo
    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

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Would like to count cell values based on date criteria in a different range

    no longer required
    Last edited by etaf; 06-22-2013 at 04:36 PM.

  4. #4
    Registered User
    Join Date
    05-24-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Would like to count cell values based on date criteria in a different range

    You guys are amazing. I'm sorry, you are right and I mis-calculated. This formula is exactly what I was looking for and will be used to put the final touches on this project. (at least until someone asks more of the worksheet). Thank you all for sharing your experience with Excel and helping the community. Excelforum members are the best!!

    Scott

  5. #5
    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: Would like to count cell values based on date criteria in a different range

    Happy to help, and thanks for the kind words

+ 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