+ Reply to Thread
Results 1 to 5 of 5

Counting consecutive cells after 4 or 12 occupied cells

  1. #1
    Registered User
    Join Date
    08-04-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    10

    Counting consecutive cells after 4 or 12 occupied cells

    I have a spreadsheet that I use to track days off. One allows someone to be off for four days in a row, however if they are off five or more consecutive days then I need to count the total consecutive days off. I have the same issue with those who are able to take 12 days off in a row, however if they take more than 12 consecutive days off I need to count those as well.

    The four day spreadsheet is tracked by using the letter P. The 12 day sheet uses LV.

    Any suggestions?

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Counting consecutive cells after 4 or 12 occupied cells

    Any suggestions?
    Yes, post a sample workbook!

    Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    08-04-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    10

    Re: Counting consecutive cells after 4 or 12 occupied cells

    [url]http://www.excelforum.com/[/ur

    I hope this helps.
    Attached Files Attached Files

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Counting consecutive cells after 4 or 12 occupied cells

    Does F=P and HLV to LV according to your previous post?
    From the workbook you have posted do you expect only the 5 "F" to be counted?
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  5. #5
    Registered User
    Join Date
    08-04-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    10

    Re: Counting consecutive cells after 4 or 12 occupied cells

    With this sheet HLV and TLV can have 12 consecutive days and the count be zero, BUT if there are 13 consecutive days ALL count. So 13 consecutive days = 13, 14 consecutive days = 14, etc. The same for the F; if there are 4 consecutive days they count as Zero, but if there are 5 consecutive days, ALL days count. This also needs to count throughout the month, so if there are any repeat consecutive days, they continue to count.

    HSCM

+ 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] Counting consecutive cells in a row
    By her.rockstar in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-04-2013, 12:44 PM
  2. Counting Occupied cells
    By ohaganli in forum Excel General
    Replies: 6
    Last Post: 10-17-2012, 08:45 AM
  3. Counting of consecutive cells
    By wolis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2012, 10:40 AM
  4. Counting consecutive cells
    By KMU in forum Excel General
    Replies: 3
    Last Post: 05-11-2010, 08:16 PM
  5. [SOLVED] Counting Consecutive Cells
    By SteveC in forum Excel General
    Replies: 18
    Last Post: 06-21-2006, 01:46 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