+ Reply to Thread
Results 1 to 9 of 9

using Index, Match, Large, and Visible Cells in one formula

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    using Index, Match, Large, and Visible Cells in one formula

    Okay, I think the title says it all. I have a formula which looks like this:
    Please Login or Register  to view this content.
    It returns a value from a cell two doors down from the largest number in column F. That part works fine.

    However, I have an autofilter on my data. When I use the autofilter, I only want the formula to look at the visible cells. Is there a way to do this in the active formula, or does it require a VBA solution? I'd prefer to do have this be part of the formula if at all possible, so am looking for a solution.

    Thanks in advance,
    John
    Last edited by NBVC; 09-19-2011 at 10:02 AM.

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

    Re: using Index, Match, Large, and Visible Cells in one formula

    Try something like:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER.

    Note: Do not use whole column references with this formula... it may crash Excel or take very long to process.
    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
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: using Index, Match, Large, and Visible Cells in one formula

    Hmmm,

    the data limitation is going to be a problem. I've got about 10K rows to check. Could/Should I set up dynamic ranges, and use those in the formula?

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

    Re: using Index, Match, Large, and Visible Cells in one formula

    Dynamic ranges should definitely help. 10,000 rows shouldn't be much of a problem, though.... I just tried the formula with 10,000 row ranges and it returned in a flash... but if you have multiple array formulas, it reduces the speed again...

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: using Index, Match, Large, and Visible Cells in one formula

    I'm having trouble, so thought I would attach what I have to see what can be done. After I created my dynamic ranges I tried your formula, then got a circular result error. So, I went back to my original formulas. Using one of the two dynamic ranges ("Need") works, but the second, "Title", creates a circular reference, but I can't understand why. Instead of crying over it I thought maybe you could take a look. The formulas are in C1 and C2.

    Thanks,
    John
    Attached Files Attached Files

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

    Re: using Index, Match, Large, and Visible Cells in one formula

    Redefine Named ranges as:

    Need:

    Please Login or Register  to view this content.
    Title:

    Please Login or Register  to view this content.
    Then apply array formula:

    Please Login or Register  to view this content.
    CSE confirmed

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: using Index, Match, Large, and Visible Cells in one formula

    YES,YES,YES!!!

    NBVC, you ROCK!

    The formulas worked perfectly. Thank you so much for your help on this one!

  8. #8
    Registered User
    Join Date
    01-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: using Index, Match, Large, and Visible Cells in one formula

    Hi all,
    I am trying to match two columns and return the matching values. One of the column is a filtered column. What formula should i write to only match the filtered/visible values in column 2 with the values in column 1. Below is formula i have right now and it also matches the hidden values which i dont want to..

    =IF(ISERROR(MATCH($B1053,'Consolidate LDT'!$M$9:$M$413,0)),"na",$B1053)

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: using Index, Match, Large, and Visible Cells in one formula

    Rocky4u,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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