+ Reply to Thread
Results 1 to 7 of 7

INDEX MATCH - replacing the fixed values with fluid formulas

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    toronto, canada
    MS-Off Ver
    Excel 2013
    Posts
    3

    INDEX MATCH - replacing the fixed values with fluid formulas

    7H3uWiW.png

    Hello, I wish to have the formulas in the above image:
    1. Search for the most recent entry.
    2. Find the lowest value in the row.
    3. Report that value and the header.

    I've been unable to get the formula to report the result without using a fixed column and row value. Am I using the right formulas? Thank you! Much appreciated folks.
    Last edited by audiberry; 01-14-2020 at 04:28 PM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: INDEX MATCH - replacing the fixed values with fluid formulas

    Are the values in col A presumably from row 2 down to row 703 in ascending order? If so, then the last nonblank row would be the most recent entry, and the lowest value from column B to column W would be given by

    A709: =MIN(INDEX(B$2:W$703,MATCH(1,0/ISBLANK(A$2:A$703)),0))

    and the corresponding column label by

    A710: =INDEX(B$1:W$1,MATCH(A709,INDEX(B$2:W$703,MATCH(1,0/ISBLANK(A$2:A$703)),0))

    If A2:A703 is unsorted, it's more complicated.

    A709: =MIN(INDEX(B$2:W$703,MATCH(MAX(A$2:A$703),A$2:A$703,0),0))

    A710: =INDEX(B$1:W$1,MATCH(A709,INDEX(B$2:W$703,MATCH(MAX(A$2:A$703),A$2:A$703,0),0))

  3. #3
    Registered User
    Join Date
    04-22-2014
    Location
    toronto, canada
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: INDEX MATCH - replacing the fixed values with fluid formulas

    Quote Originally Posted by hrlngrv View Post
    Are the values in col A presumably from row 2 down to row 703 in ascending order? If so, then the last nonblank row would be the most recent entry, and the lowest value from column B to column W would be given by

    A709: =MIN(INDEX(B$2:W$703,MATCH(1,0/ISBLANK(A$2:A$703)),0))

    and the corresponding column label by

    A710: =INDEX(B$1:W$1,MATCH(A709,INDEX(B$2:W$703,MATCH(1,0/ISBLANK(A$2:A$703)),0))

    If A2:A703 is unsorted, it's more complicated.

    A709: =MIN(INDEX(B$2:W$703,MATCH(MAX(A$2:A$703),A$2:A$703,0),0))

    A710: =INDEX(B$1:W$1,MATCH(A709,INDEX(B$2:W$703,MATCH(MAX(A$2:A$703),A$2:A$703,0),0))
    Thank you for the reply. I'm afraid when I try the bolded suggestions, I get DIV/0 errors. The third one appears to work fine! I will look further into how it's broken down.

    Is there a way to remove "703" from the formula completely so that it adjusts to whatever row number the last row is?
    Last edited by audiberry; 01-14-2020 at 01:49 AM.

  4. #4
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: INDEX MATCH - replacing the fixed values with fluid formulas

    Sorry, screwed up.

    Sorted
    A709: =MIN(INDEX(B$2:W$703,MATCH(1,INDEX(0/NOT(ISBLANK(A$2:A$703)),0),0),0))
    A710: =INDEX(B$1:W$1,MATCH(A709,INDEX(B$2:W$703,MATCH(1,INDEX(0/NOT(ISBLANK(A$2:A$703)),0),0),0),0))

    Unsorted
    A709: =MIN(INDEX(B$2:W$703,MATCH(MAX(A$2:A$703),A$2:A$703,0),0))
    A710: =INDEX(B$1:W$1,MATCH(A709,INDEX(B$2:W$703,MATCH(MAX(A$2:A$703),A$2:A$703,0),0))

    As for removing the $703, if these formulas would always be about 6 rows below the table, you could replace A$703 with INDEX($A:$A,ROW()-6) and W$703 with INDEX($W:$W,ROW()-6) in these formulas.
    Last edited by hrlngrv; 01-14-2020 at 02:35 AM. Reason: forgot follow-up

  5. #5
    Registered User
    Join Date
    04-22-2014
    Location
    toronto, canada
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: INDEX MATCH - replacing the fixed values with fluid formulas

    Sorry, trying the Sorted formulas gives "Value not Available" #N/A errors.

    The first Unsorted formula works fine, but the second Unsorted formula also gives a "Value not Available" error.

    I'm wondering, could a minif be used?

    minif the value in column B:W if A=max(A:A)?
    Last edited by audiberry; 01-14-2020 at 09:15 AM.

  6. #6
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: INDEX MATCH - replacing the fixed values with fluid formulas

    I should learn to test everything.

    Sorted
    A709: =MIN(INDEX(B$2:W$703,MATCH(1,INDEX(0/NOT(ISBLANK(A$2:A$703)),0)),0))
    A710: =INDEX(B$1:W$1,MATCH(A709,INDEX(B$2:W$703,MATCH(1,INDEX(0/NOT(ISBLANK(A$2:A$703)),0)),0),0))

    Unsorted
    A709: =MIN(INDEX(B$2:W$703,MATCH(MAX(A$2:A$703),A$2:A$703,0),0))
    A710: =INDEX(B$1:W$1,MATCH(A709,INDEX(B$2:W$703,MATCH(MAX(A$2:A$703),A$2:A$703,0),0),0))

    I've tested these in this Excel Online workbook.

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,617

    Re: INDEX MATCH - replacing the fixed values with fluid formulas

    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced next to "Post Quick Reply" button at the bottom right of the editor box.
    • Scroll down until you see "Manage Attachments",
    • Click the "Choose" button at the upper left (upload from your computer).
    • Select your file, click "open", click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Close the Attachment Manager window.
    • Click "Submit Reply"
    Note: Please do not attach password protected workbooks/worksheets
    Ensure to disable any Workbook Open/Autorun macros before attaching!
    Ben Van Johnson

+ 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. [SOLVED] Need INDEX MATCH formula with FIXED workbook but DYNAMIC sheet
    By mbb19 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-10-2018, 02:43 PM
  2. [SOLVED] Replacing formulas with values
    By jh51745 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2018, 10:35 AM
  3. Replacing formulas with values
    By jh51745 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2018, 03:17 PM
  4. Index Match Formula, can index be fixed?
    By herschen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2015, 08:28 PM
  5. replacing VLOOKUP with INDEX MATCH function
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-14-2012, 05:08 PM
  6. [SOLVED] Index & Match returning incorrect value. Arrays fixed and exact match used.
    By SDes in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-07-2012, 08:29 PM
  7. Replacing Formulas with Values
    By Raman325 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2005, 02:54 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