Calculating pay dates

B

BW

If a date is a friday, I want to display the previous Thursday (MM/DD/YYYY).
If a date is a Saturday - Thursday, I want to display the Thursday as a date
(MM/DD/YYYY).

To illustrate, if the date is 05/28/2010, I want to display 05/27/2010. If
the date is 05/29/2010 - 06/03/2010, I want to display 06/03/2010.

I hope this is clear.

Thank you,

BW
 
R

Ron Rosenfeld

If a date is a friday, I want to display the previous Thursday (MM/DD/YYYY).
If a date is a Saturday - Thursday, I want to display the Thursday as a date
(MM/DD/YYYY).

To illustrate, if the date is 05/28/2010, I want to display 05/27/2010. If
the date is 05/29/2010 - 06/03/2010, I want to display 06/03/2010.

I hope this is clear.

Thank you,

BW


With your date in A1:

=A1+6-WEEKDAY(A1+1)
--ron
 
B

BW

Ashish Mathur,

your suggestion was helpful, but I found that adding
=text(your_formula,"mm/dd/yyyy") got me to where I needed to be.

Thank you much!

BW
 

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