Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel date formating 1

Status
Not open for further replies.

Freckles

Technical User
May 1, 2000
138
US
The following works PERFECT in Access 97 Reports:

=(format(NOW()-31,"mmmm yyyy") & " Revenue Results")

How can I duplicate it in Excel??? ::) Deb Koplen
deb.koplen@verizon.com

A person can stand almost anything except a succession of ordinary days.
 
Setup a table of month numbers and names, name tha table's range as "MonthNames" and use the following:

=VLOOKUP(MONTH(NOW()),MonthNames,2,FALSE)&" "&YEAR(NOW())&" Revenue Results"
 
The table should look like this:

MthNo MthName
1 January
2 February
3 March
4 April
5 May
6 June
7 July
8 August
9 September
10 October
11 November
12 December
 
Maybe this?...


=(TEXT(NOW()-31,"mmmm yyyy") & " Revenue Results")
 
PERFECT! Thanks :-X ::) Deb Koplen
deb.koplen@verizon.com

A person can stand almost anything except a succession of ordinary days.
 
Hi Guys,

Just reviewed this posting and noticed that BOTH "Shardy" and "ETID" contributed useful solutions - but didn't receive a STAR ...so I thought I should fix that. I'm sure it was just an oversight on the part of "Freckles".

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top