+ Reply to Thread
Results 1 to 10 of 10

Combining VLOOKUP + IF Formulas?

  1. #1
    Registered User
    Join Date
    03-13-2019
    Location
    Cardiff
    MS-Off Ver
    Excel 2013
    Posts
    7

    Combining VLOOKUP + IF Formulas?

    Morning!

    I am looking for a few different solutions (Apologies if I need to post multiple threads)

    I have created a sheet that the end user will select from dropdowns in C2,D2,E2 which will give an outcome in F2 of either 'High Value' or 'Not High Value' (I have not added all options as will take hours I am just making an example sheet at this stage).

    So I need the following.

    a) Completed

    b) If a Certain field is selected in C2 (E.G Aston Martin, Ferrari, Tesla), I need F2 to show 'High Value' regardless of what is selected in D2 + E2. This will remove the need to manually input every model for manufacturers that will always be High Value

    c) If I select 'BMW' in C2, I would like only certain options to become available in D2. For example, If I choose C2, only 320, 325 + 330 are available in D2. As there are 000's of models to be input it will make the selection for the end user a lot quicker as it will shorten the list to scroll through

    I appreciate all of these options on top of the formula in F2 may not be possible, but even 1 is it would be great!
    Attached Files Attached Files
    Last edited by tsymonds; 03-14-2019 at 06:26 AM.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Combining VLOOKUP + IF Formulas?

    Please do not edit your questions to remove any parts which you have subsequently solved. It can cause confusion to people who are trying to help you.
    If you do solve your own question, in full or in part, we prefer that you reply to your own thread informing us of this and that you tell us how you have solved it so that anyone else looking at your thread trying to solve a similar problem is able to benefit from it.

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Combining VLOOKUP + IF Formulas?

    For the "high value" output, assuming that the list to compare will only conatin the 'High value" manufacturers / models.

    Create a new list of high value manufacturers (I assume those in red in the current list) in O2:O13, then use this formula in F2

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


    You don't need vlookup because the result is the same every time.

    For part c of your question, you need dependent data validation, there is a guide here to show you how it is done. https://www.contextures.com/xlDataVal02.html

  4. #4
    Registered User
    Join Date
    03-13-2019
    Location
    Cardiff
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Combining VLOOKUP + IF Formulas?

    Sorry about this Jason,

    I had done what you said first time but I was doing it on my phone so it didn't post so I just took a shortcut!

  5. #5
    Registered User
    Join Date
    03-13-2019
    Location
    Cardiff
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Combining VLOOKUP + IF Formulas?

    Thanks for the help Jason.

    I input this formula but just get a blank result.

    I have created a new list H2:H13 of all high value vehicles that I need to always show as high value regardless of options chosen in D2 & E2

    I'm not sure if I have done something wrong

  6. #6
    Registered User
    Join Date
    03-13-2019
    Location
    Cardiff
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Combining VLOOKUP + IF Formulas?

    Just to amend my previous comment,

    =IF(ISNUMBER(IFERROR(MATCH(C2,$H$2:$H$12,0),MATCH(C2&" "&D2&" "&E2,$O$2:$O$288,0))),"High Value","")

    This works perfectly so thanks Jason,

    The only other thing I need that has been undone in this formula is if there is no Match in O2:288 then it needs to show as 'Capture'

    The below formula is what I thought would work but Excel says it is too long

    =IF(ISNUMBER(IFERROR(MATCH(C2,$H$2:$H$12,0),MATCH(C2&" "&D2&" "&E2,$O$2:$O$288,0)),"Capture",),"High Value","")

    Any work around?

    I appreciate this is getting quite long but I need it to be as fool proof as possible for end user!

    [QUOTE=jason.b75;5083002]For the "high value" output, assuming that the list to compare will only conatin the 'High value" manufacturers / models.

    Create a new list of high value manufacturers (I assume those in red in the current list) in O2:O13, then use this formula in F2

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by tsymonds; 03-15-2019 at 11:24 AM.

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Combining VLOOKUP + IF Formulas?

    N,O,P column is Model Match separated into
    Q column marks High-Medium-Low value
    D2 & E2 is Data Validation of limited list (2 levels)
    F2 geting value
    Attached Files Attached Files
    Quang PT

  8. #8
    Registered User
    Join Date
    03-13-2019
    Location
    Cardiff
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Combining VLOOKUP + IF Formulas?

    Hi Bebo,

    Thanks for your help!

    It fixes one issue but then removes a fix for another issue I had!

    I need to include if B2 is a particular option it shows as 'High Value' in F2

    I can make a column with a list of these

    Can this be included?

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Combining VLOOKUP + IF Formulas?

    I haven't looked at the file in bobo's post to see what was suggested there. This should fix the issue that you mention in post #6 if I'm following correctly.

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


    Were you able to resolve part c of your question from the link in my earlier reply?

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

    Re: Combining VLOOKUP + IF Formulas?

    I have removed the SOLVED tag as the issue clearly is not fully resolved.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Help with combining these two formulas VLOOKUP and AVERAGE
    By kraser in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-13-2016, 09:22 PM
  2. [SOLVED] Question About Combining two Formulas to do a vlookup
    By JasonAhn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2015, 03:00 PM
  3. Combining vlookup formulas
    By Rain78 in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 08-18-2015, 01:30 PM
  4. [SOLVED] Combining two formulas
    By johnmitch38 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-17-2015, 01:34 PM
  5. Vlookup / If combining formulas
    By ppines in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-21-2011, 07:10 AM
  6. combining formulas and a IF then
    By faulkma in forum Excel General
    Replies: 3
    Last Post: 03-01-2009, 12:03 AM
  7. combining IF and VLookup formulas
    By bby2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-14-2008, 03:29 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