Reputation: 419
Editing my original question as the requirement has changed:
If the source table is like below:
Need the result as below table:
Basically, remove all other data other than for each date the first occurrence of an event for the respective date.
Upvotes: 1
Views: 507
Reputation: 419
Got it... Basically derived from the JvDV's answer. Step1: Add one column to find the duplicates in number column and apply the formula:
=IF(COUNTIF($A$2:$A2, $A2)>1, "Duplicate", "")
Step 2: expand the sorting first from lowest to largest number Step 3: expand the sorting second date wise from old to new and as step 3: expand sorting time-wise from old to new
Then delete the rows containing duplicates by filtering it out and remove the filter to see results.
Upvotes: 0
Reputation: 75900
You ask for formulas, so try these:
Formula in D2
:
=INDEX($A$2:$A$13,MATCH(0,COUNTIF($D$1:D1,$A$2:$A$13),0))
Formula in E2
:
=MIN(IF($A$2:$A$13=D2,$B$2:$B$13,""))
Drag down...
Important: Enter both formulas as array through Ctrl+Shift+Enter
Upvotes: 3