Return date range :: 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

Return date range
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

klynn
Board Regular


Joined: 09 Jun 2003
Posts: 10

Flag: Blank

Status: Offline

 Reply with quote  

Return date range

My spreadsheet has a list of dates in one column. I need to know the week each date falls into. Sunday to Saturday.
Example" if a1 has a value of 09/18/2003 I am looking for a formula that will bring back the week range for that date. Range starting with Sunday-Saturday. In this case the return in b1 would be 09/14/2003 - 09/20/2003.

Any help would be greatly appreciated.
Thanks

Post Sun Sep 21, 2003 1:39 am 
 View user's profile Send private message

Yogi Anand
MrExcel MVP


Joined: 13 Mar 2002
Posts: 5749
Location: Michigan USA

Status: Offline

 Reply with quote  

Re: Return date range

Hi klynn:

Please look at the following simulation ...

Microsoft Excel - Book1___Running: xl2002 XP : OS = Windows XP
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
1
DateSundayOfWeekSaturdayOfWeek 
2
09/18/0309/14/0309/20/03 
3
08/18/0308/17/0308/23/03 
4
07/18/0307/13/0307/19/03 
Sheet1 

[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


Does it help? If I have misunderstood your question -- my apologies!
_________________
Regards!
Yogi Anand

Post Sun Sep 21, 2003 2:52 am 
 View user's profile Send private message

klynn
Board Regular


Joined: 09 Jun 2003
Posts: 10

Flag: Blank

Status: Offline

 Reply with quote  

Re: Return date range

Yogi, Thank you very much for your help. Your reply was exactly what I was looking for. icon_biggrin.gif

Post Sun Sep 21, 2003 8:33 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.