Yorkshire Divers

Dive Logs
Go Back   YD Scuba Diving Forums > Non-Diving Related Forums > Non Diving Posts
User Name
Password

Welcome to the YD Scuba forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Non Diving Posts: Discuss EXCEL HELP: Ignoring weekend days in the Non-Diving Related Forums forums: Hi All, This should be easy, but I cannot make it work. I have a schedule and by entering teh ...

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 15-07-08, 02:54 PM
Juz's Avatar
Juz Juz is offline
SENIOR Modorator - The others are my juniors
 

Join Date: Nov 2003
Location: High Wycombe, Bucks
Posts: 4,620
Thanks: 1
Thanked 1 Time in 1 Post
Juz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the water
EXCEL HELP: Ignoring weekend days

Hi All,

This should be easy, but I cannot make it work.

I have a schedule and by entering teh delivery date it automatically calculates all the other dates using formulas (eg B12-1 - gives the day before B12).

I want to change this formula so that it ignores weekends such that if B12 is a Monday, that B12-1 does not return Sunday but instead retruns Friday.

I have tried the excel functions NETWORKDAYS and WEEKDAYS but can't get it right.

Help

Juz
__________________
~KINKY DIVERS~
Because going down is fun

Now known as No. 1 son of a pikey diver........ Oh the shame of it

We are all prompted by the same motives, all deceived by the same fallacies, all animated by hope, obstructed by danger, entangled by desire and seduced by pleasure. Welcome to Kinky Divers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 15-07-08, 03:01 PM
Juz's Avatar
Juz Juz is offline
SENIOR Modorator - The others are my juniors
 

Join Date: Nov 2003
Location: High Wycombe, Bucks
Posts: 4,620
Thanks: 1
Thanked 1 Time in 1 Post
Juz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the waterJuz is never out of the water
Ignore that, think I've fixed it:

=IF(WEEKDAY(B12)=2,B12-4,IF(WEEKDAY(B12)=3,B12-4,B12-2))

Juz
__________________
~KINKY DIVERS~
Because going down is fun

Now known as No. 1 son of a pikey diver........ Oh the shame of it

We are all prompted by the same motives, all deceived by the same fallacies, all animated by hope, obstructed by danger, entangled by desire and seduced by pleasure. Welcome to Kinky Divers!

Last edited by Juz : 15-07-08 at 03:09 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 15-07-08, 03:11 PM
David's Avatar
The smell of freshly turned delrin is more powerful
 

Join Date: Aug 2004
Location: Sussex > .
Posts: 1,940
Thanks: 0
Thanked 0 Times in 0 Posts
David communes with fishDavid communes with fishDavid communes with fishDavid communes with fishDavid communes with fishDavid communes with fishDavid communes with fishDavid communes with fishDavid communes with fishDavid communes with fishDavid communes with fish
you need to factor in if its been raining too or windy... excel wont help in booking diving trips... :-)
__________________
NZUA - Padi - Bsac - TDI - BSAC expired - Clone copy -
Puddle Jumper
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 15-07-08, 03:51 PM
Driving my truck with my high-heels on...
 

Join Date: Sep 2004
Location: SE
Posts: 3,021
Thanks: 9
Thanked 5 Times in 3 Posts
colinicky is a scuba diver - cold watercolinicky is a scuba diver - cold watercolinicky is a scuba diver - cold watercolinicky is a scuba diver - cold watercolinicky is a scuba diver - cold watercolinicky is a scuba diver - cold watercolinicky is a scuba diver - cold watercolinicky is a scuba diver - cold watercolinicky is a scuba diver - cold watercolinicky is a scuba diver - cold watercolinicky is a scuba diver - cold water
What about bank holidays & leap years ?
__________________
Colin

I trust my rebreather completely ,
I just don't trust the user

onwards & downwards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 15-07-08, 04:29 PM
Member
 

Join Date: Aug 2005
Location: wiltshire
Posts: 312
Thanks: 0
Thanked 0 Times in 0 Posts
PBrown is a scuba diver - warm waterPBrown is a scuba diver - warm waterPBrown is a scuba diver - warm waterPBrown is a scuba diver - warm waterPBrown is a scuba diver - warm waterPBrown is a scuba diver - warm waterPBrown is a scuba diver - warm waterPBrown is a scuba diver - warm waterPBrown is a scuba diver - warm waterPBrown is a scuba diver - warm waterPBrown is a scuba diver - warm water
Quote:
Originally Posted by Juz
Ignore that, think I've fixed it:

=IF(WEEKDAY(B12)=2,B12-4,IF(WEEKDAY(B12)=3,B12-4,B12-2))
This is slightly neater:
=IF(OR(WEEKDAY(B12)=2,WEEKDAY(B12)=3),B12-4,B12-2)

Quote:
Originally Posted by colinicky
What about bank holidays & leap years ?
Investigate the WORKDAY function, it allows you to specify holidays (I'd put them in a separate sheet and do a lookup).

cheers,
Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Sponsored Links

Yorkshire Divers - RSS Feed
All times are GMT +1. The time now is 08:14 AM.
Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Trademark and all rights reserved : © YD.com Ltd (2006)
YD.com Ltd (Registered in England - 05886696)
Other sites : Golf Clubs | New Premiership Football Kits | MP3 Portable Players | MP3 Players For Sale | Replica Football Kits | Cheap Football Boots | Compare MP3 Player Prices | Cheap Christmas Gift Ideas | Cheap Replica Shirt

Forums Directory