#### Date Subtraction #2

```Hi

I run Win2K with Excel 2K.

I would like to enter a date in a cell (eg Oct-05) and have the preceding 11
cells automatically put the previous months in.

Example:

In cell A15 = Oct-05 (entered)
In cell A14 = Sep-05 (automatically)
In cell A13 = Aug-05 (automatically)
In cell A12 = Jul-05 (automatically)

etc etc etc

Is there a formula that can do this?

Any help will be much appreciated...thanks !

John

```
 0
JohnCalder (178)
11/10/2005 12:34:57 AM
excel 39879 articles. 2 followers.

3 Replies
709 Views

Similar Articles

[PageSpeed] 44

```On Wed, 9 Nov 2005 16:34:57 -0800, "John Calder"
<JohnCalder@discussions.microsoft.com> wrote:

>Hi
>
>I run Win2K with Excel 2K.
>
>I would like to enter a date in a cell (eg Oct-05) and have the preceding 11
>cells automatically put the previous months in.
>
>Example:
>
>In cell A15 = Oct-05 (entered)
>In cell A14 = Sep-05 (automatically)
>In cell A13 = Aug-05 (automatically)
>In cell A12 = Jul-05 (automatically)
>
>etc etc etc
>
>Is there a formula that can do this?
>
>Any help will be much appreciated...thanks !
>
>John
>

A14:	=edate(\$A\$15,-CELL("row",\$A\$15)+ROW())

and drag/copy UP to A12

----------------------------
If the EDATE function is not available, and returns the #NAME? error, install

How?

In the Add-Ins available list, select the Analysis ToolPak box, and then click
OK.
If necessary, follow the instructions in the setup program.
------------------------

--ron
```
 0
ronrosenfeld (3122)
11/10/2005 12:45:32 AM
```How about just putting a formula in A14:A4?

Put this in A14 and drag up:
=IF(A15="","",DATE(YEAR(A15),MONTH(A15)-1,1))

I used the first of month for my date--is that ok?

John Calder wrote:
>
> Hi
>
> I run Win2K with Excel 2K.
>
> I would like to enter a date in a cell (eg Oct-05) and have the preceding 11
> cells automatically put the previous months in.
>
> Example:
>
> In cell A15 = Oct-05 (entered)
> In cell A14 = Sep-05 (automatically)
> In cell A13 = Aug-05 (automatically)
> In cell A12 = Jul-05 (automatically)
>
> etc etc etc
>
> Is there a formula that can do this?
>
> Any help will be much appreciated...thanks !
>
> John
>

--

Dave Peterson
```
 0
petersod (12004)
11/10/2005 12:46:33 AM
```Thanks Guys ! - Well Done !

"Dave Peterson" wrote:

> How about just putting a formula in A14:A4?
>
> Put this in A14 and drag up:
> =IF(A15="","",DATE(YEAR(A15),MONTH(A15)-1,1))
>
> I used the first of month for my date--is that ok?
>
> John Calder wrote:
> >
> > Hi
> >
> > I run Win2K with Excel 2K.
> >
> > I would like to enter a date in a cell (eg Oct-05) and have the preceding 11
> > cells automatically put the previous months in.
> >
> > Example:
> >
> > In cell A15 = Oct-05 (entered)
> > In cell A14 = Sep-05 (automatically)
> > In cell A13 = Aug-05 (automatically)
> > In cell A12 = Jul-05 (automatically)
> >
> > etc etc etc
> >
> > Is there a formula that can do this?
> >
> > Any help will be much appreciated...thanks !
> >
> > John
> >
>
> --
>
> Dave Peterson
>
```
 0
JohnCalder (178)
11/10/2005 2:42:02 AM

Similar Artilces:

Categorizing #2
To save for irregular budgeted and unbudgeted expenses, I transfer funds from checking into 2 accounts, a regular savings account, and an account which exists only on my computer. In Budget, both the budgeted expenses AND the 2 savings funds are categorized as expenses and therefore are counted twice. If I categorize the transfers as income, where do I show that the income came from? I'm using Money 2004. Thanks. lanecito | 2009-01-30 | 6:12:00 AM wrote: > To save for irregular budgeted and unbudgeted expenses, I transfer >funds from checking into 2 accounts, a >r...

filter by date and action
I have a table with three columns: Name Date Action Fred Today this Fred Today this Fred Today that Wilma Today this I want to sort by name and by date, but only if 'this' was done more than once on the same day, and not if 'that' was done on the same day,They have to perform this more than once, and they cannot have performed that on the same day. If not in excel, mssql maybe? Thanks, Harry On Aug 18, 1:53=A0pm, Harry <hamac...@gmail.com> wrote: > I have a table with three co...

