+ Reply to Thread
Results 1 to 9 of 9

Lookup value and get minimum value of date in that found row

  1. #1
    Registered User
    Join Date
    01-15-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    8

    Lookup value and get minimum value of date in that found row

    Hi

    I'm quite new to this VBA programming in Excel. I have a very specific problem where I need some help. I hope you are the people ;-)

    I have a workbook (Report) from where the cell B2 have to be looked up in column A in the workbook Project_Overview. The lookup have to return the lowest and the highest date from the row in where the value is present.

    Pretty pretty please, can somebody help me?!
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Lookup value and get minimum value of date in that found row

    In some cell in Report use:
    Please Login or Register  to view this content.
    and second formula with MAX instead of MIN.

  3. #3
    Registered User
    Join Date
    01-15-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Lookup value and get minimum value of date in that found row

    Hi Kaper

    Thanks. It works. Can anyone then help me doing it in VBA?

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Lookup value and get minimum value of date in that found row

    in your Report.xlsm (and while sheet1 is active)
    Please Login or Register  to view this content.
    shall do the same

  5. #5
    Registered User
    Join Date
    01-15-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Lookup value and get minimum value of date in that found row

    Thanks a lot! I think it works - now I just have to transfer it to my large documents.. I'm really happy you could help Kaper!!

  6. #6
    Registered User
    Join Date
    01-15-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Lookup value and get minimum value of date in that found row

    Hi again

    Is it possible to change the code so that B2 is found only in column B and C (and not column D)?

    I really hope you can help a novice Thanks in advance!!!

  7. #7
    Registered User
    Join Date
    01-15-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Lookup value and get minimum value of date in that found row

    Nobody that can help me?

    I want to look up a value in five specific columns in the row returned by a match function.

  8. #8
    Registered User
    Join Date
    01-15-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Lookup value and get minimum value of date in that found row

    I made a workaround, however it is not preferable when working on huge workbooks.. So if anyone have an idea to remove this workaround and make a generic solution, I would be happy to hear from you.

    My workaround:
    Please Login or Register  to view this content.
    The reason for specifying Sheet1 is that I have to transfer the code to a large workbook.

  9. #9
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Lookup value and get minimum value of date in that found row

    Hi,
    the reply below is for your two yesterdays posts (just edited in one place to make it better applicable to your case shown today some 20 minutes ago).

    1) five specific columns is a bit :-P different than column B and C (and not column D)
    the latter below:
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    the first (if these are really different (say B:D M and Z) columns) for instance (this you could easily adopt to your needs):

    Please Login or Register  to view this content.

+ 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. Minimum lookup value using array formulas
    By XanderLo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2013, 11:26 PM
  2. Replies: 7
    Last Post: 04-17-2013, 03:53 PM
  3. [SOLVED] Lookup minimum value in a column for referred Cell
    By sfshah in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-09-2012, 11:11 AM
  4. Return number of days until a date found in a lookup table
    By midwestgirl80 in forum Excel General
    Replies: 1
    Last Post: 08-08-2009, 10:07 PM
  5. [SOLVED] How to lookup the minimum, 2nd minimum and 3rd minimum.........
    By Mark McDonough in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-15-2006, 04:45 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