Forum Discussion

SMcGowan's avatar
SMcGowan
Copper Contributor
Mar 01, 2024

Help with Excel formula

Hello 

 

I'm trying to insert a formula into a spreadsheet to show what % of events are 80% or higher of our recruitment target. We need it to:

 

  1. Search within a date range,
  2. Compare the value in the recruitment column to the value in the target column, and
  3. Return a result of how many rows are =>80% of the target, per month. 
Date2024 TargetShifts recruited
13/01/202444
20/01/202422
27/01/202455
28/01/202455
03/02/2024129
25/02/20242018
02/03/2024108
03/03/2024107
03/03/2024108
17/03/2024105
23/03/202460
29/03/202480
07/04/2024106
07/04/20243020
07/04/2024204
14/04/20241010
17/04/202422
18/04/202421
19/04/202420
20/04/202420
20/04/202462
21/04/202410040
27/04/2024167
27/04/202466
27/04/202488
28/04/202455

Any advice or tips on how to do this and what function I should be using? 

 

Thank you!

12 Replies

    • SMcGowan's avatar
      SMcGowan
      Copper Contributor

      Thank you SergeiBaklan and HansVogelaar 

       

      In other COUNTIFS and SUMIFS formula's I've been using: Events!$B:$B,">="&DATE(2024,4,1),Events!$B:$B,"<="&DATE(2024,4,31) as a condition/criteria covering the required date range. 

       

      Can this same condition be used in the relevant formula needed to compare the 'target' and 'recruited' columns?

       

      The stats sit in another sheet in a table that provides a breakdown of info per month. E.g.

       

       JanFebMarAprMayJunJul
      No. Events325111185
      No. Days4361417  
      New Events32434  
      Recruitment Target164254219260  
      Shifts filled against target16352811186  
      % of Target reached100%83%52%51%33%  
      Cumulative %100%88%71%57%47%  
      % Events over 80% full       
      % Events over 90% full       
      % Events over 100% full       

       

      The formula that pulls through the no. of new events is =COUNTIFS(Events!B:B,">="&DATE(2024,5,1),Events!B:B,"<="&DATE(2024,5,31),Events!G:G,"NEW")

       

      For what I need, all the data sits in an Events tab and the date is in column B, the target in column H and the count of recruitment so far is column J. 

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        SMcGowan 

        Criteria could be used even if that's not optimal to reference entire column.

        As for the stats do you use month names as texts or as dates formatted as "mmm"?

  • SMcGowan 

    Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?

      • SMcGowan 

        With your sample data starting in A1:

         

        =SUM((A2:A27>=F1)*(A2:A27<=F2)*(C2:C27>=80%*B2:B27))/SUM((A2:A27>=F1)*(A2:A27<=F2))

         

        Format the cell with this formula as a percentage.

Resources