Originally Posted by
alansidman
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 -
I really hope that helps.
Let me know if it still doesn't make sense.
Bookmarks