Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Box666
 
Posts: n/a
Default Date calculation

I have a date in cell G7 (say 21 Jun 2005), in a seperate text note I
want to say " as at the end of May 2005".

Where the date in G7 varies and the date in the text is always the
previous month.

Can any one assist please.

  #2   Report Post  
Max
 
Posts: n/a
Default Date calculation

Try:

="as at the end of "&TEXT(DATE(YEAR(G7),MONTH(G7)-1,1),"mmm yyyy")

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Box666" wrote in message
oups.com...
I have a date in cell G7 (say 21 Jun 2005), in a seperate text note I
want to say " as at the end of May 2005".

Where the date in G7 varies and the date in the text is always the
previous month.

Can any one assist please.



  #3   Report Post  
Domenic
 
Posts: n/a
Default Date calculation

Try...

=" as at the end of "&TEXT(DATE(YEAR(G7),MONTH(G7)-1,1),"mmm yyyy")

If you want the month displayed in full, change...

"mmm yyyy"

to

"mmmm yyyy"

Hope this helps!

In article .com,
"Box666" wrote:

I have a date in cell G7 (say 21 Jun 2005), in a seperate text note I
want to say " as at the end of May 2005".

Where the date in G7 varies and the date in the text is always the
previous month.

Can any one assist please.

  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default Date calculation

One way assuming the value in G7 is a numeric date and not text

="as at the end of "&TEXT(DATE(YEAR(G7),MONTH(G7)-1,DAY(G7)),"mmm yyyy")



--

Regards,

Peo Sjoblom

"Box666" wrote in message
oups.com...
I have a date in cell G7 (say 21 Jun 2005), in a seperate text note I
want to say " as at the end of May 2005".

Where the date in G7 varies and the date in the text is always the
previous month.

Can any one assist please.



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
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 08:04 PM
HELP - Date Range In 1 Cell Calculation Adam Excel Worksheet Functions 6 September 19th 05 09:24 PM
Date Range and calculation vgreen Excel Worksheet Functions 2 August 23rd 05 12:08 PM
Date calculation USCBrad Excel Worksheet Functions 3 June 21st 05 05:03 PM
Date Calculation Mukund Excel Worksheet Functions 3 January 11th 05 12:29 PM


All times are GMT +1. The time now is 12:22 AM.

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"