Calculate Date

B

brownmre

Can an add function be tweaked to compute a date value that does not equal a
Saturday or Sunday.

Example:
Start date = 4/17, days added = 2, answer = 4/19 which is a Sunday.
Desired answer is 4/20 which is a Monday.
 
T

T. Valko

Try this:

A1 = 4/17/2009
B1 = 2

If the result you expect is Monday then that means you're counting the start
date.

=WORKDAY(A1-1,B1)

Format as Date

The WORKDAY function requires the Analysis ToolPak add-in be installed in
Excel versions prior to Excel 2007.
 
S

Sheeloo

You are welcome.

Try Biff's solution too... it is more elegant.

=WORKDAY(A1-1,2)
or

=WORKDAY(A1,2)
 
T

T. Valko

It depends on what their exact requirements are.

Our formulas return different results depending on the weekday of the date.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top