Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Pre-fill dates on timesheet

On a bi-weekly time sheet, I need 2 cells populated with the "week-ending"
dates of the 2 past weeks. These dates are always the 2 previous Fridays,
but the spreadsheet may be accessed before, on or after the 2nd Friday
(within a couple days).

For example, today we're submitting time sheets for the weeks ending 12/22
and 12/29. Some folks may have filled theirs out yesterday, and some
stragglers will fill them out on Monday. I would like the spreadsheet to
pre-fill with those 2 week-ending dates, in 2 separate cells.

Possible?

Thanks,
Sherri
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Pre-fill dates on timesheet

Hi!

12/29 is not a previous Friday. It is the Friday of the current week.

If you want the current week Friday and the previous week Friday:

A1 = Current week Friday:

=TODAY()-WEEKDAY(TODAY(),3)+4

A2 = Previous week Friday:

=A1-7

Biff

"Sherri" wrote in message
...
On a bi-weekly time sheet, I need 2 cells populated with the "week-ending"
dates of the 2 past weeks. These dates are always the 2 previous Fridays,
but the spreadsheet may be accessed before, on or after the 2nd Friday
(within a couple days).

For example, today we're submitting time sheets for the weeks ending 12/22
and 12/29. Some folks may have filled theirs out yesterday, and some
stragglers will fill them out on Monday. I would like the spreadsheet to
pre-fill with those 2 week-ending dates, in 2 separate cells.

Possible?

Thanks,
Sherri



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Pre-fill dates on timesheet

The tricky part is that sometimes people don't fill out their timesheet until
the following Monday, so it wouldn't be the current week...?

"T. Valko" wrote:

Hi!

12/29 is not a previous Friday. It is the Friday of the current week.

If you want the current week Friday and the previous week Friday:

A1 = Current week Friday:

=TODAY()-WEEKDAY(TODAY(),3)+4

A2 = Previous week Friday:

=A1-7

Biff

"Sherri" wrote in message
...
On a bi-weekly time sheet, I need 2 cells populated with the "week-ending"
dates of the 2 past weeks. These dates are always the 2 previous Fridays,
but the spreadsheet may be accessed before, on or after the 2nd Friday
(within a couple days).

For example, today we're submitting time sheets for the weeks ending 12/22
and 12/29. Some folks may have filled theirs out yesterday, and some
stragglers will fill them out on Monday. I would like the spreadsheet to
pre-fill with those 2 week-ending dates, in 2 separate cells.

Possible?

Thanks,
Sherri




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 109
Default Pre-fill dates on timesheet

Sherri

To get the first Friday you could use:

=IF(WEEKDAY(TODAY())=6,TODAY(),IF(WEEKDAY(TODAY()) =7,TODAY()-1,TODAY()-WEEKDAY(TODAY())-1))

The previous Friday would be the first Friday minus 7.

You could use something like the nested IFs above to decide what Friday
you are interested in depending on what day of the week it is. If it
is Friday, it seems you want the first Friday today, but if today is
Monday would the first Friday of interest be the one 4 days later, or
the one 3 days earlier?

Good luck.

Ken
Norfolk, Va


Sherri wrote:
The tricky part is that sometimes people don't fill out their timesheet until
the following Monday, so it wouldn't be the current week...?

"T. Valko" wrote:

Hi!

12/29 is not a previous Friday. It is the Friday of the current week.

If you want the current week Friday and the previous week Friday:

A1 = Current week Friday:

=TODAY()-WEEKDAY(TODAY(),3)+4

A2 = Previous week Friday:

=A1-7

Biff

"Sherri" wrote in message
...
On a bi-weekly time sheet, I need 2 cells populated with the "week-ending"
dates of the 2 past weeks. These dates are always the 2 previous Fridays,
but the spreadsheet may be accessed before, on or after the 2nd Friday
(within a couple days).

For example, today we're submitting time sheets for the weeks ending 12/22
and 12/29. Some folks may have filled theirs out yesterday, and some
stragglers will fill them out on Monday. I would like the spreadsheet to
pre-fill with those 2 week-ending dates, in 2 separate cells.

Possible?

Thanks,
Sherri





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a custom fill series for dates? Jeff Excel Discussion (Misc queries) 1 December 18th 06 03:28 AM
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
US dates to UK?? Bill Excel Worksheet Functions 4 December 8th 05 06:44 PM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM


All times are GMT +1. The time now is 07:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"