+ Reply to Thread
Results 1 to 2 of 2

To count values in a changeble range

  1. #1
    Registered User
    Join Date
    06-13-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    29

    To count values in a changeble range

    I need some help with a code to the workbook uploaded. I'm having a hard time in finding a way to start!
    The workbook is to control day works of employes where they cannot work more than 183 days in the last 365 continuous days.
    I need a code where based on the selected cell it shows me anywhere in the sheet how many days the employe worked in the last 365 days and how many days off he had, this way it will be possible to plan how many days I can use someones work without extrapolate the limit easyer then counting manually every time I need to do that.
    E= work
    F= day off
    V= trip (same as work)

    If some arrangement need to be done to make the code easier its ok.

    I started thinking in using a countif, but i didint know how to make count works backwards 365 days based on the selected cell.

    Then now i'm trying to use a matrix and array to store the values then based on the cell, but i'm also having trouble in make it work on the 3 years range as shown on the file uploaded.

    Thank You all,
    Sorry for my bad english, I'm trying to improve!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-31-2012
    Location
    Delaware, USA
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: To count values in a changeble range

    Hi Souza.eq,

    This is not too fancy but is dymanic for each day that is identified as work or off. There are some "A"s in the file - don't know what they are for.

    T
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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