+ Reply to Thread
Results 1 to 7 of 7

Lookup date if cell meet certain conditions

  1. #1
    Registered User
    Join Date
    01-09-2021
    Location
    Prague
    MS-Off Ver
    Microsoft 365 for Mac
    Posts
    5

    Lookup date if cell meet certain conditions

    Hi all,

    I’’m quite lost with this one.
    I want to return Date in column F if E is not blank and keep all other cells empty for the same Serial_Nr. E.g. E4=“MDE” F4=“01/04/2021”. The problem is that every Serial_Nr has different amount of rows and I don’t know how to do the lookup.

    I have tried =celll(format) but since the data are pasted, everything returns “general”.

    Anyone knows how to deal with this?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Lookup date if cell meet certain conditions

    One way:

    =IF(E2="","",INDEX($C$2:$C$25,MATCH(1,INDEX(($A$2:$A$25=A2)*($B$2:$B$25="Field_Origin_Date"),0),0)))

    In Prague, you may need to use ; and not , so see the sheet.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    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,728

    Re: Lookup date if cell meet certain conditions

    NOTE: first, convert your dates to proper dates - they are currently text.

    Then, in F2 copied down:

    =IF(E2="","",LOOKUP(2,1/(($A$2:$A$25=A2)*(ISNUMBER($C$2:$C$25)=TRUE)),$C$2:$C$25))

    You may need to enter this with CTRL+SHIFT+ENTER and change the commas in the formula to semi-colons for your locale.
    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.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Lookup date if cell meet certain conditions

    The quickest way to convert 'em to real dates is:

    Select column C. Data/Text to columns/Finish

    Then format the result column as date.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-09-2021
    Location
    Prague
    MS-Off Ver
    Microsoft 365 for Mac
    Posts
    5

    Re: Lookup date if cell meet certain conditions

    Thank you very much guys!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Lookup date if cell meet certain conditions

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It would also be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

  7. #7
    Registered User
    Join Date
    01-09-2021
    Location
    Prague
    MS-Off Ver
    Microsoft 365 for Mac
    Posts
    5

    Re: Lookup date if cell meet certain conditions

    Done and done. Have a good day!

+ 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] Lookup the date and return the latest value under some conditions from multiple columns
    By PMH2384 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-09-2016, 03:31 AM
  2. If conditions meet, transfer data from sheet to another with its date
    By jamewoong in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2015, 12:11 AM
  3. [SOLVED] Apply lookup to cells that meet certain conditions
    By milkman94 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2015, 12:20 AM
  4. [SOLVED] Count hour/minutes that meet conditions and within an date/time interval
    By DirkBekkers in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-25-2013, 10:36 AM
  5. Replies: 2
    Last Post: 10-31-2012, 11:44 AM
  6. if conditions meet a certain criteria...
    By scambug in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2012, 05:04 AM
  7. Excel 2007 : Use of IF and AND to Meet Certain Conditions
    By Nick Wildey in forum Excel General
    Replies: 1
    Last Post: 02-22-2012, 05:21 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