+ Reply to Thread
Results 1 to 5 of 5

Find last max. value in list and count all previous non-blank cells in adjacent column

  1. #1
    Registered User
    Join Date
    12-12-2014
    Location
    Dorset, England
    MS-Off Ver
    Excel 2013
    Posts
    54

    Find last max. value in list and count all previous non-blank cells in adjacent column

    Hi Guys,

    Struggling with this one. Have attached a workbook to help.

    There are two columns of data. I need a formula that can identify the last max. value in column B (in this worksheet, it would be cell B16), and then I need the formula to count and return the number of non-blank cells up to that point in column C (in this case, I need the formula to count non-blank cells C3:C16). In this case, the result in the grey box should be 8.

    Thanks for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find last max. value in list and count all previous non-blank cells in adjacent column

    With 2 helpcolumn and after that a vlookup.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find last max. value in list and count all previous non-blank cells in adjacent column

    c23 =COUNT(INDIRECT("C3:"&"C"&MATCH(MAX($B$1:$B$18),$B$1:$B$18)))

    See the attached file.

  4. #4
    Registered User
    Join Date
    12-12-2014
    Location
    Dorset, England
    MS-Off Ver
    Excel 2013
    Posts
    54

    Re: Find last max. value in list and count all previous non-blank cells in adjacent column

    Quote Originally Posted by oeldere View Post
    c23 =COUNT(INDIRECT("C3:"&"C"&MATCH(MAX($B$1:$B$18),$B$1:$B$18)))

    See the attached file.
    Hi oeldere,

    That's amazing, I love the second solution you've provided. Thanks very much for your help!

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find last max. value in list and count all previous non-blank cells in adjacent column

    Thanks for the rep.

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. sum only cells in a column if the adjacent cell is blank
    By JeffW012 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-19-2015, 03:45 PM
  2. [SOLVED] Find next non blank cell in list and return value from adjacent column
    By kristy.brown in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-19-2014, 03:28 PM
  3. Replies: 4
    Last Post: 09-12-2013, 11:32 PM
  4. [SOLVED] Find certain word, copy and paste cell in previous row if previous row is blank
    By steven_e in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 12:53 PM
  5. Replies: 4
    Last Post: 05-10-2012, 08:16 PM
  6. macro to find first blank cell in a column cut the value from left adjacent column
    By willykin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-01-2012, 09:23 AM
  7. count blank cells only if a 1 is previous
    By Directlinq in forum Excel General
    Replies: 9
    Last Post: 02-20-2009, 04:58 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