Calculate Years/Months Between Dates and then Average
We are using the formula =DATEDIF(A1,NOW(),"y") & "." & DATEDIF(A1,NOW(),"ym") to calculate the years and months from an employee hire date. Is there an easy way to average the years and months for a group of employees with the results of that formula? You could use: =AVERAGE(A1:A10*1) Array-entered, meaning press ctrl-shift-enter. But you could also just change your current formula to: =1*(DATEDIF(A1,NOW(),"y") & "." & DATEDIF(A1,NOW(),"ym")) Then just use: =AVERAGE(A1:A10) which is *not* array-entered. ...

Paying Deep, Paying Wide, Paying YOU! #2
Isn't It Time YOU Got Paid Again? INCREDIBLE new system sends \$20 payments DIRECT to your your chosen online account You just need one of these; StormPay, Intgold, or Paypal account to get paid AGAIN and AGAIN It NEVER STOPS! http://www.gotpaidagain.com/lc1flash.php?id=2917 You make a one-time purchase of Super Affiliate Locator and you get FULL training on how to turn that into a NEVER-ENDING stream of \$20 bills! This is COMPLETELY UNIQUE! JOIN NOW! http://www.gotpaidagain.com/lc1flash.php?id=2917 ...

Our accounting department needs/wants to have all RMS SO reporting by business date opposed to transaction date. Usually these are the same unless you have sales and batches that close after midnight. For our store I would like to set 3 a.m. as the business day closing time. So when I run any type of reports I would like to get the information for a business date (range) starting at 3 a.m. till 3 a.m. the next day. I guess I could accomplish this by subtracting 3 hours from all the transaction (date and) times but I would have to do this for every single report which would be a lot of ...

911: v3.0 and v1.2 appointments
hi all, currently we are having problems when synchronzing appointments belonging to our previous v1.2 environment being upgraded to v3.0. newly created appointments, done in v3.0, do not face a problem. how can we identify these old 1.2 appointments (sql script, etc.)? thanks in advance, fritz -- Fritz Theiss The v1.2 Outlook appointments/contacts/tasks should upgraded over properly via the v3.0 Outlook Client setup. Did it just affacted the appointments? Here is a way to list out the v1.2 appointments: Outlook Calender>>view appointment list (similar to contact list), add co...

Post Dated Checks
I had to prepare some post dated checks and we did not have fiscal periods set up yet to match the dates of the checks. Currently the check batches are waiting to be posted. What is the best way to handle post dated checks? If I create new fiscal years to match these dates, I will end up having 4 Open years. Is this the only way to do it? You can manage post dated checks in Microsoft Dynamics GP with the Payment Document Management module available on the Feature Pack 1 DVD image. For more info, take a look at MVP Mohammad Daoud's post on the subject at: https://communit...

SystemParametersInfo #2
I am trying to change the desktop wallpaper using my own application. When I run the following code the user settings in the control pannel are changed, but the settings are not applied to the desktop on my Windoews 2000 Serivce Pack 3 system at work. What could be that problem? Is there a way to block the apply message? What can I do the get this to work? PS: The same code work fine on a XP system that I have at home. BOOL b = SystemParametersInfo( SPI_SETDESKWALLPAPER , 0, "Picture3.bmp", SPIF_UPDATEINIFILE ); b = SystemParametersInfo( SPI_SETDESKWALLPAPER , ...

Remove "Date: Yesterday" or "Date: Monday" from Outlook Inbox?
Outlook mail inbox now has headers that tell you what day the the email was sent. I find this visually annoying. Each emailalready has the time and day it was sent. I don't need the daily titles in the midst of the list of emails. How do I make them go away? I think you are talking about OL 2003 & the Arrange in Groups setting. Change it in View, Arrange by, uncheck Show in Groups. "silky" wrote: > Outlook mail inbox now has headers that tell you what day the the email was > sent. I find this visually annoying. Each emailalready has the time and day >...

strange date format problem
Hi, I downloaded some data on excel using Bloomberg. One column has dates and the other has numbers. Dates appear as 01/01/1980 format which I want in Jan-80 format. I have changed the format cell properties but it still appears as 01/01/1980. I have to goto individual cell and press F2 <enter> so see the effect. Dont know why? I cant even copy paste format after that .... TIA/amag I am not sure, but is your workbook set to Auto-Recalculate? Try pushing <F9> to do a manual re-calculation, see if that changes the formats. If it does, go to Tools (on the menu bar), Options, Ca...

changing case #2
Hi, is there any way I can change the letter case in Excel. I know thi can be done in word by going to format and change case, but am unsur how to do it in EXcel. I simply want to change everything to capital letters. Please let me know, thank you very much for your help. Sheeta -- Message posted from http://www.ExcelForum.com Hi Sheetal There is a function =UPPER(A1) but if you want to change all the cells then use a macro See this webpages http://www.mvps.org/dmcritchie/excel/proper.htm Or http://www.cpearson.com/excel/case.htm Here is a Macro for changing text cells in the select...

How to sort by name then date?
I would like to look through all the emails to a particular person. If I click on the "To" column I can see all the emails to a particular person (actually there is a problem with that which I will mention next) but they seem to be in random order. Is there a way to have them sorted by date? (i.e. by name first, then by date). Actually, sorting on the "To" column does not get all the emails sent to a given email address. Because Outlook uses the "display as" field. It will often give different "display as" names to the same email address. C...

Concatenate including a date so that the date appears as a date
When I try to join the contents of several cells, one of which is a date and time obtained from =now(), the date and time part appears as a number. How can I make it appear as a date and time? I have tried changing the cell formats - probably there is a combination that works but I haven't found it. I also tried copying the original date cell to another cell and changing the latter cell's format and concatenating using that latter cell, but still no success. Use the TEXT function. For example, =TEXT(NOW(),"mmmm d, yyyy") would give January 6, 2010 "dd...

if statement with dates #2
I would like to have a statement like: IF(a1>0,1/1/2004) with 1/1/2004 beint a date. EXCEL is interpreting 1/1/2004 as an arithmetic statement and giving me the result of the arithemtic. I could put in the numeric offste for the date and write IF(a1>0,37987), formatting the cell as a date, but this seems awkward. What else can I do? TIA, Sanford ...

Counting Dates?
=COUNTIF(A1:A100,"<" & NOW()) This works good for specific cells. I have a similar question. How would I do the same thing given that: 1) You only have a starting date 2) Your only wanting to count work days (in this case 4 day/wk) up to NOW() Thank you for all your help. Aviator On Thu, 6 Jan 2005 12:53:03 -0800, "Aviator" <Aviator@discussions.microsoft.com> wrote: >=COUNTIF(A1:A100,"<" & NOW()) > >This works good for specific cells. I have a similar question. > >How would I do the same thing given that: >1) You only ha...

