Solved

Excel difference between two dates in working (5 day weeks)

Posted on 2010-08-31
7
293 Views
Last Modified: 2012-05-10
Hi all,

im trying to get the difference between two dates in working weeks (5 day weeks)

eg
A1
28/10/2011

A2
18/08/2011

=(A1-A2)/7 give us 10.14 which is wrong for what we need, we need it to be a 5 day week not 7 so should give us 10.2

this doable?
Thanks
0
Comment
Question by:awilderbeast
  • 3
  • 2
  • 2
7 Comments
 
LVL 50

Expert Comment

by:teylyn
ID: 33565712
Hello awilderbeast,

you can use Networkdays() to use only weekdays and exclude weekdays and holidays. In Excel 2003 and earlier, you need to activate the Analysis Toolpak

With your data, the formula would be

=NETWORKDAYS(A6,A3)/5

You want to divide by 5, since that is the number of workdays in the week. The result is 10.4, though, not 10.2

cheers, teylyn
0
 
LVL 50

Accepted Solution

by:
teylyn earned 500 total points
ID: 33565726
correct the cell references in the above formula to

=NETWORKDAYS(A2,A1)/5

The syntax for Networkdays() is

=Networkdays(startDate,endDate,[holidays - optional])
0
 
LVL 1

Author Comment

by:awilderbeast
ID: 33565727
it comes out as -10.4 on mine, why -?
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 9

Expert Comment

by:suvmitra
ID: 33565732
try to use networkdays function if you are using Excel 2007.
0
 
LVL 9

Expert Comment

by:suvmitra
ID: 33565744
format the cell as number with decimal place Zero.
0
 
LVL 1

Author Closing Comment

by:awilderbeast
ID: 33565756
thats great thanks
0
 
LVL 50

Expert Comment

by:teylyn
ID: 33565802
>> it comes out as -10.4 on mine, why -?

NZ variance maybe. Things are different Down under. :-)

Glad it works for you, and thanks for the grade.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now