date calcualtion

G

Guest

I am trying to return a date that is seven days prior to the date I choose,
but I want to omit Saturday and Sunday. Therefore if the date of the event
is Sunday March 18, 2007 and I want to receive payment seven days prior I
would like to have the formula automatically return a date seven days prior,
but since that day would be Sunday I need to return Friday as the date I need.
 
R

Roger Govier

Hi

Provided you have the Analysis Toolpak loaded, Tools>Addins>check
Analysis Toolpak
then
=WORKDAY(A1,-6)
should do what you want.
 
R

Ron Rosenfeld

I am trying to return a date that is seven days prior to the date I choose,
but I want to omit Saturday and Sunday. Therefore if the date of the event
is Sunday March 18, 2007 and I want to receive payment seven days prior I
would like to have the formula automatically return a date seven days prior,
but since that day would be Sunday I need to return Friday as the date I need.


=WORKDAY(A1-6,-1)

If the WORKDAY function is not available, and returns the #NAME? error, install
and load the Analysis ToolPak add-in.

How?

On the Tools menu, click Add-Ins.
In the Add-Ins available list, select the Analysis ToolPak box, and then click
OK.
If necessary, follow the instructions in the setup program.

--ron
 
R

Ron Rosenfeld

Hi

Provided you have the Analysis Toolpak loaded, Tools>Addins>check
Analysis Toolpak
then
=WORKDAY(A1,-6)
should do what you want.

Hmmm

Monday, March 19, 2007 --> Friday March 9, 2007
--ron
 
R

Roger Govier

Hi Ron

Of course, you are correct with your solution of
=WORKDAY(A1-6,-1)
but mine would get the money in sooner<vbg>
Thanks for the correction.
 

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