formula to ignore prefix on date

IanWells

Board Regular
Joined
Apr 2, 2003
Messages
86
Hi All..

Little quandry with a formula....

If in a cell A1 i have <01/01/2011 then next cell A2 have >01/08/2011 how in a formula like NETWORKDAYS can it be written to ignore the < and >...

Any help appreciated.

Thanks Ian
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try

=NETWORKDAYS(DATEVALUE(RIGHT(A1,LEN(A1)-1)),DATEVALUE(RIGHT(A2,LEN(A2)-1)))
 
Upvote 0
Hi All..

Little quandry with a formula....

If in a cell A1 i have <01/01/2011 then next cell A2 have >01/08/2011 how in a formula like NETWORKDAYS can it be written to ignore the < and >...

Any help appreciated.

Thanks Ian
Try this...

=NETWORKDAYS(MID(A1,2,12),MID(A2,2,12))
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,896
Members
452,948
Latest member
Dupuhini

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