+ Reply to Thread
Results 1 to 8 of 8

How to calculate MOM change based on current month?

  1. #1
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Orlando
    MS-Off Ver
    Excel 2016
    Posts
    191

    How to calculate MOM change based on current month?

    I normaly have the formula =a1/a2-1 and the next month ill manually change the reference cells. How can i auto update this formula based on current month? Attached is a sample sheet. I need to solve for column N.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: How to calculate MOM change based on current month?

    Are you still using Excel 2010? If not, please update your forum profile.

    Maybe this:

    =INDEX($B$3:$L$3,MATCH(TODAY(),$B$2:$L$2,1))/INDEX($B$3:$L$3,MATCH(EDATE(TODAY(),-1),$B$2:$L$2,1))-1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Orlando
    MS-Off Ver
    Excel 2016
    Posts
    191

    Re: How to calculate MOM change based on current month?

    Almost seems to do the trick but i need to back up one month so it would do difference between August and september. Is there a way to also maybe use a lookup cell for the months so maybe it doesnt change if say I open the file on the 1st of the month and new data hasnt been filled in yet. Thanks for your help.
    Last edited by AliGW; 10-07-2020 at 08:43 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to calculate MOM change based on current month?

    Try this approach

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It search the last two results and perform the operation.

  5. #5
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Orlando
    MS-Off Ver
    Excel 2016
    Posts
    191

    Re: How to calculate MOM change based on current month?

    I see what you did but this one breaks if cells are not prefilled with 0 for the lookup.
    Last edited by AliGW; 10-07-2020 at 09:43 AM. Reason: PLEASE don't quote unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: How to calculate MOM change based on current month?

    People can only work with the data you provide. If you show data with the 0 populated and don't tell us that it might not be there, don't be surprised if the suggested solution fails!

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to calculate MOM change based on current month?

    This solve the issue.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Orlando
    MS-Off Ver
    Excel 2016
    Posts
    191

    Re: How to calculate MOM change based on current month?

    This works for numbers and while it wasnt in my example can this be modified to handle percentages in addition to numbers? i.e. the % change between 8% and 9%. I will try to be more specific next time thanks again.

    =INDEX(B3:L3,MATCH(0,INDEX(B3:L3+0,0),0)-1)/INDEX(B3:L3,MATCH(0,INDEX(B3:L3+0,0),0)-2)-1

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Determine work days in current month or next month based on day of the month
    By sbrnard in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-29-2014, 05:14 PM
  2. Change year but keep the month the same based on current year
    By Jamon Fries in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2014, 05:29 PM
  3. [SOLVED] Pick a cell containing current month actulas based what the current month is.
    By vanbasten007 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-10-2014, 01:17 AM
  4. Replies: 4
    Last Post: 09-09-2013, 05:06 AM
  5. VBA: Piviot table Month auto select based on current month?
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2013, 08:45 AM
  6. [SOLVED] Change Value on monthly budget based on current month
    By Kenja in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-28-2013, 11:42 PM
  7. Replies: 5
    Last Post: 07-27-2005, 05:05 PM

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