+ Reply to Thread
Results 1 to 5 of 5

match two criteria check if they match another criteria then return result. Query vlookup

  1. #1
    Registered User
    Join Date
    08-26-2018
    Location
    Narromine, Australia
    MS-Off Ver
    Office 365
    Posts
    47

    match two criteria check if they match another criteria then return result. Query vlookup

    I have a rather difficult problem.

    I need to workout a quoting system that involves getting information from two different columns then referencing that against three tables. One will be "contracted area", the other "outside of contracted area" and the last one will be "predetermined price" which will have two locations to reference. I hope that makes sense.

    I think it will involve some very creative vlookup formulas but i'm pretty sure there is another way to do this that might be easier.

    I have also tried the indirect function but it doesn't work for what I want to do. Have tried index and match but again don't work.

    I have made a helper column for a vlookup as you can't match two columns at the same time but I have so many different variables my list would be huge.

    I'm stumped with what to do. I think it's going to be VBA code but i'm not very good with that so will try this first.

    I have attached a rough excel file in hope that you understand what I mean.

    Any questions just ask. It's a bit hard to wrap you head around and I'm not sure how to explain it any better
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: match two criteria check if they match another criteria then return result. Query vloo

    I have looked at your example and cannot determine what the answer should be from your explanation. If you were to do this manually, what would the end result be and what is the logic to arrive at that end result. You have not provided sufficient information to arrive at a solution. Using your example explain step by step how you would determine the expected result manually.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-26-2018
    Location
    Narromine, Australia
    MS-Off Ver
    Office 365
    Posts
    47

    Re: match two criteria check if they match another criteria then return result. Query vloo

    Quote Originally Posted by alansidman View Post
    I have looked at your example and cannot determine what the answer should be from your explanation. If you were to do this manually, what would the end result be and what is the logic to arrive at that end result. You have not provided sufficient information to arrive at a solution. Using your example explain step by step how you would determine the expected result manually.

    Sorry I know it's hard to understand. I'll try to explain it as best I can.

    You will enter data into the Hospital 1 and 2 columns.

    It then needs to quote the price from one of the 3 tables.

    For example - I have entered data in hospital 1 and 2. This data has two hospitals from the contracted table it should give you 2548

    If I enter one hospital from the contracted table and one from the non contracted table it should give you 2719

    If I enter two hospitals from the non contracted table it should give you 2719

    If I enter data that matches the hospitals from both predetermined table columns and it will give you the price. These prices are all different depending on what data you have entered.


    I can get it to work if I use a helper column but it will only work with one result anything else I enter will gives me an error like #N/A or #REF or #VALUE depending on what way I type the formula.

    I found this post on here "search two columns match then vlookup" Sorry I can't post links yet

    I think it's something like this but i don't really understand what it is doing.

    I tried this in F5 but it didn't work -
    Please Login or Register  to view this content.
    I really hope that helps.

    Let me know if it still doesn't make sense.
    Last edited by Wolfieee; 02-17-2019 at 06:44 AM.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: match two criteria check if they match another criteria then return result. Query vloo

    I don't quite get this. Maybe try at F3

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

  5. #5
    Registered User
    Join Date
    08-26-2018
    Location
    Narromine, Australia
    MS-Off Ver
    Office 365
    Posts
    47

    Re: match two criteria check if they match another criteria then return result. Query vloo

    Quote Originally Posted by Bo_Ry View Post
    I don't quite get this. Maybe try at F3

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks that seems to do what I need it to do.

    You will not get it as it will become part of a bigger spreadsheet for working out pricing. I'm sure there is an easier way to do it but right now this is the best way i can think of doing it.

    I've attached the spreadsheet that it will be added to. Might make more sense or most likely will confuse you more. It's a little broken as I've been adding columns and such. Just want to get this part working first then I'll fix the rest. Anyways feel free to have a look and if you know of a better way to do what I need it to do let me know. I'm out of ideas

    Basically all I want it to do is when I add my engine hours, which are normally around 1.6 to 2.0, have it add up the final price with the other data that has been entered.

    So the formula is Engine Hours x Price + any extras that get tagged on. Things like road transport and then like.
    Attached Files Attached Files
    Last edited by Wolfieee; 02-17-2019 at 05:47 PM.

+ 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. 2 workbooks/need to match 3-4 criteria and return text from a column/Nested Vlookup?
    By camouflagewoman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2018, 06:09 PM
  2. Replies: 0
    Last Post: 09-08-2017, 09:31 AM
  3. Replies: 3
    Last Post: 01-18-2016, 10:18 AM
  4. [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
  5. Return dates that match a single criteria (a countif criteria)
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2014, 12:43 PM
  6. Replies: 17
    Last Post: 09-17-2012, 07:44 AM
  7. Replies: 3
    Last Post: 08-17-2010, 02:54 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