Tag first instance of item based on criteria

urkas

New Member
Joined
May 11, 2010
Messages
15
I need to Tag the first instance based on Criteria

I need it to search a all instances and always Tag the first Match if the Item (39576 ) the Table T014 or T011) and if its Passed and Tag the first date of that pass

IDStationStart TimeResultTagged
39576T01410/27/2017 11:59Fail
39576T01410/27/2017 12:22PassTag
39576T01410/27/2017 14:41Pass
39576T01110/27/2017 14:58PassTag
39576T01110/27/2017 15:11Pass

<tbody>
</tbody>
 

Some videos you may like

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

mopp1

Board Regular
Joined
Apr 4, 2017
Messages
74
Assuming ID is in A1

=IF((D2="Pass")*NOT(SUMPRODUCT((A$1:A1=A2)*(B$1:B1=B2)*(E$1:E1="Tag"))),"Tag","")

in E2 and drag down
 

urkas

New Member
Joined
May 11, 2010
Messages
15
Its not looking at date at all though ? C

I wish I could upload the sheet
 

mopp1

Board Regular
Joined
Apr 4, 2017
Messages
74
Assumption was that the dates for a particular ID/Station were in ascending order. If not then that formula will not work.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,729
Messages
5,597,791
Members
414,176
Latest member
LK88

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
Top