+ Reply to Thread
Results 1 to 4 of 4

Linking Returns for Last "n" values in a column not including blanks

  1. #1
    Forum Contributor
    Join Date
    06-10-2005
    MS-Off Ver
    2007
    Posts
    223

    Linking Returns for Last "n" values in a column not including blanks

    I have a formula that links returns for a rolling 3-month and rolling 6-month period when I have continuous data going down a column. However I need help adjusting the formula (or making a new one) to use the most recent 3 or 6 months when there are blanks for months. I have attached a file where I have sample data along with the formula.

    Gooner2408 had a similar issue in a post earlier today which was solved. However, that was to average "n" values not including blanks in rows and the numbers were always positive (they were scores in a game). This may serve as a jumping off point to assist with my issue.

    Any help would be appreciated.
    Thanks,
    Phillycheese
    Attached Files Attached Files
    Last edited by Phillycheese5; 09-24-2013 at 05:17 PM.

  2. #2
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: Linking Returns for Last "n" values in a column not including blanks

    Maybe these array formulas

    F30
    =PRODUCT(IF($F$5:$F$25<>"",IF(ROW($F$5:$F$25)>=LARGE(IF($F$5:$F$25<>"",ROW($F$5:$F$25)),3),1+$F$5:$F$25,1),1))
    Ctrl+Shift+Enter

    F31
    =PRODUCT(IF($F$5:$F$25<>"",IF(ROW($F$5:$F$25)>=LARGE(IF($F$5:$F$25<>"",ROW($F$5:$F$25)),6),1+$F$5:$F$25,1),1))
    Ctrl+Shift+Enter
    Marcelo Branco

  3. #3
    Forum Contributor
    Join Date
    06-10-2005
    MS-Off Ver
    2007
    Posts
    223

    Re: Linking Returns for Last "n" values in a column not including blanks

    Hey mlcb, this seems to do the trick!
    Thanks so much for the assist!!!!!

  4. #4
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: Linking Returns for Last "n" values in a column not including blanks

    Quote Originally Posted by Phillycheese5 View Post
    Hey mlcb, this seems to do the trick!
    Thanks so much for the assist!!!!!
    You are welcome. Glad for helping

+ 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] Rolling/Moving Average: Last "n" values not including blanks in a row
    By Gooner2408 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-24-2013, 12:08 PM
  2. Replies: 3
    Last Post: 04-14-2013, 11:53 PM
  3. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  4. Formula returns blanks in some instances instead of the word "blank"
    By tommydollar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2012, 10:58 AM
  5. Help Needed to get Filters Using "Include" and "Exclude" multiple values on one column.
    By alfykunable in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2012, 04:03 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