+ Reply to Thread
Results 1 to 7 of 7

Complex Question, May be Related to VLookUp or Max? Selecting Most Recent Date/Status

  1. #1
    Registered User
    Join Date
    01-17-2018
    Location
    Virginia
    MS-Off Ver
    2016
    Posts
    3

    Complex Question, May be Related to VLookUp or Max? Selecting Most Recent Date/Status

    Hi!

    I have been trying (for the past several hours) to find a solution to an issue that I have been having to no avail.

    Here is my issue:

    On one sheet I have a list, let's say construction projects. Each column contains pieces of other information on each project that is formatted so I can quickly print it out for higher-ups at my job (e.g., name of builder, date of contract, etc.). I have a second sheet that has some project data that is routinely imported from an outside source. As with the first spreadsheet, each row on the imported data represents a project, but each pair of columns on this spreadsheet reflects a various stage in construction (e.g.:

    Project Step1 Step1_Dt Step2 Step2_Dt Step3 Step3_Dt Step4 Step4_Dt
    A Permit Requested 1/1/2012 Permit Denied 1/3/2012 Request Revised 12/4/2014
    B Permit Requested 1/4/2018
    C Permit Requested 2/5/2017 Permit Approved 3/1/2017 Groundbreaking 4/26/2017
    D Permit Requested 7/7/2017 Permit Approved 1/17/2018
    E Permit Requested 11/12/2014 Permit Approved 12/1/2014 Groundbreaking 1/2/2015 Foundation Laid 3/4/2015

    As you can see, projects are in various stages at any given time. I want to add two columns to my main spreadsheet using this data to reflect 1) what stage the of development each project is in and 2) the date of the most recent stage. To get the date of the most recent stage, I tried using the following formula, but it gives me the max of all the rows, not just for the row that matches my project #: =MAX(IF(Sheet1!A2=Sheet2!A2:A6,0),Sheet2!C:C,Sheet2!E:E,Sheet2!G:G,Sheet2!I:I,0)


    I tried using VLookup, but the need to specify which column to pull the information from was problematic, since the column depends on which one has the highest non-missing value. Once I get the right date, I then need to match it up with the value associated with the right/most-recent step in the process.


    I'm honestly at my wits end with this. I have a feeling that there's a way to do it in excel, but this is way outside of my level of expertise. Any guidance you could provide would be greatly appreciated!


    Thank you so much!
    Attached Files Attached Files
    Last edited by jet05c; 01-17-2018 at 09:34 PM. Reason: Added Attachment

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Complex Question, May be Related to VLookUp or Max? Selecting Most Recent Date/Status

    If you attach a sample workbook that would help.

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Complex Question, May be Related to VLookUp or Max? Selecting Most Recent Date/Status

    Hi, welcome to Excel Forum! A small sample workbook would really help us to solve your problem quickly and accurately.
    Please remove any personal or proprietary information.
    Try to use your original layout so our solutions fit your workbook.
    Provide “realistic” data. Include any variations the code or formula must address.
    If appropriate, simulate some results to demonstrate what you want.

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now click Browse, find your file, then click Upload. Simple!
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  4. #4
    Registered User
    Join Date
    01-17-2018
    Location
    Virginia
    MS-Off Ver
    2016
    Posts
    3

    Re: Complex Question, May be Related to VLookUp or Max? Selecting Most Recent Date/Status

    Quote Originally Posted by kersplash View Post
    If you attach a sample workbook that would help.
    Thanks! I didn't realize I could do that on here. It should be attached to my original post now.

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Complex Question, May be Related to VLookUp or Max? Selecting Most Recent Date/Status

    These formulas find the last instances of TEXT and NUMBER in the relevant row. They return "" if nothing is found.
    In Sheet1!D2, copied down:
    Please Login or Register  to view this content.
    In Sheet1!E2, copied down:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by leelnich; 01-17-2018 at 10:19 PM.

  6. #6
    Registered User
    Join Date
    01-17-2018
    Location
    Virginia
    MS-Off Ver
    2016
    Posts
    3

    Re: Complex Question, May be Related to VLookUp or Max? Selecting Most Recent Date/Status

    That worked! Thank you so much!!!

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Complex Question, May be Related to VLookUp or Max? Selecting Most Recent Date/Status

    Happy to help, thanks for the rep! If concluded, please mark your thread as SOLVED (Thread Tools up top). Regards -Lee

+ 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] Date VLOOKUP - Most Recent Dates
    By Terry-J in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-28-2017, 04:08 PM
  2. VBA to Update status Column based on recent date
    By edkawy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2017, 10:06 AM
  3. Get VLOOKUP to pick most recent date from a selection
    By methuselah90 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2014, 06:58 PM
  4. Vlookup finding most recent date
    By albynas in forum Excel General
    Replies: 4
    Last Post: 06-03-2009, 03:34 AM
  5. Fluctuating status related to Date
    By Spellbound in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-11-2008, 11:51 AM
  6. [SOLVED] Another Date related question....
    By Pete Dray in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-18-2006, 06:49 PM
  7. Another Date Related Formula Question
    By David Lipetz in forum Excel General
    Replies: 6
    Last Post: 03-07-2006, 06:30 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