Excel Formula - Return Unique Value based on 2 Criterias

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,501
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

Please have a look at the sample data... I need to add another criteria that if the date column is blank then do not consider it

TEST FILE.xlsm
ABCDEFGHIJ
1CustomerSupplierDATE
21Humayun01-Jan
31Humayun01-Jan
41Charlie
51John01-Jan
65B01-Jan
76Charlie
81Charlie
91Humayun01-Jan
10
11CustomerSuppliers
121Humayun
13CharlieThis name should not be in the list as the adjacent column does not have a date in it
14John
Sheet5
Cell Formulas
RangeFormula
B12:B14B12=IFERROR(INDEX($B$2:$B$9, MATCH(0, IF($A$12=$A$2:$A$9, COUNTIF($B$11:$B11, $B$2:$B$9), ""), 0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
How about
+Fluff 1.xlsm
ABC
1CustomerSupplierDATE
21Humayun01/01/2021
31Humayun01/01/2021
41Charlie
51John01/01/2021
65B01/01/2021
76Charlie
81Charlie
91Humayun01/01/2021
10
11CustomerSuppliers
121Humayun
13John
14 
15
Main
Cell Formulas
RangeFormula
B12:B14B12=IFERROR(INDEX($B$2:$B$9,AGGREGATE(15,6,(ROW($B$2:$B$9)-ROW($B$2)+1)/($A$2:$A$9=$A$12)/($C$2:$C$9<>"")/(ISNA(MATCH($B$2:$B$9,B$11:B11,0))),1)),"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

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