Calculate workdays from a specific date

LBee

New Member
Joined
Dec 25, 2021
Messages
20
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all

I have this sheet, where I'm counting tickets that are created x workdays ago (F6) from a specifik date (F5)

The formula i column C are like this =NETWORKDAYS(B2;$F$5), and the formula in cell F8 to F12 are like this =COUNTIFS(C:C;">"&$F$6;A:A;$E8)
This is working fine, but I'm trying to avoid the need of creating column C, and make a formula in F8 to F12 that does the all of the calculation.

Is that possible (and does it make sense)?

1656232917801.png
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi LBee,
please use the XL2BB add-on for sharing sample data. Beats pictures every day. Most members do not like to type over data from a picture.
 
Upvote 0
Hi @LBee
Reverse calculation can help in the above scenario. For Instance from the sample you have shown above, Any ticket created on or before 28/01/2022 will match your criteria. You can tweak your countifs for tickets created on or before 28/01/2022.

But as @GraH mentioned we can check the data and update exactly if you show us a sample through XL2BB
Regards
 
Upvote 0
Hi GraH

Sure - never used it before, but currently reading the guide 🤔
I will update the post
 
Upvote 0
Not sure if this is correct way to do it 🤞

Book1
ABCDEFG
1NameTicketCreatedWorkdaysOld
2Sam2022-01-0165
3Matt2022-02-0640
4Matt2022-01-2648
5Sam2022-03-1514StartDate2022-04-01
6Sam2022-03-275WorkdaysOldMax45
7Matt2022-02-2825
8Matt2022-02-1435George1
9Jennifer2022-03-1514Matt6
10Jennifer2022-02-2328Ann3
11Sam2022-01-0662Sam2
12Sam2022-03-1514Jennifer2
13Ann2022-02-1732
14Jennifer2022-02-2427
15George2022-03-0520
16Ann2022-03-265
17Matt2022-01-2549
18Sam2022-02-1633
19George2022-02-1435
20Jennifer2022-03-285
21Jennifer2022-03-0124
22George2022-03-0819
23Jennifer2022-02-2328
24Matt2022-01-0563
25Sam2022-03-2010
26Jennifer2022-01-2350
27Jennifer2022-01-1854
28George2022-02-2229
29Matt2022-01-2747
30Matt2022-03-1910
31Ann2022-01-2450
32Ann2022-01-2846
33Matt2022-01-0563
34Ann2022-02-2526
35George2022-01-2350
36Matt2022-02-1335
37Jennifer2022-03-0322
38Matt2022-02-0144
39Ann2022-02-1037
40Ann2022-03-1017
41Matt2022-01-2747
42Ann2022-01-1953
43Sam2022-02-1136
44Sam2022-03-2010
45Matt2022-03-1514
46Jennifer2022-02-0144
47Ann2022-03-2110
48George2022-02-0342
49Sam2022-03-256
50Sam2022-02-2328
51Ann2022-03-312
52
Sheet2
Cell Formulas
RangeFormula
F8:F12F8=COUNTIFS(C:C,">"&$F$6,A:A,$E8)
C2:C51C2=NETWORKDAYS(B2,$F$5)
 
Upvote 0
Following @Haree's tip

Book1
EFG
5StartDate1/04/202228/01/2022
6WorkdaysOldMax45
7
8George1
9Matt6
10Ann3
11Sam2
12Jennifer2
Sheet2
Cell Formulas
RangeFormula
G5G5=WORKDAY(F5,-F6)
F8:F12F8=COUNTIFS(B:B,"<="&$G$5,A:A,$E8)


or without the extra "helper":
Excel Formula:
=COUNTIFS(B:B,"<="&WORKDAY($F$5,-$F$6),A:A,$E8)
 
Upvote 0
Solution
Thanks a lot both of you - I can confirm it working (y) 🙏

/LBee
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top