+ Reply to Thread
Results 1 to 8 of 8

Get MIN of range using VLOOKUP and INDIRECT

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Get MIN of range using VLOOKUP and INDIRECT

    I've attached a sample workbook which contains 3 sheets.

    The first sheet is the "Analysis" sheet which looks up data in the other sheets. (The actual workbook I'm using has over 50 sheets).

    In this sample workbook, I've named two ranges. The range names are the same as the sheets, concatenated with an "R". So the range I'm using in the AAVE sheet is named AAVER.

    I am able to pull up data for single cells in the two ranges using VLOOKUP and INDIRECT. (See columns J:N of the Analysis sheet).

    However I want to also obtain the MIN of a range of data in each of the two sheets, also using some kind of lookup formula. (or possibly LAMBDA?).

    Any suggestions on how to accomplish this? I appreciate your help!
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Get MIN of range using VLOOKUP and INDIRECT

    Maybe try

    =MINIFS(INDIRECT(H3),INDIRECT(H3),">0")
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: Get MIN of range using VLOOKUP and INDIRECT

    That was clever and efficient! Thanks much.

    Edit: Whoops. Your formula gives min of the entire range. I'm looking for min of start date (Column F in Analysis sheet) + 60 days out.
    Last edited by jrtaylor; 08-15-2021 at 03:46 PM.

  4. #4
    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,169

    Re: Get MIN of range using VLOOKUP and INDIRECT

    The MINIFS is looking the named range in total, not the subset you indicated in you workbook.

    By coincidence the MIN happens to be in your selected range: FALSE positive!

    NOTE: your 60 day selection is actually 61 days.
    Last edited by JohnTopley; 08-15-2021 at 03:50 PM.

  5. #5
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: Get MIN of range using VLOOKUP and INDIRECT

    Thanks John. I reverted the thread to "unsolved." And noted, on my 61 day range selection!

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Get MIN of range using VLOOKUP and INDIRECT

    Try

    =INDEX(SORT(FILTER(INDIRECT(H3),(INDEX(INDIRECT(H3),,1)>=F3)*(INDEX(INDIRECT(H3),,1)<=F3+Q$2)),3),1,3)

    Don't use the whole column for the range name, this really slows down array calculation.
    Row 5:10000 covers 27 years is more than enough.

    or faster with minifs

    =MINIFS(INDEX(INDIRECT(H3),,3),INDEX(INDIRECT(H3),,1),">="&F3,INDEX(INDIRECT(H3),,1),"<="&F3+Q$2)
    Attached Files Attached Files
    Last edited by Bo_Ry; 08-16-2021 at 04:53 AM.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Get MIN of range using VLOOKUP and INDIRECT

    Pl see file. In R3 copied down
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  8. #8
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: Get MIN of range using VLOOKUP and INDIRECT

    Thanks so much for the help! And I'll shorten the range down to 1,000 rows since that's more than enough to cover the time span of the price history.

+ 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. Replies: 18
    Last Post: 05-22-2021, 01:38 PM
  2. using indirect in vlookup to insert search range
    By smakatura in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-16-2019, 09:51 AM
  3. [SOLVED] Keeping cell range locked during Vlookup? Indirect function?
    By iracknback in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2014, 05:42 PM
  4. [SOLVED] Vlookup/Indirect Formula Not Finding Range
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2013, 04:15 PM
  5. Vlookup with Indirect and Named Range
    By todd1016 in forum Excel General
    Replies: 3
    Last Post: 02-20-2011, 11:45 AM
  6. INDIRECT.EXT to build a range in VLOOKUP
    By Jufa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-30-2008, 03:07 PM
  7. Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 AM

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