#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Date Ranges

Please can someone tell me if ther is a way (formula or macro) that I could
use to return a specific date (i.e 5th of Month - and year - e.g 5/10/06) for
any dates input in another cell

That is to say if I type 4/10/06 in one cell I can get a value of 5/10/06 in
the destiantion cell and if i input 6/11/06 in my cell i need to get value of
5/12/06 in my destination cell (working with UK date format).

Any help appreciated
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Date Ranges

=MIN(DATE(YEAR(A1),MONTH(A1)+{1,2},DAY(A1)*{1,0}))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"wbiggchiefy" wrote in message
...
Please can someone tell me if ther is a way (formula or macro) that I

could
use to return a specific date (i.e 5th of Month - and year - e.g 5/10/06)

for
any dates input in another cell

That is to say if I type 4/10/06 in one cell I can get a value of 5/10/06

in
the destiantion cell and if i input 6/11/06 in my cell i need to get value

of
5/12/06 in my destination cell (working with UK date format).

Any help appreciated



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date Ranges


If you're inputting the date in A1 try

=DATE(YEAR(A1),MONTH(A1)+(DAY(A1)5),5)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=510852

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Date Ranges

Thanks , That works perfectly. I'm impressed.

Chiefy.

"daddylonglegs" wrote:


If you're inputting the date in A1 try

=DATE(YEAR(A1),MONTH(A1)+(DAY(A1)5),5)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=510852


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Date Ranges

Thanks for the reply Bob - it doesn't return the value I require - maybe my
question was misworded , however this will come in useful for something else
I am working on.

Chiefy.

"Bob Phillips" wrote:

=MIN(DATE(YEAR(A1),MONTH(A1)+{1,2},DAY(A1)*{1,0}))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"wbiggchiefy" wrote in message
...
Please can someone tell me if ther is a way (formula or macro) that I

could
use to return a specific date (i.e 5th of Month - and year - e.g 5/10/06)

for
any dates input in another cell

That is to say if I type 4/10/06 in one cell I can get a value of 5/10/06

in
the destiantion cell and if i input 6/11/06 in my cell i need to get value

of
5/12/06 in my destination cell (working with UK date format).

Any help appreciated




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
Date Ranges Bruce D. Excel Discussion (Misc queries) 2 May 27th 10 09:53 PM
sum for date ranges Anthony Excel Discussion (Misc queries) 1 October 29th 09 04:51 AM
How do I get a new calculated date from different date ranges? Ann LeBlanc Excel Worksheet Functions 3 June 26th 09 01:56 PM
compare date to various date ranges and sum value al Excel Worksheet Functions 2 January 10th 07 10:17 AM
Using Date Ranges tchillie Excel Programming 2 May 10th 04 07:11 PM


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