![]() |
|
#1
|
||||
|
||||
![]()
Try this is array formula in D1:
=IF(C1=MAX(IF(($A$1:$A$8=A1)*($B$1:$B$8=B1),$C$1:$ C$8)),C1,0) confirmed with CTRL+SHIFT+ENTER not just ENTER, then copied down |
#2
|
|||
|
|||
![]()
Thank you this is very helpful, but it is only capturing the max value, which is 3.
A- Location; B- Name; C - number of visits; D - max number of visits 1. Adelaide; Sara Poon; 1;0 2. King; Jason Ex; 2;0 3. Wellington; John Smith; 1 ; 0 4. Bill; John Smith; 1; 0 5. King; Jason Ex; 3; 3 6. Adelaide; Joe Shoe; 2; 0 7. Adelaide; Joe Shoe; 1; 0 8. King; Jason Ex; 1;0 But what I am looking for is to capture is if columns A (location) and B (name) match, then capture the max number of visits D from column C A- Location; B- Name; C - number of visits; D - max number of visits 1. Adelaide; Sara Poon; 1;1 2. King; Jason Ex; 2;0 3. Wellington; John Smith; 1 ; 1 4. Bill; John Smith; 1; 1 5. King; Jason Ex; 3; 3 6. Adelaide; Joe Shoe; 2; 2 7. Adelaide; Joe Shoe; 1; 0 8. King; Jason Ex; 1;0 |
![]() |
Tags |
countifs, match/index, max |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
guciolino | Excel | 10 | 02-13-2017 08:05 AM |
![]() |
sandcharles | Excel | 5 | 02-19-2015 06:15 AM |
List Boxes with Values | winter4400 | Word | 5 | 02-19-2013 03:14 PM |
![]() |
Joe Patrick | Word VBA | 8 | 06-07-2011 09:31 AM |
![]() |
struct | Excel | 1 | 04-01-2011 07:17 PM |