Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 8 Mar 2005 06:59:04 -0800, LyndieBee
wrote:

I'd like to be able to evaluate the current date and have the name of the
previous month display in a cell. For example if I'm in cell A1 I want the
statement to check today's date (March 8, 2005) and return last month's month
"April". Can I accomplish this with an IF statement? Any other function?
Many thanks, Lyndie


To return the previous month,

=TEXT(A1-DAY(A1),"mmmm")

To return the name of the next month:

=TEXT(A1-DAY(A1)+33-DAY(A1-DAY(A1)+32),"mmmm")

Simpler might be to just compute a date in the month, and format the cell as
"mmmm"

Then the above formulas become:

Previous month:

A1-DAY(A1)

Next month:

A1-DAY(A1)+33-DAY(A1-DAY(A1)+32)


--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
Date related IF statement Miss Candace Excel Worksheet Functions 1 February 28th 05 06:22 PM
Date related IF statement Miss Candace Excel Worksheet Functions 1 February 28th 05 04:32 PM
date and time ladimples247 New Users to Excel 2 February 16th 05 08:52 PM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


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