#1   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Date Questions

I have a comparison report I must do every week that need the below periods.
I would like for my Queries to calulate these dates automatically without me
having to enter the specific date ranges. The periods are as follows:

- Two weeks prior to this week. Depending when I do this report weather it
is Monday or Tuesday the information is for the 2 full work weeks (Sunday
through the 2nd Saturday) prior to this week, not two weeks prior to Monday
or Tuesday . So if I do the report ths week the information should be from
Sunday 1-7-07 to the 2nd Saturday 1-20-07. How do I write an expression to
give me the information for the the two work weeks prior to this week
regardless of when I do the report?

- Two week period prior to the one above, for the report I do this week the
period would be from Sunday 12-24-06 to Saturday 1-6-07. How do I write an
expression that would give me this periods information?

- Year to date for current year

- Year to date for perivious year

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default Date Questions

Dan,

With the date in A2
Start date: =A2-WEEKDAY(A2)+1-14 or A2-WEEKDAY(A2)-13
End date: =A2-WEEKDAY(A2)
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"Dan" wrote in message
...
I have a comparison report I must do every week that need the below
periods.
I would like for my Queries to calulate these dates automatically without
me
having to enter the specific date ranges. The periods are as follows:

- Two weeks prior to this week. Depending when I do this report weather
it
is Monday or Tuesday the information is for the 2 full work weeks (Sunday
through the 2nd Saturday) prior to this week, not two weeks prior to
Monday
or Tuesday . So if I do the report ths week the information should be
from
Sunday 1-7-07 to the 2nd Saturday 1-20-07. How do I write an expression to
give me the information for the the two work weeks prior to this week
regardless of when I do the report?

- Two week period prior to the one above, for the report I do this week
the
period would be from Sunday 12-24-06 to Saturday 1-6-07. How do I write
an
expression that would give me this periods information?

- Year to date for current year

- Year to date for perivious year

Thanks



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
count number of occurences on a particular date [email protected] Excel Worksheet Functions 4 December 7th 06 09:11 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
Date Format Questions Mestrella31 Excel Discussion (Misc queries) 2 January 17th 05 08:36 PM


All times are GMT +1. The time now is 11:54 AM.

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

About Us

"It's about Microsoft Excel"