+ Reply to Thread
Results 1 to 11 of 11

2 Criteria to Determine What Data Set to Use During VLOOKUP

  1. #1
    Registered User
    Join Date
    07-22-2024
    Location
    Naples, Florida, USA
    MS-Off Ver
    Office Home and Business 2019
    Posts
    8

    Question 2 Criteria to Determine What Data Set to Use During VLOOKUP

    I'm trying to find a value in a table based on matching the subject column to B2, quarter column to B4 and the value in the specified option column above 0. B2 and B4 have drop down lists so that text is variable and would change the chosen selection.

    This was the simplest way I could think to describe without leaving out important information.

    I've done hours of research at this point to figure out the correct formula and I've had no luck.
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2505 and WPS V2024(12.1.0.18543)
    Posts
    4,113

    Re: 2 Criteria to Determine What Data Set to Use During VLOOKUP

    Cell B7 formula , drag right

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

  3. #3
    Registered User
    Join Date
    07-22-2024
    Location
    Naples, Florida, USA
    MS-Off Ver
    Office Home and Business 2019
    Posts
    8

    Re: 2 Criteria to Determine What Data Set to Use During VLOOKUP

    Gives a #N/A error. Can you explain how this process is working?

    From my understanding it's looking up values for B2 and B4 but the IF is confusing me. I don't understand why "$A$10:$A$25&$F$10:$F$25" is being used in the "value if true field" and "B$10:B$25" for "value if false" field. Doesn't it need a table selection to be able to match across the row?

    Currently I have it searching for Subject 1, Quarter 1 where the value shows 2 in the table but it does not convert over.

  4. #4
    Registered User
    Join Date
    07-22-2024
    Location
    Naples, Florida, USA
    MS-Off Ver
    Office Home and Business 2019
    Posts
    8

    Re: 2 Criteria to Determine What Data Set to Use During VLOOKUP

    I've simplified what was mentioned in the last response I had and thought it worked but it still won't pull from the Quarter selection field.

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


    The multiple selection is why I was attempting to use COUNTIFS but that didn't seem to work based on text inside a field.

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2505 and WPS V2024(12.1.0.18543)
    Posts
    4,113

    Re: 2 Criteria to Determine What Data Set to Use During VLOOKUP

    Quote Originally Posted by xDarkDeadpool View Post
    Gives a #N/A error. Can you explain how this process is working?

    From my understanding it's looking up values for B2 and B4 but the IF is confusing me. I don't understand why "$A$10:$A$25&$F$10:$F$25" is being used in the "value if true field" and "B$10:B$25" for "value if false" field. Doesn't it need a table selection to be able to match across the row?

    Currently I have it searching for Subject 1, Quarter 1 where the value shows 2 in the table but it does not convert over.
    This test this file , No #N/A error
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,879

    Re: 2 Criteria to Determine What Data Set to Use During VLOOKUP

    It probably needs entering with CSE in Excel 2019.

    CSE = CTRL+SHIFT+ENTER before copying across.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2505 and WPS V2024(12.1.0.18543)
    Posts
    4,113

    Re: 2 Criteria to Determine What Data Set to Use During VLOOKUP

    Thank you, ALIGW. You are right. CSE=CTRL+SHIFT+ENTER, I haven't used the old version for too long and almost forgot about their existence

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,879

    Re: 2 Criteria to Determine What Data Set to Use During VLOOKUP

    Me, neither - just remember that any array formula needs it in anything OLDER THAN 2021 - no CSE for 2021 and 365 (or 2024 going forward).

  9. #9
    Registered User
    Join Date
    07-22-2024
    Location
    Naples, Florida, USA
    MS-Off Ver
    Office Home and Business 2019
    Posts
    8

    Re: 2 Criteria to Determine What Data Set to Use During VLOOKUP

    Thank you both. That works now. What is the purpose of the CSE function?

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,879

    Re: 2 Criteria to Determine What Data Set to Use During VLOOKUP

    Because it's an array formula, Excel 2019 and earlier need it entering with CSE to prevent error messages - it signals to Excel that the formula needs handling as an array. In 2021 and newer (inc. 365), this is no longer necessary - Excel can detect array formulae without a nudge.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  11. #11
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2505 and WPS V2024(12.1.0.18543)
    Posts
    4,113

    Re: 2 Criteria to Determine What Data Set to Use During VLOOKUP

    @xDarkDeadpool You're Welcome. Glad to help . Thank You for the feedback and rep.

+ 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. Trying to use VLOOKUP and IF statement to determine value
    By rayted in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-06-2018, 06:25 AM
  2. [SOLVED] VLOOKUP or INDEX/MATCH when referencing a table to determine two criteria are being met
    By gunnerau in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2014, 07:01 AM
  3. Determine value based on a set of criteria
    By Jgoodhart in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-12-2013, 06:06 PM
  4. How can i determine the last time a criteria was met in a row?
    By tgo3200 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2013, 11:09 AM
  5. Replies: 5
    Last Post: 02-28-2012, 12:14 AM
  6. Replies: 1
    Last Post: 11-08-2011, 03:10 AM
  7. Excel 2007 : vlookup for upc to determine size
    By silent1643 in forum Excel General
    Replies: 3
    Last Post: 01-17-2011, 12:00 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