LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Coding to show first _weekday_ prior to a date, when date calculation happens to fall on weekend?

On Wed, 08 Dec 2004 17:40:20 -0500, Ron Rosenfeld
wrote:

On Wed, 08 Dec 2004 07:43:31 -0500, StargateFan
wrote:

And the 3 week code is:
=IF(B3<"",SUM(B3-21),"")


=IF(B3<"",workday(B3-20,-1),"")



And the 1 week code is:
=IF(B3<"",SUM(B3-7),"")


=IF(B3<"",workday(B3-6,-1),"")

If the WORKDAY function is not available, and returns the #NAME? error, install


I did get that error. <g

and load the Analysis ToolPak add-in.


Thanks, I'll look for it. I wouldn't be able to do that at work, as
you can imagine, as I can't install anything but it'll be a good
add-in to have here at home.

On the Tools menu, click Add-Ins.
In the Add-Ins available list, select the Analysis ToolPak box, and then click
OK.
If necessary, follow the instructions in the setup program.


--ron


Thank you!

 
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
Show prior year based on date in other cell Munchkin Excel Worksheet Functions 3 June 17th 09 07:44 PM
formual to determine if date falls on weekend, adjust date to Mond Bradley Excel Discussion (Misc queries) 4 November 21st 08 06:19 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM
Validate date within range prior to calculation Natassja Excel Discussion (Misc queries) 1 January 24th 06 05:52 PM


All times are GMT +1. The time now is 11:19 PM.

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

About Us

"It's about Microsoft Excel"