Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
I am creating a time card. I would like a formula that will calculate (show) Fridays date closest to the date when the spreadsheet is opened. For example If I opened the sheet today the formula would populate yesterdays date. If I opened the sheet on Tuesday, the sheet formula will populate next Fridays date, etc€¦ Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Assuming the date of the sheet opening is in A1.....
=TEXT(A1+LOOKUP(WEEKDAY(A1),{1,2,3,4,5,6,7},{-2,-3,3,2,1,0,-1}),"mm/dd/yyyy dddd") Vaya con Dios, Chuck, CABGx3 "Jim" wrote in message ... Hello, I am creating a time card. I would like a formula that will calculate (show) Fridays date closest to the date when the spreadsheet is opened. For example If I opened the sheet today the formula would populate yesterdays date. If I opened the sheet on Tuesday, the sheet formula will populate next Fridays date, etc. Thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Try this formula =TODAY()+CHOOSE(WEEKDAY(TODAY()),-2,-3,3,2,1,0,-1) -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=501413 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
perfect
"CLR" wrote: Assuming the date of the sheet opening is in A1..... =TEXT(A1+LOOKUP(WEEKDAY(A1),{1,2,3,4,5,6,7},{-2,-3,3,2,1,0,-1}),"mm/dd/yyyy dddd") Vaya con Dios, Chuck, CABGx3 "Jim" wrote in message ... Hello, I am creating a time card. I would like a formula that will calculate (show) Fridays date closest to the date when the spreadsheet is opened. For example If I opened the sheet today the formula would populate yesterdays date. If I opened the sheet on Tuesday, the sheet formula will populate next Fridays date, etc. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to calculate a cube root | New Users to Excel | |||
Shading or Choosing closest | Excel Worksheet Functions | |||
Spreadsheet Won't Calculate | Excel Discussion (Misc queries) | |||
Match Closest Results from Data Array | Excel Discussion (Misc queries) | |||
How do you calculate the nth root of a number in Excel 2003? | Excel Worksheet Functions |