+ Reply to Thread
Results 1 to 8 of 8

Using an IF function to cross reference different tabs with lots of criteria

  1. #1
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Using an IF function to cross reference different tabs with lots of criteria

    I have attached an example of what I'm trying to figure out. You can see my desired result on the last tab.

    I'm trying to use an IF function with lots of criteria that cross references a table on another tab to place a "YES" or "NO" in each cell if the criteria is met. You can find the criteria on the example. Can someone please help me as I've tried everything!




    I posted this post on multiple other sources (https://www.mrexcel.com/forum/excel-...ease-help.html, http://www.excelguru.ca/forums/showt...-(PLEASE-HELP))
    Attached Files Attached Files

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

    Re: Using an IF function to cross reference different tabs with lots of criteria

    It took a while to understand your requirement, but is this it?

    =IF(E6="","",INDEX('Seller - Potential Teams'!$D$6:$L$29,MATCH(F6,'Seller - Potential Teams'!$B$6:$B$29,0),MATCH(I6,'Seller - Potential Teams'!$D$5:$L$5,0)))

    in D6, copied down?
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 04-23-2017 at 01:24 PM.
    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
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Re: Using an IF function to cross reference different tabs with lots of criteria

    Glenn,

    Thanks for your help. It's getting there, but not quite yet. There is only one thing I can't get to match up.

    When I place the formula into my big spread sheet, it is picking up every single cell that has an "X" in it, but I need it to only pick up the ones that have an X AND has "Buyer" in the corresponding column for each team (column C). I tried adding another MATCH("Buyer", etc. etc.), but it's not picking it up. What should I do?

    Also, I changed one criteria of your formula as the position doesn't pertain to the actual player, but rather the position of need for the team, so this is what I have, but the last match isn't working"

    =IF(E6="","", INDEX('Seller - Potential Teams'!$D$6:$L$29,MATCH(F6,'Seller - Potential Teams'!$B$6:$B$29,0),MATCH(E$6$, Seller - Potential Teams'!$D$5:$L$5,0), MATCH("Buyer",'Seller - Potential Teams'!$C$6:$C29$,0)))

  4. #4
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Re: Using an IF function to cross reference different tabs with lots of criteria

    Quote Originally Posted by Glenn Kennedy View Post
    It took a while to understand your requirement, but is this it?

    =IF(E6="","",INDEX('Seller - Potential Teams'!$D$6:$L$29,MATCH(F6,'Seller - Potential Teams'!$B$6:$B$29,0),MATCH(I6,'Seller - Potential Teams'!$D$5:$L$5,0)))

    in D6, copied down?

    Glenn, can you specify specific words for a MATCH to look for, such as "Seller"? I know this is possible for most functions, but it doesn't look like it's doing that for this function I've tried to write. Thank you so much for your help.

  5. #5
    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: Using an IF function to cross reference different tabs with lots of criteria

    I can't really tell what you've done, 'cos I can't see your data. can you please post a sample of what you are REALLY working with. However, you CANNOT add a third MATCH function. The first is there to establish the row and the second the column of the matching result.

  6. #6
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Re: Using an IF function to cross reference different tabs with lots of criteria

    Quote Originally Posted by Glenn Kennedy View Post
    I can't really tell what you've done, 'cos I can't see your data. can you please post a sample of what you are REALLY working with. However, you CANNOT add a third MATCH function. The first is there to establish the row and the second the column of the matching result.
    I can't post the actual data as it is of confidential matter. The data is exactly the same though, but just adjusted to make sure it is confidential. The original function you attached was exactly right except for the fact it didn't take into account the "Buyer" or "Seller" classification that I mentioned above. I really appreciate your help and you are the only one who has gotten close to the solution, so please let me know what other information you need to help figure this out.

  7. #7
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Re: Using an IF function to cross reference different tabs with lots of criteria

    Is there anyway I can add an AND function to the INDEX MATCH to specific that they INDEX MATCH has to have an "X" in the cell AND the player's team must equal "Buyer" (I added this column to my data for each player using a v-lookup

  8. #8
    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: Using an IF function to cross reference different tabs with lots of criteria

    If I add a term into the Index-Match for "Buyer" 'Seller - Potential Teams'!$C$6:$C$29="Buyer"). FIRSTLY is that the correct column reference?

    Seconldly, the overall formula becomes an array formula:

    =IF(E6="","",IFERROR(INDEX('Seller - Potential Teams'!$D$6:$L$29,MATCH(1,('Seller - Potential Teams'!$B$6:$B$29=F6)*('Seller - Potential Teams'!$C$6:$C$29="Buyer"),0),MATCH(I6,'Seller - Potential Teams'!$D$5:$L$5,0)),""))

    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...


    And then it DOES NOT find your expected answer. This is why I am confused....

+ 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] Cross-Reference Multiple Criteria for a Returned Value
    By kibbles in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-11-2016, 06:18 PM
  2. cannot find function to cross reference label with price
    By spikemorison in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2014, 09:02 PM
  3. Cross-referencing lots of data?
    By IsaacsLaughing in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-24-2012, 08:57 AM
  4. Replies: 4
    Last Post: 06-29-2011, 07:46 AM
  5. Cross referencing lots of data
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-14-2009, 10:11 AM
  6. Is there a Cross-reference function?
    By Christian Mason in forum Excel General
    Replies: 1
    Last Post: 08-28-2007, 08:21 AM
  7. Cross sheet reference function
    By Rocky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2006, 05:45 AM

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