Need a Formula that will count the duplicate values only once relating to unique ID number and show it only once

Leicester City Fox

Board Regular
Joined
Oct 7, 2016
Messages
91
Office Version
  1. 2019
Platform
  1. Windows
Hi All

Good Morning

Need a Formula that will count the duplicate values only once relating to unique ID number and show it only once

I am looking for a Formula which will only show the Indicator (Column B) once in there are duplicates values of if there are no duplicates just show result in Column C for each User ID (Column A).

I only want it to count the indicator once looking for result of the formula in Column C if it relevant to the specific User id.


ABC
User IDIndicator Result Wanted ( Formula needed)
A123 Happy Happy
A123 Happy
A123 Sad Sad
B234 GoodGood
B234 Good
C345FairFair
C345GoodGood
C345Fair




Many Thanks for you ideas

The Leicester Fox
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
How about
=IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2)=1,B2,"")
 
Upvote 0
Hi Fluff

Afternoon

Thank you for the Formula , worked a treat .. your a star :)

Stay Safe

The Leicester Fox
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
How about
=IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2)=1,B2,""

Hi Fluff

That.s just what I need :)

In relation to my original request I have another issue in that not only do I want the duplicate to show once but it must be the one with the latest date that matches the user id see table below:



ABCDComments
User ID
IndicatorDatesResult Wanted ( Formula needed with latest date )
A123Happy01/01/2020
A123Happy 30/01/2020Happypicks latest date indicator
A123Sad30/01/2020Sadonly match date correct
B234 Good 01/01/2020
B234 Good 30/01/2020Goodpicks latest date indicator
C345 Fair01/01/2020
C345 Good01/01/2020 Good only match date correct
C345 Fair 30/01/2020Fairpicks latest date indicator

I am looking for results in column D owing to latest date relating to the user id .

Any ideas ?

Thanks

Leicester Fox
 
Upvote 0
What version of Excel are you using?
Please update your account details to show this, as it affects what functions you can use.
 
Upvote 0
What version of Excel are you using?
Please update your account details to show this, as it affects what functions you can use.

Hi Fluff

Good Morning

My version is MS Office professional 2019.

Your formula works I just need it to pick any duplicates with the latest start date.

Many Thanks

Leicester Fox
 
Upvote 0
Enter below formula in cell D2 and copy down

=IF(ROWS($1:1)=LOOKUP(2,1/((A$2:A$10=A2)*(B$2:B$10=B2)),ROW(A$2:A$10)-ROW(A$2)+1),B2,"")
 
Upvote 0
How about
+Fluff New.xlsm
ABCD
1User IDIndicatorDatesResult Wanted ( Formula needed with latest date )
2A123Happy01/01/2020 
3A123Happy30/01/2020Happy
4A123Sad30/01/2020Sad
5B234Good01/01/2020 
6B234Good30/01/2020Good
7C345Fair01/01/2020 
8C345Fair30/01/2020Fair
9C345Fair30/01/2020Fair
Data
Cell Formulas
RangeFormula
D2:D9D2=IF(MAXIFS(C:C,A:A,A2,B:B,B2)=C2,B2,"")


Please remember to update your account details to show your version of office, as this affects what functions you have available.
 
Upvote 0

Forum statistics

Threads
1,224,749
Messages
6,180,725
Members
452,995
Latest member
isldboy

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