Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
braadi
 
Posts: n/a
Default formula for month(s) prior to actual

yesterday i asked for a formula that would give month and year prior to
actual based on excel time and date, and the answer i received worked. i
also need the formula(s) for months 2 and 3 prior to actual to provide data
in a 3 month trend (i.e. a report generated in december would provide data
for october and september as well). i can't figure out how to tweak the
formula from yesterday to work.

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY()),0),"MMMYYY Y")


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default formula for month(s) prior to actual

Just subtract from the month

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())-1,0),"MMMYYYY")

will give you Oct2005

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())-2,0),"MMMYYYY")

Sep2005

and so on


--

Regards,

Peo Sjoblom

"braadi" wrote in message
...
yesterday i asked for a formula that would give month and year prior to
actual based on excel time and date, and the answer i received worked. i
also need the formula(s) for months 2 and 3 prior to actual to provide

data
in a 3 month trend (i.e. a report generated in december would provide data
for october and september as well). i can't figure out how to tweak the
formula from yesterday to work.

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY()),0),"MMMYYY Y")




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default formula for month(s) prior to actual

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())-1,0),"MMMYYYY")

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())-2,0),"MMMYYYY")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"braadi" wrote in message
...
yesterday i asked for a formula that would give month and year prior to
actual based on excel time and date, and the answer i received worked. i
also need the formula(s) for months 2 and 3 prior to actual to provide

data
in a 3 month trend (i.e. a report generated in december would provide data
for october and september as well). i can't figure out how to tweak the
formula from yesterday to work.

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY()),0),"MMMYYY Y")




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default formula for month(s) prior to actual

Hi

Try
=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())-n,1),"MMMYYYY")
Change n to 1, 2 and 3 respectively to get the previous months -1, -2, -3


Regards

Roger Govier


braadi wrote:
yesterday i asked for a formula that would give month and year prior to
actual based on excel time and date, and the answer i received worked. i
also need the formula(s) for months 2 and 3 prior to actual to provide data
in a 3 month trend (i.e. a report generated in december would provide data
for october and september as well). i can't figure out how to tweak the
formula from yesterday to work.

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY()),0),"MMMYYY Y")


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
braadi
 
Posts: n/a
Default formula for month(s) prior to actual

right on. i love this discussion board. thank you so much.

"Peo Sjoblom" wrote:

Just subtract from the month

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())-1,0),"MMMYYYY")

will give you Oct2005

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())-2,0),"MMMYYYY")

Sep2005

and so on


--

Regards,

Peo Sjoblom

"braadi" wrote in message
...
yesterday i asked for a formula that would give month and year prior to
actual based on excel time and date, and the answer i received worked. i
also need the formula(s) for months 2 and 3 prior to actual to provide

data
in a 3 month trend (i.e. a report generated in december would provide data
for october and september as well). i can't figure out how to tweak the
formula from yesterday to work.

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY()),0),"MMMYYY Y")





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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
How to solve a formula so that it returns actual answer if negati. Wayne Excel Discussion (Misc queries) 2 December 22nd 04 07:46 PM


All times are GMT +1. The time now is 11:35 PM.

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"