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

#### jcth81

##### New Member
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
23.1 KB · Views: 4

### 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
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
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
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)))

#### jcth81

##### New Member
It's been awhile...

Just add a test for Blank:

Great! Thank you very much. Appreciated!

#### jtakw

##### Well-known Member
You're welcome, thanks for the feedback.

Replies
3
Views
57
Replies
7
Views
171
Replies
0
Views
202
Replies
8
Views
294
Replies
12
Views
707

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

### 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