calculate dates :: MrExcel Message Board



 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

calculate dates
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

Swifey
Board Master


Joined: 17 Jan 2003
Posts: 303


Status: Offline

 Reply with quote  

calculate dates

In my spreadsheet colT is the order date and in colY is the dispatch date. - both columns have a date format of dd/mm/yy

What Iím trying to do and failed miserably is say - if dispatch date is 48 more than the order date state "More than 48 hours delivery"

Could you please help

Thanks
Swifey

Post Fri Sep 19, 2003 3:55 pm 
 View user's profile Send private message

Andrew Poulsom
MrExcel MVP


Joined: 22 Jul 2002
Posts: 8266

Flag: Uk

Status: Offline

 Reply with quote  

Re: calculate dates

Something like:

=IF((Y2-T2)>2,"More than 48 hours delivery","")

Post Fri Sep 19, 2003 3:59 pm 
 View user's profile Send private message

Swifey
Board Master


Joined: 17 Jan 2003
Posts: 303


Status: Offline

 Reply with quote  

That simple I've been try Intmonth - I feel really stupid now

Thanks
Swifey

Post Fri Sep 19, 2003 4:03 pm 
 View user's profile Send private message

Swifey
Board Master


Joined: 17 Jan 2003
Posts: 303


Status: Offline

 Reply with quote  

Re: calculate dates

Hi is it possible to calculate how day its over the 48 hours not taking into account weekends?

Regards
Lynda

Post Fri Sep 19, 2003 4:45 pm 
 View user's profile Send private message

Swifey
Board Master


Joined: 17 Jan 2003
Posts: 303


Status: Offline

 Reply with quote  

Re: calculate dates

Hi is it possible to calculate how day its over the 48 hours not taking into account weekends?

Regards
Lynda

Post Fri Sep 19, 2003 4:46 pm 
 View user's profile Send private message

Andrew Poulsom
MrExcel MVP


Joined: 22 Jul 2002
Posts: 8266

Flag: Uk

Status: Offline

 Reply with quote  

Re: calculate dates

Have a look at the WORKDAY function in Help. It's in the Analysis ToolPak Add-In.

Post Fri Sep 19, 2003 4:48 pm 
 View user's profile Send private message

Iridium
Board Master
Board Master


Joined: 16 Jul 2002
Posts: 2581
Location: Walsall, England
Flag: England

Status: Offline

 Reply with quote  

Re: calculate dates

Have a look at NETWORKDAYS in the xl help file
_________________

Post Fri Sep 19, 2003 4:49 pm 
 View user's profile Send private message

Andrew Poulsom
MrExcel MVP


Joined: 22 Jul 2002
Posts: 8266

Flag: Uk

Status: Offline

 Reply with quote  

Re: calculate dates

quote:
Originally posted by Iridium:
Have a look at NETWORKDAYS in the xl help file


Oops! That's what I meant really. Time to go home. icon_redface.gif

Post Fri Sep 19, 2003 4:55 pm 
 View user's profile Send private message

Iridium
Board Master
Board Master


Joined: 16 Jul 2002
Posts: 2581
Location: Walsall, England
Flag: England

Status: Offline

 Reply with quote  

Re: calculate dates

quote:
Originally posted by Andrew Poulsom:
quote:
Originally posted by Iridium:
Have a look at NETWORKDAYS in the xl help file


Oops! That's what I meant really. Time to go home. icon_redface.gif


All the help you've given me Andrew I think we'll let you off! icon_wink.gif
_________________

Post Fri Sep 19, 2003 5:00 pm 
 View user's profile Send private message

Iridium
Board Master
Board Master


Joined: 16 Jul 2002
Posts: 2581
Location: Walsall, England
Flag: England

Status: Offline

 Reply with quote  

Re: calculate dates

Does this work?

C1=IF(NETWORKDAYS(A1,B1)>2,"More than 48 hours delivery","")

A1=order date
B1=Despatch date

HTH
_________________

Post Fri Sep 19, 2003 5:08 pm 
 View user's profile Send private message

Swifey
Board Master


Joined: 17 Jan 2003
Posts: 303


Status: Offline

 Reply with quote  

Dont worry about it we all have our senior moments. Thank you your advice it was most helpful.

Regards

Post Tue Sep 23, 2003 10:50 am 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.