Find the date of the coming up Saturday given the current date.

M

Michael Ermino

I'm trying to figure out a formula that will return the date of the
coming up saturday given the current date. For instance if the
current date is 4/10/2007, I want the formula to return 4/14/2007
which is the next saturday. If the current date is 4/9/2007, I want
the formula to return 4/14/2007.

thanks in advance.
 
B

Bob Phillips

=A1+7-WEEKDAY(A1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
N

Naz

Hi

Assuming your date is in cell A1

=A1+7-WEEKDAY(A1)


Will give you the coming saturday

HTH :)
 
R

Ron Rosenfeld

I'm trying to figure out a formula that will return the date of the
coming up saturday given the current date. For instance if the
current date is 4/10/2007, I want the formula to return 4/14/2007
which is the next saturday. If the current date is 4/9/2007, I want
the formula to return 4/14/2007.

thanks in advance.

It depends on what you want to do if the "current date" is a Saturday.

If you want to return the SAME day (4/14/2007 --> 4/14/2007)

then, as others have written:

=A1+7-WEEKDAY(A1)

However, if, as you write, you want to return the NEXT Saturday
(4/14/2007 --> 4/21/2007) then:

=A1+7-MOD(WEEKDAY(A1),7)
--ron
 

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