+ Reply to Thread
Results 1 to 13 of 13

Find Last Entry Between 2 Columns

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

    Thumbs up Find Last Entry Between 2 Columns

    Hi,

    I'm seeking to look up last entry by first finding criteria in another column as follows:

    Using the following in single column works well:

    =LOOKUP(9.99E+307,C118:C153)

    Now, I'm looking to add in column or cells: e118:e153 & find criteria, "797577",

    How can this function or another be used?

    Thanks
    Last edited by mycon73; 01-26-2015 at 03:36 PM.
    MyCon
    -- Using Latest Version of Excel

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

    Re: Find Last Entry Between 2 Columns

    Hi Group,

    I managed to find something that partially works with the following:

    =INDEX($C$118:$C$153,MATCH("*797577*",$D$118:$D$153,0))

    However, instead of seeking or matching first criteria found, I rather find the last. How can this be arranged?

    Thanks

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

    Re: Find Last Entry Between 2 Columns

    Hi,

    Does anyone have a suggestion or two?

    Seeking to find last entry criteria - In this case - last time "797577" is found & the corresponding last entry within same row.

    Thanks

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Find Last Entry Between 2 Columns

    Try substituting MATCH("*797577*",$D$118:$D$153,0) with MATCH("*797577*",$D$118:$D$153,1)

    That failing could you upload a sample workbook with representative data? I'm not clear how much is

    text and how much might be numeric data in your description.
    Last edited by FlameRetired; 01-18-2015 at 11:04 PM.

  5. #5
    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: Find Last Entry Between 2 Columns

    Try this

    =LOOKUP(2,1/(E118:E153=797577),C118:C153)


    Row\Col
    C
    D
    E
    118
    25
    65
    797577
    119
    15
    654654
    120
    45
    456987
    121
    25
    797577
    122
    45
    797577
    123
    65
    797577
    124
    456
    456645
    125
    54
    456645
    126
    52
    456645
    127
    12
    456645
    128
    3211
    654654
    Last edited by AlKey; 01-18-2015 at 11:09 PM.
    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

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

    Re: Find Last Entry Between 2 Columns

    Hi Alkey & Others,

    Thanks for this great example! It looks like it should work but for whatever reasons, I'm getting a "#N/A"

    Will a Vlookup type of function work given that my result is on the left of my criteria & I'm seeking the last result instead of first?

  7. #7
    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: Find Last Entry Between 2 Columns

    Please attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

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

    Re: Find Last Entry Between 2 Columns

    Hi Alkey & Others

    I've been a bit busy & finally got an opportunity to get back into this forum.

    As requested, I attached an example file. As you will see I have 2 cell blocks highlighted in yellow & green, with one of the following functions:

    Cell, D44
    =INDEX($C$6:$C$41,MATCH("*797577*",$D$6:$D$41,1))

    Cell, F44
    =LOOKUP(2,1/($D$6:$D$41="*797577*"),$C$6:$C$41)

    Cell, D45
    =LOOKUP(2,1/(D6:D41=D40),C6:C41)

    First 2 aren't working for me & the last is only giving the last result from last row, as it should

    Per date, seeking to have last entry, which in this example, I would be expecting to receive the following result:

    Find "797577" & get result, $23015.95 from cell, C12

    How to get working?

    Thanks
    Attached Files Attached Files

  9. #9
    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: Find Last Entry Between 2 Columns

    Since I can't even find number 797577 on the spreadsheet nor the amount $23015.95 in cell C12 which is blank, I can only assume that maybe the file you provided is a wrong one.

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

    Question Re: Find Last Entry Between 2 Columns

    Hi Alkey & Others,

    Sorry - Not sure what happened, but it the wrong file got attached. Please see attached file.

    Thanks
    Attached Files Attached Files

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Find Last Entry Between 2 Columns

    Try this array formula:

    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Drag down
    Quang PT

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Find Last Entry Between 2 Columns

    Try this non-array formula in G5:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Adjust ranges according to your need.

    Row\Col
    B
    C
    D
    E
    F
    G
    3
    Find Last Entry Between 2 Columns
    4
    5
    Date Due
    Monthly Loan Balance
    Loans
    Minimum Due
    $23,015.95
    6
    01/16/15
    $22,920.91
    Bal. 1 - 797577
    $293.19
    7
    $22,400.37
    Bal. 2 - 798581
    $291.34
    8
    $45,321.28
    Total
    $584.53
    9
    02/12/15
    $23,272.78
    Bal. 1 - 797577
    $274.76
    10
    $22,554.87
    Bal. 2 - 798581
    $260.98
    11
    $45,827.65
    Total
    $535.74
    12
    03/12/15
    $23,015.95
    Bal. 1 - 797577
    $549.52
    13
    $22,296.72
    Bal. 2 - 798581
    $521.96
    14
    $45,312.67
    Total
    $1,071.48
    15
    04/12/15
    Bal. 1 - 797577
    $246.04
    16
    Bal. 2 - 798581
    $239.15
    17
    $0.00
    Total
    $485.19
    Last edited by FlameRetired; 01-26-2015 at 01:55 PM. Reason: formula change

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

    Re: Find Last Entry Between 2 Columns

    Hi bebo021999 & FlameRetired,

    Thank you for the suggestions.

    The "=LOOKUP(2,1/($C$6:$C$41<>0)*(SEARCH("*797577*",$D$6:$D$41)),$C$6:$C$41)" function works great & provides the results that I am seeking.

+ 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] 2 Columns - Find Data to Last Item Entry & Date to Left of Cell
    By mycon73 in forum Excel General
    Replies: 7
    Last Post: 08-17-2014, 08:00 PM
  2. Matching two different columns to find out how many times each entry has occurred?
    By thakur.samarth in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-30-2013, 02:39 PM
  3. [SOLVED] Find Duplicates and remove the duplicate entry comparing two columns
    By retrospikz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-04-2013, 03:17 AM
  4. Replies: 2
    Last Post: 09-18-2008, 05:47 AM
  5. Replies: 4
    Last Post: 07-05-2005, 06:05 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