Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Sam Sam is offline
external usenet poster
 
Posts: 699
Default excel weekday function

Hi,

If i have a date, say 10/07/2009 and i want to have a series of cells next
to it that return the previous weekday, say 09/07/2009...and then if i change
the first cell, all of the corresponding cells update. Thanks everyone.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default excel weekday function


SAM;413624 Wrote:
Hi,

If i have a date, say 10/07/2009 and i want to have a series of cells
next
to it that return the previous weekday, say 09/07/2009...and then if i
change
the first cell, all of the corresponding cells update. Thanks everyone.


Hi,
if your original cell is A1, in B1 enter =a1-1 and so forth


--
Pecoflyer

Cheers -

'Firefox 3.5' (http://www.mozilla.com/en-US/firefox/all-beta.html)
really IS fast !
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=115220

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default excel weekday function

Since you said "weekday", I'm assuming you want to skip Saturdays and
Sundays. Give this formula a try...

=WORKDAY(A1,-1)

This function is built into XL2007; for earlier versions of Excel, the
WORKDAY function is part of the Analysis ToolPak add-in so, if you don't
have this loaded, click Tools/Add Ins on the menu bar and put a check mark
next to "Analysis ToolPak". If you check the help files for this function,
you will see it has an optional 3rd argument which will allow you to skip
over holidays too.

--
Rick (MVP - Excel)


"SAM" wrote in message
...
Hi,

If i have a date, say 10/07/2009 and i want to have a series of cells next
to it that return the previous weekday, say 09/07/2009...and then if i
change
the first cell, all of the corresponding cells update. Thanks everyone.


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
Weekday function Not right Wanna Learn Excel Discussion (Misc queries) 1 May 2nd 08 03:01 PM
Weekday function? Cam Excel Discussion (Misc queries) 1 February 26th 08 08:58 PM
weekday function in excel 2007 wrong geradok Excel Discussion (Misc queries) 5 October 25th 07 10:14 PM
Using Weekday function with no add-ins Basil Excel Worksheet Functions 3 April 30th 07 06:20 PM
WEEKDAY() function: display TEXT not numeric weekday tom Excel Discussion (Misc queries) 3 November 21st 06 04:32 PM


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