Flagging if cell found within list then checking if date is greater than that in list

staprila

New Member
Joined
Jan 20, 2017
Messages
4
Hi all,

I'm having a tough time flagging rows that match the values within a list and also have dates that are greater or equal to those dates that correspond to the names in the list. See example below:

List:

UV
1NameDate
2A10/01/15
3B10/02/15
4C10/03/15
5D10/01/15
6E10/04/15
7F10/04/15
8G10/05/15
9H10/05/15
10I10/06/15
11J10/06/15
12K10/06/15

<tbody>
</tbody>
ABC
1DateNameFlag?
210/01/15A1
310/01/15B0
410/01/15C0
510/01/15D1
610/01/15D1
710/02/15D1
810/02/15E0
910/02/15F0
1010/03/15A1
1110/03/15T0
1210/03/15R0
1310/03/15D1
1410/04/15B1
1510/04/15J0
1610/04/15K0
1710/05/15T0
1810/05/15T0
1910/05/15T0
2010/06/15S0
2110/06/15I1
2210/06/15I1
2310/07/15I1
2410/07/15W0
2510/07/15A1
2610/08/15A1
2710/08/15B1
2810/08/15B1
2910/09/15C1
3010/09/15V0

<tbody>
</tbody>


What I am trying to produce is Column C. I have a feeling that the use of OFFSET will be involved but I haven't quite gotten the flag to work. Any help would be greatly appreciated.

Thank you!
 

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.
a countifs may work

i assume the columns in the list are U and V

=countifs ( u:u, b2, v:v , a2)
now when it finds a match it will count 1 , if it finds more 2, 3 etc

so you could use an IF
=IF( countifs ( u:u, b2, v:v , a2) >0 , 1, 0 )

thats for equal to date

to do greater than
=IF( countifs ( u:u, b2, v:v , ">="&a2) >0 , 1, 0 )
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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