Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Return Numeric Values Matching EXACT Date for Criteria | Excel Worksheet Functions | |||
How to return a value between date ranges | Excel Worksheet Functions | |||
Help PLEASE! Not sure what answer is: Match? Index? Other? | Excel Worksheet Functions | |||
How to count dates within a certain range in a column with mutiple date range entries | Excel Worksheet Functions | |||
Date range criteria and Pivot tables (again!) | Excel Worksheet Functions |