+ Reply to Thread
Results 1 to 11 of 11

using countif function to track courses and expiry date

  1. #1
    Registered User
    Join Date
    08-19-2015
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    3

    using countif function to track courses and expiry date

    Hi everyone!

    I am trying to use the countif function to consolidate all employees who completed specific training and with expiry date 3 and 6 months from the current date.
    WORKER'S TRAINING.xlsx

    Thank you.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: using countif function to track courses and expiry date

    Hi,

    Welcome to excel forum.

    Please explain more or put expected result in your attached sheet.

    Thanks
    Ankur

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: using countif function to track courses and expiry date

    Is this what you wanted?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: using countif function to track courses and expiry date

    Hi,

    see if the attached can be of help. Comments in red and formula changes highlighted in green.

    Cheers,
    berlan
    Attached Files Attached Files

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: using countif function to track courses and expiry date

    @Glenn Kennnedy
    @berlan


    Sorry for the off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in-thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do so at all.

    Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: using countif function to track courses and expiry date

    XOR LX. You have made this comment to me once before, I think, in another thread. I replied and, in addition, I made some comments about my views in a thread that you started (Post 48)
    http://www.excelforum.com/the-water-...ed-file-4.html

    I still maintain that "horses for courses applies and that formulae like
    =COUNTIFS($B$11:$B$13,A2,$D$11:$D$13,1,$F$11:$F$13,">"&TODAY())

    or this:
    =COUNTIFS($B$11:$B$13,A2,$D$11:$D$13,1,$F$11:$F$13,">"&DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY())))

    will mean nothing, if not seen in the context of the data layout. The OP gave no verbal picture of the data layout, so I had nothing to build on.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: using countif function to track courses and expiry date

    @Glenn

    Agreed that context is important, but not sure what you mean re "the OP gave no verbal picture of the data layout". The OP provided a workbook, to which your solution appears to apply.

    The point is that, as well as providing a workbook (as you did), I think it benefits all if you also post your formulas in the actual thread.

    The thread title in this case: "using countif function to track courses and expiry date" is one which might well be picked up by searches relating to the topic here, and your formulas, although specific to the OP's request, are nevertheless of a sufficiently generic form such that any readers stumbling upon this thread might learn something of the functioning of COUNTIFS by studying the syntax of those formulas, and that without necessarily having to download any attachments.

    Regards

  8. #8
    Registered User
    Join Date
    08-19-2015
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    3

    Re: using countif function to track courses and expiry date

    Hi guys,

    Thanks for all your reply. I actually didn't expect a reply so soon moreover so many replies.
    I think i did not do a good job explaining the end result i wanted.
    Basically, what i wanted is:
    1. the top section being able to capture the total amount of people trained in a course (eg. confined space, work at height)
    2. the top section capturing the amount of people whose certification will be not be expiring in 6 months or less time as entered in the bottom section expiry dates.
    3. the top section capturing the amount of people whose certification will be expiring in 3 months or less time as entered in the bottom section expiry dates.

    so its like counting the amount of people for a specific training course with variables taken from column B11 to B13, D11 to D13 and F11 to F13 for type of training, number of personnel and expiry dates respectively.

    Thank you for all your input!

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: using countif function to track courses and expiry date

    OK. is this it? If not, please add your expected results manually and repost.
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,886

    Re: using countif function to track courses and expiry date

    Something like this?
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  11. #11
    Registered User
    Join Date
    08-19-2015
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    3

    Re: using countif function to track courses and expiry date

    Quote Originally Posted by Glenn Kennedy View Post
    OK. is this it? If not, please add your expected results manually and repost.
    That's what i'm looking for!

    Thanks for your help!

    And also thanks for all the replies!

+ 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. autocalculate expiry date / expiry date colour warnings
    By kimbling1 in forum Excel General
    Replies: 8
    Last Post: 08-27-2014, 02:53 AM
  2. Replies: 0
    Last Post: 06-28-2014, 09:31 AM
  3. Pop up of Expiry Date
    By cyee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-15-2014, 12:32 AM
  4. [SOLVED] Allocating a given date to a date range bucket: futures contract expiry
    By labogola in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2013, 08:50 AM
  5. Expiry date Pop up
    By avi2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2013, 03:36 AM
  6. Use conditional formatting to track expiry dates in multiple fields
    By shamilton in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2013, 12:55 AM
  7. Excel 2007 : Conditional Formatting Date Before Expiry Date
    By CanadaFriend in forum Excel General
    Replies: 4
    Last Post: 11-21-2011, 11:07 AM

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