+ Reply to Thread
Results 1 to 4 of 4

How to create a Rolling Month Formula.

  1. #1
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    How to create a Rolling Month Formula.

    Hi All,

    Im looking for a formula that looks at 2 months figures, say April & May, and works out the difference between the 2.

    When new data becomes available for June and the remainder of the year I would like the formula to be able to recognise this and calculate performance based only on the last 2 months available data.

    Ive attached a small data file with a scenario, if anyone would be able to have a look.

    Many Thanks

    B
    Attached Files Attached Files
    Last edited by singerbatfink; 11-18-2010 at 08:23 AM. Reason: incorrect title

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to create a Rolling Month Formula.

    If you assume 0% is never valid and you don't have 0% interspersed amongst valid data points then one possibility:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Re: How to create a Rolling Month Formula.

    Thanks DonkeyOte,

    That works great.

    When I apply the formula to my workbook for real Im getting #NA errors. The work book is linked to another, so cells that dont yet have any data show 0. When I delete the links the formula works? How can I amend the formula to get rid of #NA?

    The rolling month figure should never be 0% but if I applied this to another scenario where it is possible to have 0% in month, how would the formula work? I thought about a Combo Box containing the months and using an OFFSET. Would that work?

    Thanks in advance

    B
    Last edited by singerbatfink; 11-18-2010 at 11:45 AM. Reason: extra Info added

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to create a Rolling Month Formula.

    Quote Originally Posted by singerbatfink
    When I apply the formula to my workbook for real Im getting #NA errors. The work book is linked to another, so cells that dont yet have any data show 0. When I delete the links the formula works? How can I amend the formula to get rid of #NA?
    If the linked file is closed - unclear - then COUNTIF is precluded and you will need to revise.
    However, the above issue would generate #VALUE! error rather than #N/A
    The latter should only arise if the precedents contain the same error value given the pre-emptive COUNTIF prevents the LOOKUP from generating an error.

    Quote Originally Posted by singerbatfink
    The rolling month figure should never be 0% but if I applied this to another scenario where it is possible to have 0% in month, how would the formula work?
    You would need some means of identifying the last "active" month - if you can not do that by virtue of the figures themselves you will have to define by some other means.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1