Count Unique Cells, within a date range (dates stored in separate column).
Hello All: I am attempting to create a formula that will count the number of unique cells (alpha-numeric) in an entire column (no set length, so ex: "\$B:\$B"). This count will be based on a date range (Between 2 dates). The dates are stored in another column (Ex: "\$A:\$A"). The following is an example of the cells. Dates PO_Num 1/2/2010 A123456 1/3/2010 B453453 2/2/2010 A123456 3/4/2010 C2342F3K 4/3/2010 123456 I would like to know a formula that can count the number of different PO's based on a given date range. Please help me if you...

Service Pack #2
Is there any SP for GP8.0? According to our reseller SP is not release yet. Are there any way we can download the sp outside mbs web site? Thank you, Dave Yes there is. SP1a was released a few days ago. You should be able to log in to customersource and download it. HS "b0rne0" <b0rne0b0rne0@gmail.com> wrote in message news:O3k9qDb1EHA.1296@TK2MSFTNGP10.phx.gbl... > Is there any SP for GP8.0? According to our reseller SP is not release yet. > Are there any way we can download the sp outside mbs web site? > > Thank you, > Dave > > We cannot access ...

COUNTIF Function #2
Hi, This is URGENT. Problem: In MS Excel, Column A contains values from A to Z and Column B contains value from 1 to 5. Now, I need to count the records that have "A" has value in Column A and "3" in Column B. I had tried with COUNTIF function but it works only for one criteria, i.e. it can be used if I want to count the records with value "A" in Column A or the records with "5 in Column B. Is there any function that can be used for this purpose. Pls treat this very urgent. ------------------------------------------------ ~~ Message posted from http://www...

2 x Exchange servers & Terminal Services over VPN
We have 2 offices (UK & AUS) that are connected via firewall-to-firewall VPN. Each office has an Exchange server (UK=2000, AUS=2003) and a trust relationship has been established between the two offices. The UK users only have mailboxes on the UK Exchange server and vica-versa. AUS users connect to the UK's Terminal Services server over the VPN. When they send an e-mail via Outlook in their TS session, it can take up to a minute for the e-mail to be sent -- presumably, the delay in the instance of Outlook taking it's time to talk to the AUS Exchange server -- and we'd li...

An expression for dates from and to
I am trying to create an expression to select items from a date field falling from a certain date to a certain date. I am obviously missing something in my expression. The field name is DateComplete. How can I set up this expression to pull date from a certain date to a certain date? -- Ronnie Hi Ronnie, An example of the SQL would be: SELECT * FROM [TABLE NAME] WHERE DateComplete Between #1/1/2006# And #1/1/2007# ; On May 23, 3:52 pm, Ronnie <Ron...@discussions.microsoft.com> wrote: > I am trying to create an expression to select items from a date field falling > from a...