+ Reply to Thread
Results 1 to 5 of 5

2D Index match match & error trapping

  1. #1
    Registered User
    Join Date
    07-23-2017
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    28

    2D Index match match & error trapping

    Hi Guys,

    Not sure if the topic title is quite right.

    I am trying to create a 2d index match match lookup formula. I have to account for potential blank vlaues that would normally spit out a nil.

    I'm using the following formula:

    =IFERROR(IF(INDEX($C$4:$N$33,MATCH($Q11,$B$4:$B$33,0),MATCH(R$9,$C$3:$N$3,0))=0,"",INDEX($C$4:$N$33,MATCH($Q11,$C$3:$N$3,0),MATCH(R$9,$C$3:$N$3,0))),"")

    However, each cell contains a value and so it should return the values from the array? Yet when i complete the formula it just returns a blank value. I've created a mini adjacent table and I want to return all of the values yet retain the other part of the formula that accounts for blanks - if index and match = 0 and also the iferror what am I doing wrong?

    Thanks so much!

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: 2D Index match match & error trapping

    So you want 0's to be shown as blank?

    Try this:

    R10 =IFERROR(1/(1/INDEX($C$4:$N$33,MATCH($Q19,$B$4:$B$33,0),MATCH(R$18,$C$3:$N$3,0))),"")

    Now if you delete cell C6, you will see that R10 turns blank instead of showing 0.

  3. #3
    Registered User
    Join Date
    06-28-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    19

    Re: 2D Index match match & error trapping

    I interpreted it as you want blanks to be shown as 0's so either way you'll have a formula that works.

    =IFERROR(INDEX($C$4:$N$33,MATCH($Q10,$B$4:$B$33,0),MATCH(R$9,$C$3:$N$3,0)),"")

    This was a fun exercise to learn from, thanks for posting,
    LearningByError



    Edit: Please mark this as solved if we have in fact solved your problem!

  4. #4
    Registered User
    Join Date
    07-23-2017
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    28

    Re: 2D Index match match & error trapping

    Thanks so much guys. I haven't explained it very well.

    If I retained the row for brooks candies but removed all the sales values in each of the rows in the main table array, I want it to display a blank cell from cells R19 to U19 in the lookup return table. Display blank values if true, but return values from tablle array if false.

    It's actually going to be used for a mail merge so the formulas need to sit in each of the cells as blank and only display once a 4-code unique lookup value is entered from the table array

    Thanks so much

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: 2D Index match match & error trapping

    Try array entering this in R19, fill down and across.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

+ 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 match value error
    By Excelmagster in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-03-2017, 07:03 AM
  2. Replies: 5
    Last Post: 02-18-2017, 11:21 AM
  3. Index Match Match Ref Error
    By gotebitda in forum Excel General
    Replies: 4
    Last Post: 04-20-2016, 06:23 PM
  4. unable to get match property error in userform derived index match
    By alexcrofut in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-05-2015, 09:21 PM
  5. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  6. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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