+ Reply to Thread
Results 1 to 8 of 8

Reference range cells from VLOOKUP results

  1. #1
    Registered User
    Join Date
    10-22-2009
    Location
    Houston, TX
    MS-Off Ver
    Office 2007
    Posts
    7

    Lightbulb Reference range cells from VLOOKUP results

    I have a workbook where one tab contains the data that I am given:

    Project-A data1 data2 date1 date2 date3
    Project-B data1 data2 date1 date2 date3
    Project-C data1 data2 date1 date2 date3
    Project-D data1 data2 date1 date2 date3

    In another tab, I have a report where a row containd the project name, and I want to find the maximum value of the dates in the ither tab, where my project name matches the project name on the tab data I am given.

    So, if I have "Project-C", I need to know the max of the dates in the row for Project-C; but I dont know what row that will be on in the other tab. For info such as 'data1' I have been simply using vlookup using the project name as a key.

    thanks in advance for taking a look and helping me solve this..
    Last edited by bobprivate; 10-22-2009 at 02:30 PM.

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

    Re: Reference range cells from VLOOKUP results

    You can use Max(IF()) array formula

    eg.

    =MAX(IF(Sheet1!$A$1:$A$100=X1,Sheet1!$B$1:$E$100))

    adjust ranges and references to suit and confirm by holding the CTRL and SHIFT keys down and then press ENTER
    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.

  3. #3
    Registered User
    Join Date
    10-22-2009
    Location
    Houston, TX
    MS-Off Ver
    Office 2007
    Posts
    7

    Re: Reference range cells from VLOOKUP results

    ok.. if my sample data was:

    Sheet1
    A B C D E F
    1 Project-A data1 data2 date1 date2 date3
    2 Project-B data1 data2 date1 date2 date3
    3 Project-C data1 data2 date1 date2 date3
    4 Project-D data1 data2 date1 date2 date3

    Sheet2
    A B C D E F
    1 Project-C ???
    2



    What would be the formula in C1 that would tell me the maximum of
    Sheet1!D3 thru Sheet1!F3; given the data in Sheet2!A1.

    Bearing in mind, of course, that I won't really know ahead of time
    that the data is on row-3.

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

    Re: Reference range cells from VLOOKUP results

    =MAX(IF(Sheet1!$A$1:$A$100=A11,Sheet1!$D$1:$F$100))

    assuming a maximum of 100 rows in Sheet1....

    then confirm with CTRL+SHIFT+ENTER so that formula becomes surrounded by { } brackets

  5. #5
    Registered User
    Join Date
    10-22-2009
    Location
    Houston, TX
    MS-Off Ver
    Office 2007
    Posts
    7

    Re: Reference range cells from VLOOKUP results

    So far that hasnt worked for me - Would you please have a look at my attached workbook at:

    https://sites.google.com/site/exceldemofile/

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

    Re: Reference range cells from VLOOKUP results

    Link doesn't work... post it here as an attachment (paperclip icon in Reply box)

  7. #7
    Registered User
    Join Date
    10-22-2009
    Location
    Houston, TX
    MS-Off Ver
    Office 2007
    Posts
    7

    Re: Reference range cells from VLOOKUP results

    ok.. see attachment.. thanks!
    Attached Files Attached Files

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

    Re: Reference range cells from VLOOKUP results

    See attached,

    Formula used:

    =IF(A4="","",MAX(IF(Database!$B$2:$B$7=Report!A4,Database!$I$2:$M$7)))

    confirmed with CTRL+SHIFT+ENTER and copied down.

    Cells are formatted as dates.

    I also add IF() part to leave cell blank if Project not entered in A.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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