+ Reply to Thread
Results 1 to 8 of 8

Lookup

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    USA
    MS-Off Ver
    Wxcel 2011
    Posts
    1

    Angry Lookup

    Hello All,

    I'm looking for a non VBA formula to find the last date an entry was made with conditions.

    Return the date when the last entry "A" was made if the amount is > 1.0 and Mr. Hunt was a Lead or Assistant. (not Staff)

    Also for "B"

    Return the date when the last entry "B" was made if the amount is > 1.0 and Mr. Hunt was a Lead or Assistant. (not Staff)


    Thank you All.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Lookup

    Welcome to the forum

    For future reference, please take a moment to read the forum rules and make your thread title something descriptive of your problem - not what you think the answer might be. (think google search terms?).
    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    Try this
    I
    J
    2
    A
    30-Sep-15
    3
    B
    2-Oct-15

    J2=MAX(IF(($C$2:$C$21=I2)*($E$2:$F$21="Hunt")*($D$2:$D$21>1),$B$2:$B$21,0))

    ...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.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Lookup

    Try this in cell H2:
    =IF(AND(D2>1,OR(F2="Hunt",G2="Hunt")),B2,"")

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Lookup

    Shareez, how will that "Return the date when the last entry "A" was made", as per the OP's request?

  5. #5
    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: Lookup

    Just another way (non-array entry) with the same lookup list in I2:I3 that Ford used. I reasoned that if Hunt is not Staff the data implies he must be Lead or Assistant.

    =LOOKUP(2,1/(($C$2:$C$21=I2)*($G$2:$G$21<>"Hunt")*($D$2:$D$21>1)),$B$2:$B$21)
    Dave

  6. #6
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Lookup

    FDibbins,
    Sorry if I was wrong, I thought the OP wanted to return the date to column H if the count is above 1 and Hunt is either an Assistant or a Lead.

    =IF(AND(D2>1,C2="A",OR(F2="Hunt",E2="Hunt")),B2,"")

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Lookup

    Perhaps Im missing something, but I read that as wanting to find the latest date when those conditions are met

  8. #8
    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: Lookup

    Quote Originally Posted by FDibbins View Post
    Perhaps Im missing something, but I read that as wanting to find the latest date when those conditions are met
    That's the way I read it, too.

+ 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. Two Lookup and Return (Lookup the column, then lookup the row)
    By Branbran10 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-05-2015, 04:55 PM
  2. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  3. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  4. Replies: 2
    Last Post: 05-19-2013, 08:46 AM
  5. Replies: 1
    Last Post: 11-07-2012, 01:57 PM
  6. Search lookup array to find lookup value contained within text string
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2011, 09:42 AM
  7. Replies: 7
    Last Post: 06-19-2011, 12:51 PM

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