+ Reply to Thread
Results 1 to 11 of 11

CPR training tracker ( Countifs )

  1. #1
    Registered User
    Join Date
    12-15-2020
    Location
    Arizona, United States
    MS-Off Ver
    2016
    Posts
    23

    Unhappy CPR training tracker ( Countifs )

    Thanks for the chance to pick your brain for a bit. I have been tasked with creating a sheet that helps track employees trained in CPR, their expirations, and a ratio of total employees PER SHIFT to CPR certified employees PER SHIFT.

    I figured =COUNTIFS would be my best bet but I have ramming my head into a wall trying to figure it out. Hopefully it is something small ( I am new to excell's formulas) My formula is as follows: =COUNTIFS(Table4[Shift],"='CPR Tracker'!H1",'CPR Tracker'!K:K,">=3")

    Capture.PNG

    Any assistance would be greatly appreciated, also if you see a quicker easier way to do this... and it's no extra trouble, please share!

    Thank you!

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: CPR training tracker ( Countifs )

    Your formula is counting two different things - the number of rows in the Table matching the H1 value in CPR Tracker sheet, and the number of rows in Col K of the Tracker sheet with a value of three or more?

    If you are combining the totals of two different 'ranges' you need a "+" sign between them

    =COUNTIF(Table4[Shift],CPR Tracker'!H1")+COUNTIF('CPR Tracker'!K:K,">=3")

    Ochimus
    Last edited by Ochimus; 12-16-2020 at 09:06 AM.

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: CPR training tracker ( Countifs )

    It's best to attach a sample worksheet (please see the yellow banner at the top of the page). We cannot see what's on the other sheets.

  4. #4
    Registered User
    Join Date
    12-15-2020
    Location
    Arizona, United States
    MS-Off Ver
    2016
    Posts
    23

    Re: CPR training tracker ( Countifs )

    Not looking to count the cells differently. I am looking to count if BOTH criteria are met.

    Person wants to see the ratio for shift "TEST", select shift "test" in drop down cell H1.
    If E:E contains the same text that's in H1 ( the shift we want to see the ratio for ) AND the employee is not expired ( K:K >=3 ) then count.

    Hopefully that sheds some light on my issue.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: CPR training tracker ( Countifs )

    Rm,

    Thanks for workbook and explanation.

    You need to include Col K in the Table.

    Click any cell in Table. Select TABLE DESIGN tab. Click RESIZE TABLE. Set it to include Col K (=$B$3:$K$14). Name Column K 'EXPIRED'.

    Formula now becomes

    =COUNTIFS(Table1[Shift],H1,Table1[Expired],">=3")

    Ochimus

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: CPR training tracker ( Countifs )

    (Sorry - when I replied I didn't see that there was another reply already)

    This should work. BTW, why don't you have column K in the table?

    =COUNTIFS(Table1[Shift],$H$1,K4:K14,">=3")

  7. #7
    Registered User
    Join Date
    12-15-2020
    Location
    Arizona, United States
    MS-Off Ver
    2016
    Posts
    23

    Re: CPR training tracker ( Countifs )

    I kept it separate as, to me, its really un-needed. I only have it to assist with the alerts and conditional formatting. I can still hide it in the blue border.

    So I added the new column for the days to exp, added the new countifs formula. now it's kicking back a VALUE error that I cant figure out.

    =COUNTIFS(Table4[Shift],"='CPR Tracker'!H1",Table2[Days to Exp],">=3") (NEW FORMULA)

    =COUNTIFS(Table4[Shift],'CPR Tracker'!$H$1,Table2[Days to Exp],">=3") (tried this formula as well)

    Updated the new column and formula the the attached reply.

    I really appreciate all your help!
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: CPR training tracker ( Countifs )

    Your formula's don't match the file you attached. There is no Table4 and there is no header called "Days to Exp" in Table 2.
    I think your second formula should work as long as it's referencing everything correctly.

  9. #9
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: CPR training tracker ( Countifs )

    RN,

    Putting Col K in a second Table won't work unless you link them

    Your formula will count every value in Col K that is three or more, whether or not the value in Table 4 is different to H1.

    If you don't want to add Col K to the Table, just use Column references. Formula can then count how many rows meet both criteria.

    Ochimus

  10. #10
    Registered User
    Join Date
    12-15-2020
    Location
    Arizona, United States
    MS-Off Ver
    2016
    Posts
    23

    Re: CPR training tracker ( Countifs )

    GOT IT!

    Something small and stupid i was doing + the help of all y'all!!!!

    (WORKING FORMULA) =COUNTIFS(Table4[Shift],'CPR Tracker'!H1,Table4[Days to exp],">=3")

    I kept saying =COUNTIFS(Table4[Shift],"='CPR Tracker'!H1",Table4[Days to exp],">=3") ** The extra "= at the beginning and extra " at the end killed it.

    Thank you all for your input and time! Happy Holidays!!

  11. #11
    Registered User
    Join Date
    09-14-2020
    Location
    GA, USA
    MS-Off Ver
    EXCEL 365; 2019
    Posts
    40

    Re: CPR training tracker ( Countifs )

    RM89,

    Please see attached.

    This is what I have for my Expiry Tracker. You can see my formulas in the cell.

    Press CTRL+~ at the same time and it will display all formulas in your worksheet. See Column E.

    You can change the number of days in the Warning Days Cell, in my case I have 5.

    Don't forget to review the Conditional Formatting for Column E

    Hopefully this helps.

    Nvable
    Attached Files Attached Files
    Last edited by Nvable; 12-18-2020 at 01:17 PM.

+ 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. training tracker
    By trainingcoordinator in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2017, 11:27 PM
  2. training tracker
    By fiona earely in forum Excel General
    Replies: 1
    Last Post: 07-26-2016, 08:39 AM
  3. training tracker
    By nsrawlings in forum Excel General
    Replies: 5
    Last Post: 12-30-2013, 01:27 AM
  4. Training and hours tracker
    By bighop in forum Excel General
    Replies: 5
    Last Post: 08-28-2013, 11:53 PM
  5. Physical Training Tracker for the Army
    By AARON_MYRICK in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2013, 07:47 AM
  6. [SOLVED] COUNTIFS for Ongoing Training Tracker
    By ManKorn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2013, 02:25 PM
  7. Excel 2007 : Training Tracker and Due Dates
    By InNeedoHelp in forum Excel General
    Replies: 2
    Last Post: 10-27-2009, 02:52 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