+ Reply to Thread
Results 1 to 2 of 2

Index & Match (Dynamic Range)

  1. #1
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2010
    Posts
    110

    Index & Match (Dynamic Range)

    Hi

    I want to lookup a word (e.g. Bananas) and return the value which is one cell above the cell which contains Bananas.

    The "Bananas" cell can appear anywhere in columns A:R and the row and column number which contains "Bananas" can change each day i.e the range is dynamic.

    Can someone please advise how to do this?

    Thanks in advance

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Index & Match (Dynamic Range)

    One way, using an array formula:
    =INDEX($A$1:$C$9,MAX(IF(Sheet1!$A$1:$C$9="Bananas",ROW(Sheet1!$A$1:$C$9)-1)),MAX(IF(Sheet1!$A$1:$C$9="Bananas",COLUMN(Sheet1!$A$1:$C$9))))

    Adjust the ranges to suit...

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. Index and Match functions with dynamic range
    By icordeiro in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-12-2016, 11:56 PM
  2. Index and Match functions with dynamic range
    By icordeiro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2016, 05:17 PM
  3. INDEX(MATCH) dynamic column range?
    By nobodyukno in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-19-2016, 03:46 PM
  4. Index/Match - Dynamic Index Range with Hlookup
    By WassimJMP in forum Excel General
    Replies: 3
    Last Post: 02-16-2016, 12:24 PM
  5. Use Dynamic Range for index match?
    By bvokey in forum Excel General
    Replies: 3
    Last Post: 02-14-2016, 09:04 PM
  6. Vba index and match for dynamic range
    By _google in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-20-2013, 10:25 AM
  7. dynamic range for index/match formula
    By excellicious in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-29-2008, 07:41 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