+ Reply to Thread
Results 1 to 7 of 7

Index and match formula between 2 workkbooks not giving me data

  1. #1
    Forum Contributor
    Join Date
    01-06-2019
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    209

    Index and match formula between 2 workkbooks not giving me data

    Hello I have a formula for index match it works for the first 6 columns and not for the 7th and 8th

    =IFERROR(INDEX('[ServiceIn.xlsm]Customer Details'!$B$3:$G$1048576,MATCH(B3,'[ServiceIn.xlsm]Customer Details'!$B$3:$B$31000),7),"")

    If I change the 7 at the end back to a 6 I get the previous column but it has an error when the formula has the 7 or 8 column

    error is #REF there is data in the location

    This formula works

    =IFERROR(INDEX('[ServiceIn.xlsm]Customer Details'!$B$3:$G$1048576,MATCH(B3,'[ServiceIn.xlsm]Customer Details'!$B$3:$B$31000),6),"")

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: Index and match formula between 2 workkbooks not giving me data

    B to G is 6 columns - you need to extend the range.

    However, you are not really using INDEX MATCH correctly. It should follow this pattern to return the sixth column:

    =IFERROR(INDEX('[ServiceIn.xlsm]Customer Details'!$G$3:$G$1048576,MATCH(B3,'[ServiceIn.xlsm]Customer Details'!$B$3:$B$31000),0)),"")

    0 = exact match
    1 - approximate match
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: Index and match formula between 2 workkbooks not giving me data

    7 as the last MATCH argument would be looking at column H and 8 would be column I. As the range in your INDEX covers only B:G (6 columns), anything higher than 6 will not work.

    Beth.

  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,023

    Re: Index and match formula between 2 workkbooks not giving me data

    There are only six columns in your range, B:G = 6. If you asj it to look at column 7 it falls over, 'cos there isn't one.

    IMHO it's better to select the column you want in INDEX and drop the ,7 bit. Much less ambiguity.
    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

  5. #5
    Forum Contributor
    Join Date
    01-06-2019
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    209

    Re: Index and match formula between 2 workkbooks not giving me data

    Ah yeah I forgot about that I did that before adding the other columns thanks for your help.

    Glenn not sure what you mean about electing the column in index do u have an example to explain it thanks.

  6. #6
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: Index and match formula between 2 workkbooks not giving me data

    An example of what Glenn means is exactly what Ali proposed in post #2.

    You see the INDEX is only looking at column G rather than B:G? That means the result can only come from G and is what Glenn was suggesting.

    If you need it to be more dynamic than that then you could possible use an INDEX/MATCH/MATCH to pick the row and column, but without seeing a sample file and having more of an idea of what you're trying to achieve it's difficult to say if it would work for you.

    Beth.

  7. #7
    Forum Contributor
    Join Date
    01-06-2019
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    209

    Re: Index and match formula between 2 workkbooks not giving me data

    Ah thank you Beth I understand now

+ 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 giving first value when no match
    By BPSJACK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2019, 09:30 AM
  2. [SOLVED] Index Match Multiple criteia Giving zero value
    By lauren11 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-04-2019, 01:15 AM
  3. Index/match - giving #NA but value is correct
    By MartinGTC in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-12-2017, 12:49 PM
  4. [SOLVED] Index - Match formula not giving me an expected result
    By longbow007 in forum Excel General
    Replies: 5
    Last Post: 11-25-2015, 07:34 PM
  5. [SOLVED] Index, Match and Indirect giving REF error
    By stanleds in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2013, 06:08 AM
  6. Simple Index Match formula giving me problems with 2 way lookup
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2013, 06:47 AM
  7. [SOLVED] Using Index Match or Vlookup giving unexpected results on imported data
    By jacob@thepenpoint in forum Excel General
    Replies: 2
    Last Post: 07-03-2012, 05:49 PM

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