+ Reply to Thread
Results 1 to 7 of 7

Using MIN formula within VLOOKUP

  1. #1
    Registered User
    Join Date
    03-28-2016
    Location
    Gold Coast, Australia
    MS-Off Ver
    Office 2013
    Posts
    4

    Question Using MIN formula within VLOOKUP

    Hi there,

    Thanks in advance for your help. I am creating what is becoming a rather complex workbook and need help!

    I have one sheet which contains all raw data. A3-A1002 contains names and then B3:ZZ1002 contains corresponding information. I then have a second sheet which contains a summary sheet. There is a drop down in A1 of the summary, from which you select the person the form is for from A:A in Raw Data, and when selected, each cell in the form is populated using the corresponding information from B:ZZ in the Raw Data sheet for that particular person.

    One of these form fields, I require the earliest date from columns BL:BV (64-74) however I am struggling to get a positive result with my formula (returns #VALUE!)

    =IFERROR(IF(VLOOKUP($A$1,'Raw Data'!A:ZZ,MIN(64:74),FALSE)="","",VLOOKUP($A$1,'Raw Data'!A:ZZ,MIN(64:74),FALSE)),"")

    So to recap, A1 is the name of the person to be looking up in Raw Data and then I want to return the earliest date contained within the corresponding row's BL:BV fields.

    All help is appreciated!

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Using MIN formula within VLOOKUP

    Hi
    Can you upload a sample and small Excel file?

  3. #3
    Registered User
    Join Date
    03-28-2016
    Location
    Gold Coast, Australia
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: Using MIN formula within VLOOKUP

    Hi Jose

    Thanks for your help with this. I have attached an empty copy of the workbook that I am working on. The first sheet is the form and sheet 2 is my raw data.

    I appreciate your help!
    Attached Files Attached Files

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Using MIN formula within VLOOKUP

    Try these formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Using MIN formula within VLOOKUP

    Slight correction

    =MAX(OFFSET('Raw Data'!$BL$2:$BV$2,MATCH(QF.AD.23!A1,'Raw Data'!A:A,0)-1,0))

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Using MIN formula within VLOOKUP

    Quote Originally Posted by JohnTopley View Post
    Slight correction

    =MAX(OFFSET('Raw Data'!$BL$2:$BV$2,MATCH(QF.AD.23!A1,'Raw Data'!A:A,0)-1,0))
    Are you sure? The row data has two rows as labels.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Using MIN formula within VLOOKUP

    I wasn't sure which cell the formula should be so putting in a "spare" cell I got a result of the heading in row 2 of BL-BV: hence the suggested change.

    Apologies if I got it wrong.

    Original Formula in BN1 returns 9 (from heading)

    -1 returns Date in BL:BV
    Last edited by JohnTopley; 04-24-2016 at 01:11 PM.

+ 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. Multiple Vlookup Normal Formula (not array formula) or VBA Function Required
    By BoopathiK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2015, 03:06 AM
  2. vlookup, index/match formula factoring in time(days) and IF formula
    By rishijain11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2014, 06:37 PM
  3. [SOLVED] Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)
    By akulka58 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2014, 10:42 AM
  4. [SOLVED] VBA code for change vlookup formula to vlookup formula with ISNA
    By erprasannaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2013, 03:33 AM
  5. Vlookup referencing a vlookup formula
    By laurenann in forum Excel General
    Replies: 1
    Last Post: 01-24-2011, 05:52 PM
  6. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  7. vlookup-reate a vlookup formula?
    By Pam C in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 12:15 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