Display TRUE or FALSE if value is the largest that occurred on that day. Bonus: ARRAY FUNCTION!

btb918

New Member
Joined
Aug 17, 2017
Messages
2
Office Version
  1. 2019
  2. 2016
  3. 2013
I have two columns, Column 1 contains dates and Column 2 contains values, like so:

Col1 Col2
1/1/20 5
1/1/20 7
1/2/20 3
1/2/20 9
1/2/20 4
1/3/20 6
1/3/20 6

What formula could I put in Column 3 that would return "TRUE" or "FALSE" if the value in Column 2 is the largest value and not a duplicate value for all the values with the same date? When I mean duplicate value, the first 6 on 1/3/20 would be "TRUE" and the second 6 on 1/3/20 would be "FALSE".

Bonus Points: I'm trying to put this in an array function that I've based on the following website: Extract all rows from a range that meet criteria in one column

So I have the array function making a table out of the rows that have a value equal to or greater than a specified value. It is displaying multiple values that have the same date and I just want the highest value for that day showing.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Try this array formula

varios 09jul2020.xlsm
ABC
1DATEVALUETRUE/FALSE
201/01/20205FALSE
301/01/20207TRUE
402/01/20203FALSE
502/01/20209TRUE
602/01/20204FALSE
703/01/20205FALSE
803/01/20206TRUE
903/01/20205FALSE
1003/01/20206FALSE
Hoja6
Cell Formulas
RangeFormula
C2:C10C2=AND(B2=MAX(($A$2:$A$12=A2)*($B$2:$B$12)),COUNTIFS($A$2:A2,A2,$B$2:B2,B2)=1)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
What version of Excel are you using?
Please change your account details to show this, as it affects what functions you have.

If you have Maxifs, another option
+Fluff New.xlsm
ABC
1DATEVALUETRUE/FALSE
201/01/20205FALSE
301/01/20207TRUE
402/01/20203FALSE
502/01/20209TRUE
602/01/20204FALSE
703/01/20205FALSE
803/01/20206TRUE
903/01/20205FALSE
1003/01/20206FALSE
Data
Cell Formulas
RangeFormula
C2:C10C2=AND(B2=MAXIFS(B:B,A:A,A2),COUNTIFS(A$2:A2,A2,B$2:B2,B2)=1)
 
Upvote 0
For an non-array formula
try
=AGGREGATE(14,6,$B$2:$B$12/($A$2:$A$12=A2),1)=B2
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,985
Members
449,201
Latest member
Lunzwe73

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