Find Max with 2 criterias

Patcheen

Active Member
Joined
Sep 28, 2015
Messages
391
Office Version
  1. 365
Platform
  1. Windows
Hi Guys

Im using this formula

=MAX(IF(E2:E100,A2,IF('info Data'!AE2:AE100,C1,IF('info Data'!I2:I100,">0"))))

a2 is the name it needs to match in e2:e100 - E2:e100 is the employee names - Ae2:ae100 is the ware houses - i2:i100 deliveries made

C1 is the ware house name



i just want to find the max for Lets say john to dublin from column i2:i100
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
the MAX function does not work for strings

Please provide more information.

From your description I think you have the following:
Col E (rows 2 to 100) contain names
Col AE (on a different sheet "info Data") contains warehouse names
Col I (rows 2 to 100 of "info Data") has a delivery made flag

You can do a VLOOKUP of the name in the Col E range of data as follows:
=VLOOKUP(A2, E2:E100, ?, false)

What are you doing with the match? If the name is found in the name list then what?

There is some information missing in your problem description.
 
Upvote 0
Try the MAXIFS:

Mr excel questions 53.xlsm
ABCDEF
1QAQQ<<< Name to Match Deliveries Made >>ANGCnamesDELIVERIESwarehouses
2YPGT74YEBW
3176IBRO87NETV
4IBRO85ANGC
5IBRO214ANGC
6YPGT235PFDQ
7IBRO170PFDQ
8CMMO135DZZT
9CMMO71DZZT
10KVQD82YEBW
11KVQD72DZZT
12IBRO83PFDQ
13IBRO186YEBW
14YPGT169KKHN
15IBRO118ANGC
16KVQD119DZZT
17QAQQ58YEBW
18IBRO237DZZT
19IBRO104ANGC
20CMMO159KKHN
21QAQQ176ANGC
22QAQQ218KKHN
23KVQD176YEBW
24IBRO56PFDQ
25YPGT206ANGC
26KVQD223NETV
27KVQD62ANGC
28QAQQ161NETV
29IBRO147YEBW
30CMMO226KKHN
31IBRO108ANGC
32KVQD241DZZT
33QAQQ176YEBW
34IBRO164ANGC
35YPGT179DZZT
36QAQQ151KKHN
37YPGT94NETV
38IBRO72NETV
39YPGT206KKHN
40KVQD222ANGC
41KVQD97ANGC
42KVQD221PFDQ
43KVQD232KKHN
44YPGT197YEBW
45CMMO140DZZT
46IBRO229ANGC
47YPGT228PFDQ
48CMMO73YEBW
49IBRO250DZZT
50YPGT217PFDQ
51KVQD129ANGC
52QAQQ67NETV
53KVQD190ANGC
54YPGT213DZZT
55CMMO229PFDQ
56YPGT113NETV
57IBRO108PFDQ
58CMMO141YEBW
59IBRO87YEBW
60IBRO107NETV
61YPGT191YEBW
62IBRO63DZZT
63YPGT53KKHN
64YPGT156ANGC
65YPGT135YEBW
66QAQQ125DZZT
67YPGT77YEBW
68CMMO161ANGC
69KVQD217YEBW
70IBRO118PFDQ
71KVQD179YEBW
72YPGT169NETV
73QAQQ97PFDQ
74KVQD179KKHN
75IBRO208NETV
76KVQD87KKHN
77CMMO239PFDQ
78QAQQ215NETV
79IBRO147YEBW
80YPGT164YEBW
81IBRO129PFDQ
82QAQQ166ANGC
83CMMO190PFDQ
84QAQQ149YEBW
85IBRO178YEBW
86QAQQ214PFDQ
87YPGT115DZZT
88YPGT250DZZT
89QAQQ248DZZT
90IBRO226YEBW
91QAQQ90PFDQ
92CMMO137DZZT
93KVQD65PFDQ
94IBRO114KKHN
95QAQQ178KKHN
96YPGT222KKHN
97CMMO154DZZT
98KVQD74DZZT
99KVQD92KKHN
100IBRO210PFDQ
Patcheen
Cell Formulas
RangeFormula
B3B3=MAXIFS($E$2:$E$100,$D$2:$D$100,A1,$F$2:$F$100,C1)
F2:F100F2=CHOOSE(RANDARRAY(1,1,1,6,1),"KKHN","NETV","ANGC","DZZT","PFDQ","YEBW")
 
Upvote 0
Thank you so much guys this worked a treat ye are brill thank you again
 
Upvote 0
Thank you so much guys this worked a treat ye are brill thank you again

You're welcome. If you think one of the posts here provided you with a solution, please mark the post with the solution as the answer.

Best wishes!
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,111
Members
452,302
Latest member
TaMere

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