+ Reply to Thread
Results 1 to 8 of 8

Help with Index/Match on two criteria

  1. #1
    Forum Contributor
    Join Date
    08-21-2014
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    232

    Question Help with Index/Match on two criteria

    Hello folks,

    I have a field that I need to populate from a datasheet containing computer or phone tags.

    The formula I've tried to build looks up staff initials, then goes to find either if the device is phone or computer.

    I'm getting odd results and have tried a few things but no joy.

    Funny thing is one of the formulas works, the other not, yet only one parameter changes.

    Sheet attached - the data will always be text string in this instance.

    Any pointers are welcomed, thanks,

    Ian
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Help with Index/Match on two criteria

    In F2

    =INDEX(HARDWARE!$B$1:$B$45,MATCH(1,($A2=HARDWARE!$A$1:$A$45)*($B$1=HARDWARE!$C$1:$C$45),0))

    in G2

    =INDEX(HARDWARE!$B$1:$B$45,MATCH(1,($A2=HARDWARE!$A$1:$A$45)*($C$1=HARDWARE!$C$1:$C$45),0))

    Both are array formulae


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

  3. #3
    Forum Contributor
    Join Date
    08-21-2014
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    232

    Re: Help with Index/Match on two criteria

    Thanks - works fine in my test sheet but when copied and adapted to my actual sheet I get an n/a with 'a value is not available to the formula or function'

    I even changed the row and spacing on my test sheet to ensure all column and row references were identical - and it works on test sheet but not on actual.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Help with Index/Match on two criteria

    Usually a data error (Mismatch): can you post a file with error ?

    As you have OS365, some (all?) formulas need not be array entered but I can't test this.

  5. #5
    Forum Contributor
    Join Date
    08-21-2014
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    232

    Re: Help with Index/Match on two criteria

    Edit - I think it's working - will roll out and feedback

  6. #6
    Forum Contributor
    Join Date
    08-21-2014
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    232

    Re: Help with Index/Match on two criteria

    Quick follow-up - being an array, is there any different way to add IFERROR to stop displays of N/A where the ID has yet to be added to a device?

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Help with Index/Match on two criteria

    IFERROR will work with or without arrays so just add in the usual way =IFERROR(formula,"")

  8. #8
    Forum Contributor
    Join Date
    08-21-2014
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    232

    Re: Help with Index/Match on two criteria

    Many thanks John

+ 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 fails when the Match Criteria is determined by a formula result
    By JeffGrant in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2021, 12:39 AM
  2. VBA function to match multiple criteria faster than vlookup or index match
    By bkav1991 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-09-2020, 09:14 AM
  3. Replies: 1
    Last Post: 03-01-2020, 10:36 PM
  4. [SOLVED] Combining INDEX/MATCH with several criteria and INDEX/SMALL
    By Dresas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-15-2018, 11:02 AM
  5. VBA Code for Index/Match/Match to input into excel based on 2 criteria inside form
    By Carl Fisher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2017, 12:11 PM
  6. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  7. Replies: 6
    Last Post: 04-30-2014, 02:42 AM

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