Detecting Changes in a Column for a Given ID

ccecil02

New Member
Joined
Aug 12, 2015
Messages
10
Hi all.

So I have a list of Employee IDs in column A and Dates in Column B. How would I go about writing a formula to tell me when a date is unique for a given ID.

For example. Employee ID 1091 has 5 dates associated with it in Column B, but only 2 are unique, how would I go about calling out those two dates?

Thanks in advance, you all are always so helpful.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Put the following formula in column c


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]C2[/TD]
[TD]=Countifs($A$2:$A$11,A2,$B$2:$B$11,B2)[/TD]
[/TR]
</tbody>[/TABLE]


Copy the formula to the last row with data

The results with 1 when a date is unique for a given ID.

--

To obtain the unique dates by ID, you can create a dynamic table with the ID and date columns.

Look at the image:

https://www.dropbox.com/s/j9w0151mdhtmzkm/td 1.jpg?dl=0
 
Upvote 0
Hi,

I'm not 100% sure I understand your requirements...

For my sample below, use C1 formula to indicate All unique Dates for All unique IDs,
OR, use D1 formula to indicate All unique Dates for a Single particular ID as User Input in E2, you can also hard-code this in the formula, but having E2 is more flexible as you can change E2 value to whichever ID you want to check.


Book1
ABCDE
110911/1/2019  ID to look
210911/2/20191/2/20191/2/20191091
310921/1/2019
410921/2/20191/2/2019
510921/1/20191/1/2019
610911/1/2019
710911/4/20191/4/20191/4/2019
810911/1/20191/1/20191/1/2019
Sheet457
Cell Formulas
RangeFormula
C1=IF(COUNTIFS(A$1:A1,A1,B$1:B1,B1)=COUNTIFS(A$1:A$8,A1,B$1:B$8,B1),B1,"")
D1=IF(A1<>E$2,"",IF(COUNTIFS(A$1:A1,E$2,B$1:B1,B1)=COUNTIFS(A$1:A$8,E$2,B$1:B$8,B1),B1,""))
 
Last edited:
Upvote 0
Based on the same assumption as my post above, these "shorter" versions of my formula will give the same results in a different order:

Same descriptions as above also:


Book1
ABCDE
110911/1/20191/1/20191/1/2019ID to look
210911/2/20191/2/20191/2/20191091
310921/1/20191/1/2019
410921/2/20191/2/2019
510921/1/2019
610911/1/2019
710911/4/20191/4/20191/4/2019
810911/1/2019
Sheet457
Cell Formulas
RangeFormula
C1=IF(COUNTIFS(A$1:A1,A1,B$1:B1,B1)=1,B1,"")
D1=IF(A1<>E$2,"",IF(COUNTIFS(A$1:A1,E$2,B$1:B1,B1)=1,B1,""))
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,055
Members
452,542
Latest member
Bricklin

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