+ Reply to Thread
Results 1 to 4 of 4

Count columns based on sum of previous month's row values once a value is hit

  1. #1
    Registered User
    Join Date
    12-03-2014
    Location
    San Diego, CA
    MS-Off Ver
    2013
    Posts
    2

    Count columns based on sum of previous month's row values once a value is hit

    I'm trying to count the number of months it took in the past to hit a certain value (count the months from the right to the left).

    Example:

    Excel.png

    I have hardcoded the values in yellow here, with the correct answers. May 2014 would be 6, because December 2013 through May 2014 (trailing 6 months) summed to 54%.

    Hope I am explaining this correctly. Thank you!

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Count columns based on sum of previous month's row values once a value is hit

    For future reference, it would help a lot if you could post a sample workbook rather than a picture as it would be time consuming to manually type all those numbers in ourselves to derive a solution.

    Anyhoo, in B4, type in
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy to the right until J4.

  3. #3
    Registered User
    Join Date
    12-03-2014
    Location
    San Diego, CA
    MS-Off Ver
    2013
    Posts
    2

    Re: Count columns based on sum of previous month's row values once a value is hit

    You rock! Thank you!! I'll be sure to post a workbook next time, sorry!

  4. #4
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Count columns based on sum of previous month's row values once a value is hit

    No problem. Glad it worked on your spreadsheet.

+ 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] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  2. How to concatenate adjacent cells based on values present in previous columns?
    By Palraj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-30-2014, 01:01 AM
  3. [SOLVED] Formula for amount on previous month based on current month
    By Yu Marquez in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-21-2014, 12:42 AM
  4. Replies: 3
    Last Post: 11-06-2012, 11:26 AM
  5. [SOLVED] VBA to identify the current month and previous month based on system date
    By ravikumar00008 in forum Excel General
    Replies: 10
    Last Post: 07-26-2012, 10:04 AM
  6. count unique values in columns based on date values
    By cclntn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2010, 06:16 PM
  7. [SOLVED] Count dates for previous month
    By scribbler1382@yahoo.com in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2006, 03:45 PM

Tags for this Thread

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