Week Number Function

W

wetweb

I am working on a timesheet function. I would like to select th
timesheet period based on the week number. Not sure if this is the bes
way. But all I am trying to do is get the Saturday (weekendings) mayb
even from a dropdown list would be nice to populate the whole yea
current or future. But start out by using the current period.

Currently attempting to use the following

Retrieving Saturday (week ending)
=TODAY()+7-WEEKDAY(TODAY(),1)

Retrieving the week number
=TRUNC(((TODAY()-DATE(YEAR(TODAY()),1,0))+6)/7)

What I would like to do is setup some sort of IF.

Such as if week is odd go to Saturday. If even add 14 days till th
next period ending
 
D

Daniel.M

Hi,

If you intend to find every other Saturday that is current/next to Today.

=CEILING(TODAY(),14)

'also for the _other_ Saturday

=CEILING(TODAY()-7,14)+7

Note that this formula is working with 1900 calendar only. Advise if you're
using 1904 calendar.

Regards,

Daniel M.
 

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

Similar Threads

Formula for week ending 2
Testing a cell value for a specific weekday. 3
week numbers 3
Time Sheet Summary 1
Weekly Time Sheet Summary 2
Weekly Time Sheet Consolidate 1
Date functions 3
Date Population 6

Top