Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatting cell and doing date arithmetic

Hi all,

This is probably a simple question for you all.

I would like to display the following:

dd-mmm-yy to dd+7-mmm-yy

for example, for today, the cell should read "13-Jan-2004 to 20-Jan-2004"

Any ideas?

Thanks,
Stephen


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Formatting cell and doing date arithmetic

On Tue, 13 Jan 2004 10:46:14 -0700, "Stephen Closson"
wrote:

Hi all,

This is probably a simple question for you all.

I would like to display the following:

dd-mmm-yy to dd+7-mmm-yy

for example, for today, the cell should read "13-Jan-2004 to 20-Jan-2004"

Any ideas?

Thanks,
Stephen



One way:

=TEXT(TODAY(),"dd-mmm-yyyy") & " to " & TEXT(TODAY()+7,"dd-mmm-yyyy")


--ron
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
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
Date arithmetic Terry Pinnell Excel Discussion (Misc queries) 6 December 31st 08 02:53 PM
Cell not formatting date correctly. RyanH Excel Discussion (Misc queries) 3 September 5th 08 03:14 AM
Date arithmetic: adding 1 month to prior end of month date manxman Excel Worksheet Functions 2 July 14th 06 09:29 PM
Row Formatting according to cell date entries. Sean Smith Excel Discussion (Misc queries) 3 May 12th 06 10:26 PM


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