How to find value (or text) which matches several conditions ?

scottlarock

Board Regular
Joined
Apr 10, 2009
Messages
102
Hello all,

I have a db on sheet 2 from
A1:AC100000
with product names and associated customer names along with prices and margins, quantity etc..

On sheet 1, I have just about the same thing with different values, but without the customer name.
So according to the product name A2:A100000,
and the country B2:100000,

I would like to return the customer name on sheet 2 with the highest price 'sheet2'F2:F100000, margin 'sheet2'G2:G100000 etc..


I have other conditions such as, returning the customer with the biggest price and margin difference between in 2011 to 2012... but I think the top part will do for now...


Tons of thanks in advance for your help !

Btw, how do you "copy paste" excel into here to ease the explanation a bit... ?

Scott
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,206,969
Messages
6,075,918
Members
446,169
Latest member
luckyfind4u

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top