+ Reply to Thread
Results 1 to 7 of 7

Combine VLOOKUP and MAX or MIN formula

  1. #1
    Registered User
    Join Date
    05-05-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2010
    Posts
    33

    Combine VLOOKUP and MAX or MIN formula

    Hello

    I want to create a furmula that finds a specific value and select the min date from a range of cells of another column.

    e.g In attached file - spreadsheet 2, column B find min date of data in spreadsheet 1

    thank you
    hope to be understandable
    Attached Files Attached Files

  2. #2
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: Combine VLOOKUP and MAX or MIN formula

    Can you post a non-XLSX version?

  3. #3
    Registered User
    Join Date
    05-05-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Combine VLOOKUP and MAX or MIN formula

    .xls file
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Combine VLOOKUP and MAX or MIN formula

    Try:

    =MIN(IF(Φύλλο1!$A$2:$A$13=A2;Φύλλο1!$B$2:$B$13))

    confirm it with CTRL+SHIFT+ENTER not just ENTER so you see { } brackets,, then copy down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    05-05-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Combine VLOOKUP and MAX or MIN formula

    this formula works perfect...but i have one more question

    if a cell is empty it calculates it as 0 and gives wrong result (date 0/1/1900). Is there any possibility for the formula to dont calculate blank cells and only the cells that have values?

    thanks

  6. #6
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Combine VLOOKUP and MAX or MIN formula

    Can you post a non-XLSX version?
    You can open and edit .xlsx files if you install the Office Compatibility Pack. The only caveat is that Excel functions specific to version 2007+ will not work, nor can you edit Pivot Tables, but you still get most of the functions commonly used. Worth the install.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Combine VLOOKUP and MAX or MIN formula

    Quote Originally Posted by v!ctor View Post
    this formula works perfect...but i have one more question

    if a cell is empty it calculates it as 0 and gives wrong result (date 0/1/1900). Is there any possibility for the formula to dont calculate blank cells and only the cells that have values?

    thanks
    Format the result cells to hide those.

    Select the cells, go to format cells, they should be set as date, go to Custom and add ;;; to the end. (e.g. in English-US it would be m/d/yyyy;;

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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