Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default SIMPLE DATE FORMULA !


I need two formulas:

1. One that always shows only the month number of the current month in
cell A and
2. One that always shows only the month number of the previous month in
cell B

For example-
In January 2004, cell A will show 1 and cell B 12.

In March 2004, cell A will show 3 and cell B 2.

I would appreciate any help.Thanks.

~Flex~


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default SIMPLE DATE FORMULA !

A1: =MONTH(TODAY())
B1: =MONTH(DATE(YEAR(TODAY()),A1,0))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"flex zax" wrote in message
...

I need two formulas:

1. One that always shows only the month number of the current month in
cell A and
2. One that always shows only the month number of the previous month in
cell B

For example-
In January 2004, cell A will show 1 and cell B 12.

In March 2004, cell A will show 3 and cell B 2.

I would appreciate any help.Thanks.

~Flex~


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default SIMPLE DATE FORMULA !

Thanks.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Help w/simple Date Formula please Dax Arroway Excel Worksheet Functions 6 June 8th 09 10:16 PM
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Simple problem, simple formula, no FUNCTION ! Ron@Buy Excel Worksheet Functions 6 September 28th 07 04:51 PM
Most simple formula to calculate date+ 30 months? KR Excel Worksheet Functions 4 September 28th 05 07:57 PM
Simple (I Think) Date Formula Needed Big Rick Excel Discussion (Misc queries) 4 September 15th 05 01:47 AM


All times are GMT +1. The time now is 08:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"