SOLVED

Count Open Jobs on any particular date

%3CLINGO-SUB%20id%3D%22lingo-sub-2434465%22%20slang%3D%22en-US%22%3ECount%20Open%20Jobs%20on%20any%20particular%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2434465%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20large%20spreadsheet%20of%20logged%20jobs.%26nbsp%3B%20Each%20has%20an%20open%20date%20and%20a%20closed%20date.%26nbsp%3B%20What%20I'd%20like%20to%20do%20is%20show%20how%20many%20jobs%20were%20open%20on%20any%20given%20date%20-%20and%20then%20ideally%20create%20a%20graph%20showing%20the%20number%20of%20open%20jobs%20changing%20over%20time.%26nbsp%3B%20Is%20this%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2434465%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECharting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2434555%22%20slang%3D%22en-US%22%3ERe%3A%20Count%20Open%20Jobs%20on%20any%20particular%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2434555%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1075622%22%20target%3D%22_blank%22%3E%40Matthew830%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet's%20say%20the%20Open%20Dates%20are%20in%20B2%3AB1000%20and%20the%20Closed%20Dates%20in%20C2%3AC1000.%3C%2FP%3E%0A%3CP%3EElsewhere%2C%20enter%20the%20start%20date%20for%20the%20chart%2C%20then%20fill%20down%20to%20the%20end%20date.%3C%2FP%3E%0A%3CP%3ELet's%20say%20this%20date%20series%20is%20in%20E2%3AE32.%3C%2FP%3E%0A%3CP%3EIn%20F2%2C%20enter%20the%20formula%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DCOUNTIFS(%24B%242%3A%24B%241000%2C%22%26lt%3B%3D%22%26amp%3BE2%2C%24C%242%3A%24C%241000%2C%22%26gt%3B%3D%22%26amp%3BE2)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eand%20fill%20down.%3C%2FP%3E%0A%3CP%3EUse%20columns%20E%20and%20F%20for%20your%20chart.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22S0499.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F287805i5CD279CD79C63313%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22S0499.png%22%20alt%3D%22S0499.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ESee%20the%20attached%20sample%20workbook.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello,

 

I have a large spreadsheet of logged jobs.  Each has an open date and a closed date.  What I'd like to do is show how many jobs were open on any given date - and then ideally create a graph showing the number of open jobs changing over time.  Is this possible?

 

Thanks

4 Replies

@Matthew830 

Let's say the Open Dates are in B2:B1000 and the Closed Dates in C2:C1000.

Elsewhere, enter the start date for the chart, then fill down to the end date.

Let's say this date series is in E2:E32.

In F2, enter the formula

 

=COUNTIFS($B$2:$B$1000,"<="&E2,$C$2:$C$1000,">="&E2)

 

and fill down.

Use columns E and F for your chart.

 

S0499.png

See the attached sample workbook.

@Hans Vogelaar 

Thanks so much for sending this - it work brilliantly.  However I don't think it has an allowance for jobs that are still open.  i.e. my data set has over 1000 open jobs which don't have an a closed date - however these are recorded as being open.  I assume that this is because they need to have a closed date to be counted.  Is there anyway to include these still open jobs?

 

thanks

best response confirmed by Matthew830 (New Contributor)
Solution

@Matthew830 

You could use

 

=COUNTIFS($B$2:$B$1000,"<="&E2,$C$2:$C$1000,">="&E2)+COUNTIFS($B$2:$B$1000,"<="&E2,$C$2:$C$1000,"")

Perfect - thank you so much.