+ Reply to Thread
Results 1 to 5 of 5

Last Entry based on 2 cells

  1. #1
    Registered User
    Join Date
    02-06-2018
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    22

    Last Entry based on 2 cells

    Hi all,

    I am looking to find a way to return the latest entry based on 2 cells meeting the criteria

    C3 is the job number and I3 is the article number

    on a sheet called "Details" we have the job number listed in column E and the article number in column F

    The date would be in D if that helps

    I would like the last entry made by returning column Z which is comments

    Thanks for any help

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Last Entry based on 2 cells

    It's difficult to build a working formula without seeing a small representative sample sheet with the desired results.

    That being said, try something like this:

    =LOOKUP(2,1/((Details!E$2:E$1000=C3)*(Details!F$2:F$1000=I3)),Details!Z$2:Z$1000)

    If that doesn't work, consider uploading a sample sheet.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  3. #3
    Registered User
    Join Date
    02-06-2018
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    22

    Re: Last Entry based on 2 cells

    That is just perfect many many thanks

    can this return "" if nothing is in Z

    Thanks again

  4. #4
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Last Entry based on 2 cells

    Add in the IFERROR

    =IFERROR(LOOKUP(2,1/((Details!E$2:E$1000=C3)*(Details!F$2:F$1000=I3)),Details!Z$2:Z$1000),"")

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,856

    Re: Last Entry based on 2 cells

    Rule 08: Cross-posting Without Telling Us

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    No further help to be offered, please, until the OP has complied with this request.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] changing a cells calculation based on another entry
    By cnak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2017, 09:35 PM
  2. Need to copy certain cells based on an entry in another cell
    By loser420 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2013, 10:24 AM
  3. [SOLVED] Need to populate cells based on other cell entry options
    By mikerules in forum Excel General
    Replies: 16
    Last Post: 09-19-2012, 03:16 AM
  4. Locking Cells Based on Entry in a Different Cell
    By jennyaccord in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-26-2011, 02:51 AM
  5. Update several cells based on entry
    By JStud in forum Excel General
    Replies: 10
    Last Post: 01-10-2011, 04:42 PM
  6. Selecting cells based on textbox entry
    By mrayray09 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2009, 10:31 AM
  7. countng cells based on the entry
    By jimb0693 in forum Excel General
    Replies: 2
    Last Post: 10-06-2008, 10:02 AM

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