Possible Daft question

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,970
Office Version
  1. 2010
Platform
  1. Windows
I have a long list of data, formatted Date (dd/mm/yy) & time

Whats the best way to get rid of the time (Text to columns?) & still keep the date?

I need to perform networkdays on the date with another column

Sample below

TIA
Abort Data.xls
FGHI
42/8/0612:13
Jan
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Just format your entries as dates ?

Dont think it would make any difference to networkdays anyway
 
Upvote 0
Sample of updated data

Please ignore Columns E & G (These are the columns created when text to columns was done)
Abort Data.xls
ABCDEFGHIJ
1ClientIDIntroducerIDMatterIDStartDateAbortDateNetworkdaysAuthActDateAuthactReceived
2104056378503/01/0600/01/00NULL#VALUE!NULLNo
3104056378703/01/0600/01/00NULL#VALUE!NULLNo
Jan
 
Upvote 0
Networkdays gives you an error because F2 doesn't contain a date.

...perhaps you need something like

=IF(F2="Null","",NETWORKDAYS(D2,F2))
 
Upvote 0
Hi Mark

BNot sure this is the best way but you should be able to use (to get rid of the time this is):

=DATEVALUE(TEXT(D2,"ddmmmyyyy"))

Best regards

Richard

PS Or just

=INT(D2)

of course...
 
Upvote 0
Networkdays gives you an error because F2 doesn't contain a date.

...perhaps you need something like

=IF(F2="Null","",NETWORKDAYS(D2,F2))

Thanks Barry

& thanks Richard too, I'll bare your reply in mind for future reference
 
Upvote 0
Depending on your requirements you could also have a day count up to today if F2 is "Null", otherwise use the date in F2, i.e.

=NETWORKDAYS(D2,IF(ISNUMBER(F2),F2,TODAY()))
 
Upvote 0
Depending on your requirements you could also have a day count up to today if F2 is "Null", otherwise use the date in F2, i.e.

=NETWORKDAYS(D2,IF(ISNUMBER(F2),F2,TODAY()))

I'll chew this over with her

I think the boss is just after the number of days between D & F

Thanks
 
Upvote 0

Forum statistics

Threads
1,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

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