Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default from date return week date range

I have a date in a cell. How can I return the value of the monday before and
the friday after that date?
Example:
input: 01/25/2007 (in this case a thursday)
output: 01/22/2007 - 01/26/2007 (monday - friday of above week)
Thanks in advance for any help!
--
ERahn
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default from date return week date range

Hi

Try
=TEXT(A1-WEEKDAY(A1)+2,"dd/mm/yyyy")&" - "&
TEXT(A1-WEEKDAY(A1)+6,"dd/mm/yyyy")

--
Regards

Roger Govier


"ERahn" wrote in message
...
I have a date in a cell. How can I return the value of the monday
before and
the friday after that date?
Example:
input: 01/25/2007 (in this case a thursday)
output: 01/22/2007 - 01/26/2007 (monday - friday of above week)
Thanks in advance for any help!
--
ERahn



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default from date return week date range


on A8 : your date.

=TEXT(A8+LOOKUP(WEEKDAY(A8),{1,2,3,4,5,6,7},{1,0,-1,-2,-3,-4,-5}),"mm/dd/yyyy")&"-"&TEXT(A8+LOOKUP(WEEKDAY(A8),{1,2,3,4,5,6,7},{5,4, 3,2,1,10,-1}),"mm/dd/yyyy")

sunday is the 1st day of the week range (of a date).
result should display the date of monday-friday.

happy holidays.....

"ERahn" wrote:

I have a date in a cell. How can I return the value of the monday before and
the friday after that date?
Example:
input: 01/25/2007 (in this case a thursday)
output: 01/22/2007 - 01/26/2007 (monday - friday of above week)
Thanks in advance for any help!
--
ERahn

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default from date return week date range

Roger and driller,
These both work great--you're my heroes!
Thank you so much for the help,
ERahn


"ERahn" wrote:

I have a date in a cell. How can I return the value of the monday before and
the friday after that date?
Example:
input: 01/25/2007 (in this case a thursday)
output: 01/22/2007 - 01/26/2007 (monday - friday of above week)
Thanks in advance for any help!
--
ERahn

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
Return Numeric Values Matching EXACT Date for Criteria Sam via OfficeKB.com Excel Worksheet Functions 4 October 20th 06 11:20 PM
How to return a value between date ranges Mary-Lou Excel Worksheet Functions 7 May 26th 06 10:00 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
Date range criteria and Pivot tables (again!) DerbyJim1978 Excel Worksheet Functions 3 July 13th 05 10:14 PM


All times are GMT +1. The time now is 02:37 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"