+ Reply to Thread
Results 1 to 4 of 4

Index and match array formula

  1. #1
    Spammer
    Join Date
    06-27-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    183

    Index and match array formula

    Hi Friends,

    In the below formula i have selected entire column of A:F, i need to change this formula from selecting entire column to exact used cells of A:F in sheet1.
    Kindly help.

    HTML Code: 

  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 and match array formula

    You can use Named Ranges to do that for you. it would help if we could see Sheet1, to guide you in the setting up of these ranges. It is also a bit wasteful to select all columns, when you are returning an answer ONLY from D.

    =INDEX(Sheet1!D:D,MATCH(A2&B2,Sheet1!A:A&Sheet1!B:B,0))

    Also, that type of concatenation array can be very slow. There are better (non-array) alternatives that have syntax like this:

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


    You can try to adapt that to suit your needs. However it would be good if you would post your sheet.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    The paperclip icon
    Last edited by Glenn Kennedy; 08-08-2015 at 11:32 AM.
    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

  3. #3
    Spammer
    Join Date
    06-27-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    183

    Re: Index and match array formula

    Thanks Glenn!

    I have attached sheet for your reference.

    Issue is number of records are dynamic hence i may not know the exact number of record to update range like "Raw!$C$2:$C$19".
    Attached Files Attached Files

  4. #4
    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 and match array formula

    So, I have a sheet; but the numbers weren't very realistic, were they? they were all the same!!!! I put in some real numbers to make it work.

    I set up 3 named ranges (CTRL F3) dynamically to adjust to the lengths of Columns 1, 2 and the result column from Sheet 1. If the drat do NOT begin on row 2, you will need to adjust each of the named ranges =OFFSET(Sheet1!$A$2,0,0,COUNTA(Sheet1!$A:$A)-1,1) to reflect the first row of data (first bold character) and the number of non-blank cells above that row (second bold character).

    The formula then is simply:

    =INDEX(Result,MATCH(1,INDEX((Col_1=A3)*(Col_2=B3),0),0)) copied down
    ..

    For future reference, attach sample data that has the same layout as your real sheet and which also has realistic data.
    Attached Files Attached Files

+ 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] INDEX MATCH Array formula Help
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-28-2014, 10:01 PM
  2. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  3. [SOLVED] Index and Match array formula - Help with this?
    By SwtSinSation in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2014, 09:51 AM
  4. Index, Match, Min, If, And in one Array formula
    By Skybeau in forum Excel General
    Replies: 1
    Last Post: 07-18-2012, 01:03 AM
  5. Nested Match(index()) vs. Match() array formula.
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 07:57 AM
  6. Second opinions on Index/match array formula
    By Blake 7 in forum The Water Cooler
    Replies: 16
    Last Post: 02-15-2011, 08:34 AM
  7. [SOLVED] Index and Match Array formula
    By Graham Haughs in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-15-2006, 09:55 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