+ Reply to Thread
Results 1 to 7 of 7

Last cell in a column satisfying a condition

  1. #1
    Registered User
    Join Date
    03-04-2016
    Location
    Coventry, England
    MS-Off Ver
    2013
    Posts
    8

    Last cell in a column satisfying a condition

    Hi everyone!

    I have a problem to find a cell number within a column containing increasing, numerical data. Let's say I have a column with numbers : 1 2 3 6 8 9 and I want to find the last cell number for which the data satisfies a condition <8. So that would be a cell containing 6 in this case.

    I would be very grateful for your suggestions.

    Thanks,
    Dominika

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Last cell in a column satisfying a condition

    Try this

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


    v A B C
    1 1 6
    2 2
    3 3
    4 6
    5 8
    6 9
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    03-04-2016
    Location
    Coventry, England
    MS-Off Ver
    2013
    Posts
    8

    Re: Last cell in a column satisfying a condition

    Thank you, that worked! Now, if I have found the ''6'' and I found that it is in A4 I want to find the max value withing the range A1:A4 (assuming it's not increasing so it's not necessarily a last value). So I want to use sth like max(A1:A4) but the "A4" is a result of the function not a constant.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Last cell in a column satisfying a condition

    Maybe you need something like this...

    Array entered**:

    =MAX(IF(A1:A6<8,A1:A6))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    That will return the highest number that is less than 8 no matter where it is located within the range. Is that what you want?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Last cell in a column satisfying a condition

    You might also want to try this formula, based on AlKey's:
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    03-04-2016
    Location
    Coventry, England
    MS-Off Ver
    2013
    Posts
    8

    Re: Last cell in a column satisfying a condition

    Solved it! Thank you all

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Last cell in a column satisfying a condition

    Can't tell who you're replying to but we do 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. Inserting a cell in one column based on one condition fro another column
    By manojktvm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2014, 06:53 AM
  2. Return adjacent cell value to cell satisfying conditions
    By therzma in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2014, 01:28 PM
  3. Satisfying 2 Conditions..one condition relying on the other.
    By graham_____ in forum Excel General
    Replies: 1
    Last Post: 10-30-2013, 09:03 PM
  4. [SOLVED] select a cells satisfying row and column criteria excel
    By Amolvijay in forum Excel General
    Replies: 9
    Last Post: 07-28-2013, 01:57 AM
  5. [SOLVED] Find Last Entry (Date) in a List satisfying a Condition
    By rau in forum Excel General
    Replies: 5
    Last Post: 09-03-2012, 02:10 AM
  6. Replies: 2
    Last Post: 11-28-2011, 06:10 PM
  7. Replies: 1
    Last Post: 10-14-2011, 05:30 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