+ Reply to Thread
Results 1 to 3 of 3

Offset formulas

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    Lisbon
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 1708 (build 8431.2153)
    Posts
    62

    Question Offset formulas

    Hi everyone,

    I’m using Sumit Bansal’s Leave Tracker Template since it has a lot of features that I was looking for.

    Still, I’ve added 3 columns on the left to identify each person’s team leader (TL), task and shift.
    I’ve already managed to work on the macro so it keeps hiding the correct amount of columns.

    Now, what I’m not being able to adapt myself is the way the formulas count the month and year's absences and worked days. I can’t understand all these offsets

    All I’m missing is now is the math:

    Leaves This Month: should count all the “JA”, “UA”, “P”, “SL” as 1 and “H1” as 0.5
    WorkDays This Month: should count all the “T”, “L1”, “1” as 1 and “H1” as 0.5
    Year Leave Breakup: Should simply count the instances each code occurs for the entire year.


    Would someone help me out with this, please?
    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Offset formulas

    Please try
    swap H1 to row 16

    NM7
    =SUMPRODUCT(COUNTIF(OFFSET($A7,0,31*($A$3-1)+4,1,31),$OA$7:$OA$10))+COUNTIF(OFFSET($A7,0,31*($A$3-1)+4,1,31),$OA$15)/2

    NN7
    =SUMPRODUCT(COUNTIF(OFFSET($A7,0,31*($A$3-1)+4,1,31),$OA$13:$OA$15))+COUNTIF(OFFSET($A7,0,31*($A$3-1)+4,1,31),$OA$16)/2

    NO7:NX7
    =COUNTIF($E7:$NL7,NO$5)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-09-2014
    Location
    Lisbon
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 1708 (build 8431.2153)
    Posts
    62

    Re: Offset formulas

    Quote Originally Posted by Bo_Ry View Post
    Please try
    swap H1 to row 16

    NM7
    =SUMPRODUCT(COUNTIF(OFFSET($A7,0,31*($A$3-1)+4,1,31),$OA$7:$OA$10))+COUNTIF(OFFSET($A7,0,31*($A$3-1)+4,1,31),$OA$15)/2

    NN7
    =SUMPRODUCT(COUNTIF(OFFSET($A7,0,31*($A$3-1)+4,1,31),$OA$13:$OA$15))+COUNTIF(OFFSET($A7,0,31*($A$3-1)+4,1,31),$OA$16)/2

    NO7:NX7
    =COUNTIF($E7:$NL7,NO$5)
    Hi Bo_Ry,

    Thank you so much! This is working like a charm!

+ 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. How to replace Offset() with non-volatile formulas?
    By ceeyee in forum Excel General
    Replies: 14
    Last Post: 12-06-2018, 06:40 PM
  2. [SOLVED] Offset or Row formulas
    By icqa_analyst in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-26-2018, 04:08 PM
  3. Offset formulas
    By wmjenner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2014, 02:46 PM
  4. [SOLVED] Business Case Formulas OFFSET
    By sav1979 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-23-2014, 05:39 AM
  5. OFFSET vs MATCH in array formulas
    By sweep in forum Excel General
    Replies: 4
    Last Post: 10-01-2010, 07:59 AM
  6. Entering formulas using activecell.offset
    By rob_k in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2008, 09:52 AM
  7. using offset with array formulas
    By QuantumPion in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 07:05 AM

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