+ Reply to Thread
Results 1 to 8 of 8

Find last X values from column J excluding blanks, return value from column A

  1. #1
    Registered User
    Join Date
    12-16-2019
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 365
    Posts
    9

    Find last X values from column J excluding blanks, return value from column A

    I have a worksheet that has about 30 rows and 11 columns of data that pulls from another workbook - it's a dynamic list that may have 3 rows of data or 20 rows of data. I am trying to figure out how to pull the last 8 values (excluding blanks) from column J, and return the corresponding value from column A.

    I would need to do this possibly for all the columns at some point, but that's one the one I'm starting with. Attached is a sample file of what I'm trying to do. I want a formula that pulls the list (I put it over to the right for example).

    Note: this file doesn't have formulas, but there are IndexMatch formulas in Columns B-J.

    Thank you for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Find last X values from column J excluding blanks, return value from column A

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

    non array
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Find last X values from column J excluding blanks, return value from column A

    Or... using one of O365's shiny new dynamic arrays:

    =INDEX(FILTER(A2:A18,J2:J18<>""),SORT(SEQUENCE(8,1,SUM(--(J2:J18<>"")),-1)))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Find last X values from column J excluding blanks, return value from column A

    Cell O7 formula

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

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Find last X values from column J excluding blanks, return value from column A

    Nice one wk9128... or even:

    =LARGE(FILTER(A2:A18,J2:J18<>""),9-ROW(1:8))

    as the use of LET seems a bit redundant, with only one use of X in the formula.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Find last X values from column J excluding blanks, return value from column A

    Another option in-case you may not have 8 rows of data
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    @wk9128 with your formula try putting a value in J2 or J3

  7. #7
    Registered User
    Join Date
    12-16-2019
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Find last X values from column J excluding blanks, return value from column A

    Thank you everyone - I think the formula Fluff13 provided will work the best. I tried implementing the others and got errors, most likely from the fact that I don't always have 8 or more rows of values. It's a changing list that may be as few as one or two lines.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Find last X values from column J excluding blanks, return value from column A

    Glad to help & thanks for the feedback.

+ 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 largest values in a column but return results in another column
    By nickpavlov in forum Excel General
    Replies: 2
    Last Post: 06-16-2021, 04:32 PM
  2. [SOLVED] Extract Values in a Column Excluding Blanks
    By bjnockle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2020, 01:32 PM
  3. Find all unique values based on multiple criteria, excluding blanks
    By Tamarissa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2018, 08:12 PM
  4. Replies: 8
    Last Post: 03-23-2017, 02:59 PM
  5. Search Through a Column to Find Match, ignore blanks return Value
    By lmc2016 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2016, 11:39 AM
  6. [SOLVED] Extract a list from a column - excluding blanks
    By bungaree in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-17-2015, 03:48 AM
  7. Transposing column range to row while excluding blanks
    By jkhereford in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2012, 12:33 PM

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