×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Variable Date Selection

Variable Date Selection

Variable Date Selection

(OP)
I am trying to setup a timesheet but don't want to rename the appropriate days of the week every week I start a new one. I simply want a template that adjusts the days of the week for the current week I am in.

What I want to do is have some sort of function that generates dates for the current week (some sort of a "Today() + X" where X is a variable function that fixes the dates for that given week).

Anybody know how?

Thanks  

RE: Variable Date Selection

The day of the week for a given date never changes.  Once you figure which date goes on the first day of the week, everything thing else is already known.

TTFN



RE: Variable Date Selection

I'm not clear on what you are trying to do, but:

=day(today()) will return a value from 0 to 6 corresponding to Sunday to Saturday, which would seem a good start.

RE: Variable Date Selection

Oops, sorry, it's

=WEEKDAY(TODAY()) returns 1 to 7

This litte formula:

=INT((NOW()-1)/7)*7+1

returns the previous Sunday. (Thanks to tek-tips)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources