+ Reply to Thread
Results 1 to 2 of 2

Previous 6 Months Value and use in Sum If Formula taking input variable

  1. #1
    Registered User
    Join Date
    11-07-2014
    Location
    India
    MS-Off Ver
    2016
    Posts
    88

    Previous 6 Months Value and use in Sum If Formula taking input variable

    Hello Friends

    How to get previous 6 month value based on input value. I mean I am looking after a VBA code which will ask for month number (using input box) and then based on the input determine the last 6 months name.

    Next, use this variable in my sum if formula.

    Please help in using the previous months in my formula.

    Currently I am using below code for getting input value

    Please Login or Register  to view this content.
    And, now the sum if formula I am using is below.

    Please Login or Register  to view this content.
    Please help in using the above month variable in my sum if formula. I want 6 different formula for past 6 months from input date

  2. #2
    Registered User
    Join Date
    11-07-2014
    Location
    India
    MS-Off Ver
    2016
    Posts
    88

    Re: Previous 6 Months Value and use in Sum If Formula taking input variable

    I find a simple way out to resolve this problem. What I did is I added one more column using months formula. Now, I have column BQ with month numbers.

    Next, I create a input box option to collect the name.
    Please Login or Register  to view this content.
    But, still my sumif forumla is not working. Please help what wrong I am doing in this formula

    Please Login or Register  to view this content.
    If I remove the criteria pertaining to input box then everything works well.

+ 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. Replies: 3
    Last Post: 11-15-2018, 03:48 PM
  2. Formula for moving total over previous 12 months
    By kaygee46 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2017, 08:49 PM
  3. [SOLVED] Find last previous non blank value and summarise previous 6 months
    By Lady_Shaz in forum Excel General
    Replies: 7
    Last Post: 12-11-2012, 06:20 AM
  4. Formula to show current and previous months data
    By dandavis1 in forum Excel General
    Replies: 4
    Last Post: 07-06-2012, 02:02 PM
  5. Replies: 3
    Last Post: 03-24-2011, 02:00 AM
  6. Taking Userform Input and Outputting Into Formula
    By TStahlness in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-20-2008, 11:30 AM
  7. Replies: 6
    Last Post: 03-02-2007, 10:36 AM

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