+ Reply to Thread
Results 1 to 10 of 10

VLookup with multiple conditions?

Hybrid View

  1. #1
    Registered User
    Join Date
    02-26-2016
    Location
    England, UK
    MS-Off Ver
    LibreOffice Calc
    Posts
    4

    Question VLookup with multiple conditions?

    Hi all,

    I'm stuck on something that I imagine there's a fix for - grateful for help.

    I'm doing analysis of a load of exam results - they are all in one huge sheet. I want to separate them into category based on Year, Topic, Gender (so for example I want a list of 2012 Maths Girls, 2013 Art Boys, etc). There are 30 or so topics.

    So far, I've been using a filter on the main sheet for these three things, copying the marks across to a new sheet, then doing an average/making a graph/etc. But I realise that with 30 topics, this will take a long time.

    I'm wanting a formula that goes through row-by-row and says 'IF Boy, IF Maths, IF 2012, then copy the value in row R across'.
    VLookUp I've used before, but that (AFAIK) can only do it based on one of these IFs, not multiple. (I could run it three times in sequence, but that's a lot of iterations and manual effort to get the result).
    Another option I've thought of is to make a list of all the possible marks and do a SUMPRODUCT, which would tell me how many of each there are (but then it's harder to do an average). Is this my best option, or is there some magic that can do what I'm after?

    Thanks in advance
    AJ

  2. #2
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    697

    Re: VLookup with multiple conditions?

    Can you upload a sample sheet with the expected result?

  3. #3
    Registered User
    Join Date
    02-26-2016
    Location
    England, UK
    MS-Off Ver
    LibreOffice Calc
    Posts
    4

    Re: VLookup with multiple conditions?

    ++ Post removed in retrospect because I am a forum noob who didn't upload properly ++
    Last edited by Ajfmaizy; 02-26-2016 at 05:20 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    697

    Re: VLookup with multiple conditions?

    I cant access to your file

  5. #5
    Registered User
    Join Date
    02-26-2016
    Location
    England, UK
    MS-Off Ver
    LibreOffice Calc
    Posts
    4

    Re: VLookup with multiple conditions?

    Here's a sample I mocked up

    (This isn't the actual data I'm working with but should do the same job for help)
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    697

    Re: VLookup with multiple conditions?

    Please refer the sheet and try to do the same.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-28-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: VLookup with multiple conditions?

    Wow... Great. I know this learning today - Slicer. Thanks Mr.Shareez!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: VLookup with multiple conditions?

    Shareez Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    697

    Re: VLookup with multiple conditions?

    Noted Dibbins.

    I will try to explain going forward.

  10. #10
    Registered User
    Join Date
    02-26-2016
    Location
    England, UK
    MS-Off Ver
    LibreOffice Calc
    Posts
    4

    Re: VLookup with multiple conditions?

    Thanks Shareez - I'll take a look at it when I'm back in work next week (I haven't got excel on my laptop)

+ 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. vlookup using multiple conditions
    By esaban in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-28-2014, 02:46 PM
  2. Multiple conditions for vlookup
    By phasesmu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-20-2014, 04:49 PM
  3. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  4. [SOLVED] Vlookup with Multiple conditions
    By rajiv.sn78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2013, 12:58 AM
  5. [SOLVED] Vlookup with multiple conditions
    By cambrus in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-06-2013, 10:29 AM
  6. Vlookup using multiple conditions
    By Charlene Hainsworth in forum Excel General
    Replies: 3
    Last Post: 10-13-2011, 06:28 PM
  7. Multiple VLOOKUP conditions and MAX value
    By jdawkins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2009, 07:54 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