ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Formatting cell and doing date arithmetic (https://www.excelbanter.com/excel-programming/287750-formatting-cell-doing-date-arithmetic.html)

Stephen Closson

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



Ron Rosenfeld[_3_]

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


All times are GMT +1. The time now is 04:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com