+ Reply to Thread
Results 1 to 8 of 8

2 Columns - Find Data to Last Item Entry & Date to Left of Cell

  1. #1
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Thumbs up 2 Columns - Find Data to Last Item Entry & Date to Left of Cell

    Hi,

    I'm trying to use a VLookup type of function but find the data to let of column or cell. Why isn't there a Left Vlookup functionality?


    I'm attempting to use this function:

    =INDEX(E166:E347,MATCH(LOOKUP(9.99E+307,F166:F347,F166:F347,0))

    E166:E347 = is a date range with dates going downward from current date to end of the year
    F166:F347 = Is a calculated column that provides total or sum extracted from log sheet
    When used by itself: LOOKUP(9.99E+307,F166:F347 - Finds last entry from right column data

    I'm seeking a function that will find the last given total & then give me the date (to the left of it)

    Thanks
    Last edited by mycon73; 08-17-2014 at 08:33 PM.
    MyCon
    -- Using Latest Version of Excel

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: 2 Columns - Find Data to Last Item Entry & Date to Left of Cell

    No need for a Left Vlookup. You're already attempting to use the best approach.
    Try this variation:
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: 2 Columns - Find Data to Last Item Entry & Date to Left of Cell

    Maybe:
    Please Login or Register  to view this content.
    Please remember to use code tags for formulas/code
    Ben Van Johnson

  4. #4
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: 2 Columns - Find Data to Last Item Entry & Date to Left of Cell

    Hi Ron & protonLeah,

    Thanks the quick response.

    Your example works well except in some instances, my results are 0 (zero). In other instances my results are 0 because it's a future date. Therefore, for example & because I'm going to the end of they year, in the right column there is a a result is 0 for 12/28/14 (in left) column because nothing has happened yet.


    For example, as of 08/15/14, I have a total of 10. Therefore, I'm expecting the date to show as '08/15/14'.

    How can the '0' issue be resolved?

  5. #5
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: 2 Columns - Find Data to Last Item Entry & Date to Left of Cell

    Hi Everyone,

    I uploaded an example file

    Thanks

  6. #6
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: 2 Columns - Find Data to Last Item Entry & Date to Left of Cell

    Hi,

    Can a if type of function be added in such if not greater than today's date & not 0 find last entry date?

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: 2 Columns - Find Data to Last Item Entry & Date to Left of Cell

    I see...The original formulas assumed you wanted the last numeric entry in Col_D. That's not the case. You have zeros as default values.
    This regular formula returns the date that corresponds to the last non-zero value
    Please Login or Register  to view this content.
    EDITED: I just noticed the "not greater than today's date" criteria:
    Try this regular formula:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Last edited by Ron Coderre; 08-17-2014 at 08:13 PM.

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: 2 Columns - Find Data to Last Item Entry & Date to Left of Cell

    Use a helper column to replace the zero values with null.
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: 2 Columns - Find Data to Last Item Entry & Date to Left of Cell

    Hi Everyone,

    Great feedback - All suggestions works well.

    Thanks

+ 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] Grouped Data Blocks editted to Columns of Data based off left cell value?
    By BlazzedTroll in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-10-2013, 03:06 PM
  2. Find an unespected data item in a row
    By Imran688 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-27-2012, 12:21 PM
  3. Identifying an item with data in two columns
    By BaileyWinston in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2010, 11:52 AM
  4. Replies: 0
    Last Post: 05-17-2006, 09:55 PM
  5. [SOLVED] Using the Find function to get Left or Right data
    By Glen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-27-2006, 05:10 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