Count elapsed days a work order has been open based on different cells criteria

jcth81

New Member
Joined
Apr 3, 2019
Messages
5
Greetings; I have an equipment repair work order (WO) spreadsheet that counts the running elapsed days that a WO has been open, based on cell with WO open date and todays date. I am using =NETWORKDAYS(F2,TODAY()) which seems to works fine;

...however if the spreadsheet now has a cell with a WO closed date, and a cell with WO status is there a solution that can count days differently between open date and closed date cells if WO status cell = closed? A status cell = open, would count days as initially set up...

Basically an open WO means we want to track how many days its open, as an important metric. But once a WO is closed, we don't want continuing tracking with a running total, but instead just a final total of WO days open between the open date and closed date.

... or any suggestions

Thank you
 

Attachments

  • Screenshot 2021-02-24 185030.png
    Screenshot 2021-02-24 185030.png
    23.1 KB · Views: 4

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
5,852
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Try this:

Book3.xlsx
EFG
1WO OpenWO ClosedWorkdays Elapsed
21/1/202139
31/15/20212/23/202128
Sheet796
Cell Formulas
RangeFormula
G2:G3G2=NETWORKDAYS(E2,IF(F2="",TODAY(),F2))
 

jcth81

New Member
Joined
Apr 3, 2019
Messages
5
Hi,

Try this:

Book3.xlsx
EFG
1WO OpenWO ClosedWorkdays Elapsed
21/1/202139
31/15/20212/23/202128
Sheet796
Cell Formulas
RangeFormula
G2:G3G2=NETWORKDAYS(E2,IF(F2="",TODAY(),F2))
works great... but could use one last bit of help on this to ignore blank cells? Thank you
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
5,852
Office Version
  1. 2016
Platform
  1. Windows
It's been awhile...

Just add a test for Blank:

Book3.xlsx
EFG
1WO OpenWO ClosedWorkdays Elapsed
21/1/202153
31/15/20212/23/202128
4 
Sheet796
Cell Formulas
RangeFormula
G2:G4G2=IF(E2="","",NETWORKDAYS(E2,IF(F2="",TODAY(),F2)))
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
5,852
Office Version
  1. 2016
Platform
  1. Windows
You're welcome, thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,090
Messages
5,622,649
Members
415,916
Latest member
eugenia

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
Top