+ Reply to Thread
Results 1 to 4 of 4

Retrieving the last Non-blank Value using Look-up

  1. #1
    Registered User
    Join Date
    11-06-2015
    Location
    Charleston
    MS-Off Ver
    2013
    Posts
    10

    Question Retrieving the last Non-blank Value using Look-up

    Hi Everyone,

    I'm new to posting in the forum, but I have spent the better part of this morning (and several other mornings) reading and learning. Usually I find what I'm looking for and hence the need not to post.

    HOWEVER I can't for the life of me figure out a solution for a task I'm trying to perform. Let's get on with it....


    I have a spreadsheet with several columns and rows that is updated daily. Only new rows are added, no new columns. I'm using a lookup function in order to grab the LAST value of an entry. The issue I'm running into is that all columns for any given new row added won't necessarily be filled out- For example Below


    A B C
    Apple 1 2
    Oranges 3 -
    Pear 4 5
    Oranges 6 7
    Apple 8 -
    Pear - 9



    The formula I'm currently using to retrieve the data in column B is:

    =LOOKUP(2,1/($A:$A=L2),B:B)


    The Result I'm getting when L2 = Pear is a 0
    The Result I WANT to get when L2 = Pear is 4


    Any Help would be greatly appretiated!!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Retrieving the last Non-blank Value using Look-up

    Either upload an example worksheet (Go Advanced>Manage attachments) or separate your columns with some sort of delimiter | or , so that it is clearer what you are talking about.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Retrieving the last Non-blank Value using Look-up

    Try this

    =LOOKUP(2,1/(($A:$A=E2)*($B:$B)),B:B)

  4. #4
    Registered User
    Join Date
    11-06-2015
    Location
    Charleston
    MS-Off Ver
    2013
    Posts
    10

    Re: Retrieving the last Non-blank Value using Look-up

    I could kiss you right now!

    Thank you SOOOO much. This did exactly what I wanted.

    Sorry for the poor formatting.

+ 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] Concatenate If Blank - remove blank line if first cell is blank
    By ker9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2014, 02:14 PM
  2. copy if formula retrieving blank rows
    By answerunknown in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2013, 05:58 PM
  3. Retrieving Information IF Blank
    By Dougiebn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-14-2013, 07:24 AM
  4. Replies: 4
    Last Post: 02-04-2010, 12:48 PM
  5. Replies: 23
    Last Post: 10-03-2007, 04:28 PM
  6. Retrieving the Value of the First Non-Blank Cell in a List
    By leveyc in forum Tips and Tutorials
    Replies: 14
    Last Post: 02-09-2007, 05:05 PM
  7. Replies: 0
    Last Post: 08-25-2005, 03:05 AM

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