+ Reply to Thread
Results 1 to 5 of 5

Lookup value based on criteria

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Lookup value based on criteria

    Hi all, please find attachment enclosed

    In cells B16, B18, B20 and B22 I want the dates to display by formula.

    I want to find the first green cell for each product (lines 4,6,8,10) where there is a date populated in row 1.

    As you can see in line 4, the first green cell is H4 - but there is no date in row 1. The first green cell with a date in row 1 is AV4 - so in cell B16 it displayed 23/02/2018.
    Same for other 3 rows.

    Can someone help with a formula to do this automatically?
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: Lookup value based on criteria

    If it simplifies things, instead of referencing by colour green, it can use the cell with blank value as the "black cells" have letter f within them

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: Lookup value based on criteria

    Is anyone able to assist with this request?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,681

    Re: Lookup value based on criteria

    Using the fact that the black cells are not blank, as suggested in post #2, the following formula yields the same dates as those given in B16:B22
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,681

    Re: Lookup value based on criteria

    Here is an array entered formula* that is possibly more appropriate to the task:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Array entered formulas are 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.
    Let us know if you have any questions.

+ 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. Replies: 0
    Last Post: 05-02-2016, 07:59 AM
  2. [SOLVED] Lookup based on three criteria
    By IronCladRooster in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:27 PM
  3. [SOLVED] Lookup based on two criteria
    By Saturn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-25-2013, 11:20 AM
  4. [SOLVED] Lookup Based on 2 Criteria
    By Maroota in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2012, 10:48 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