+ Reply to Thread
Results 1 to 6 of 6

Date Range for jobs & conversions SUMPRODUCT

  1. #1
    Registered User
    Join Date
    10-27-2011
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    10

    Date Range for jobs & conversions SUMPRODUCT

    I'm trying to run a report within Excel that shows the total number of jobs completed by employees within a date range and also a count of the number of conversions per employee within the same date range.

    My data is as follows:

    Column A: Date (Range from A1:A100 spanning several years)
    Column B: Employee Name (DAVE JOHN & BOB is the example employee name)
    Column C: Converted (a simple binary showing 1 or 0 depending if the job has converted)
    Cell D1: has the start date in my range (01/01/2015)
    Cell D2: has the end date in my range (31/12/2015)
    I have already worked out the basic count of jobs (in Column F)

    =SUMPRODUCT((B1:B100=DAVE)*(A1:A100>=D1)*(A1:A100<=D2))
    What I need to do is add to this to only count the number of records with this name within the date range but also have a "1" in column C to show the job has converted.

    This will appear in Column G.

    I have attached a screenshot of the example.

    Capture.JPG

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

    Re: Date Range for jobs & conversions SUMPRODUCT

    =SUMPRODUCT(($B$1:$B$100=$E4)*($C$1:$C$100=1)*($A$1:$A$100>=$D$1)*($A$1:$A$100<=$D$2))

    If this isn't what you need, please attach an Excel sheet, not a picture of one which is really pretty much useless for testing.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Date Range for jobs & conversions SUMPRODUCT

    Or
    another way

    F4=COUNTIFS($A$1:$A$100,">="&$D$1,$A$1:$A$100,"<="&$D$2,$B$1:$B$100,$E4,$C$1:$C$100,1)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Registered User
    Join Date
    10-27-2011
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Date Range for jobs & conversions SUMPRODUCT

    Thanks everyone.
    The solution that worked was:
    =SUMPRODUCT(($B$1:$B$100=$E4)*($C$1:$C$100=1)*($A$1:$A$100>=$D$1)*($A$1:$A$100<=$D$2))

    If I were to include another column that contains the total time for each job, how would I calculate an average time per job over all of these jobs per person?
    Currently I have an all time average, but I need one to be calculated between the two date ranges.
    =AVERAGEIF(B1:B100,C72,Z1:Z100) >>>C72 references a cell with the name and Column Z contains the time data in 00:00:00 format.

    I have tried:
    =AVERAGE((B3:B100=E4)*(Z3:Z100)*(A1:A100>=D1)*(A1:A100<=D2))

    It's tricky to send the original excel file as it references over several sheets and contains sensitive data

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

    Re: Date Range for jobs & conversions SUMPRODUCT

    It would really not take you long to mock up a sample of what you want. Very few people are going to want to re-type your data for you. However, you were fortunate, in that I had something that could be adaped in a few seconds.

    Try this:

    =AVERAGEIFS(D:D,A:A,">="&$F$1,A:A,"<="&$F$2,B:B,H2,C:C,1)

    as shown in the attached sheet.
    Attached Files Attached Files

  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 2403
    Posts
    44,064

    Re: Date Range for jobs & conversions SUMPRODUCT

    I have assumed that by "converted" you mean completed and that it is the completed jobs that you wish to have averaged. If this is not what you want, then modify the spreadsheet in the previous post to show what you DO want.

+ 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] Time/Date Conversions
    By hammer2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-29-2015, 08:31 AM
  2. [SOLVED] Sumproduct to calculate closed jobs since April not returning correct amount
    By mmccra2858 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-01-2014, 03:29 PM
  3. [SOLVED] Multiple Date Conversions using VBA
    By clattenburg cake in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-14-2013, 10:13 AM
  4. [SOLVED] unwanted date conversions
    By Gary N in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2006, 08:50 PM
  5. Date and Time conversions
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2005, 07:05 AM
  6. [SOLVED] Date Conversions from UTC to EST
    By Kosher Kitten in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2005, 02:06 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