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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Glad we could help & thanks for the feedback.
 
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.

Hi Fluff

I have notice one issue the formula works fine picking the latest date but if there two ID with the same indicators & dates it comes up showing both indicators, when it should still just show one indicator like below no duplicates :
(A) (B) (C) (D)
A123 Happy 01/01/2020 Happy
A123 Happy 01/01/2020
A123 Fair 01/01/2020 Fair

Any ideas how to tweak it so it only pick one indicator, if the indicator and date are the same?


Many Thanks

Leicester Fox

Leicester Fox
 
Upvote 0
Which indicator should it pick?
Also please update your account details to show which version of Excel you are using.
 
Upvote 0
Try This

Book1
ABCDE
1User IDIndicatorDatesResult Wanted ( Formula needed with latest date )
2A123Happy01/01/2020 
3A123Happy30/01/2020HappyHappy
4A123Happy30/01/2020 
5A123Sad30/01/2020SadSad
6B234Good01/01/2020 
7B234Good30/01/2020GoodGood
8C345Fair01/01/2020 
9C345Good01/01/2020GoodGood
10C345Fair30/01/2020FairFair
Sheet1
Cell Formulas
RangeFormula
E2:E10E2=IF(COUNTIFS($A$1:A2,A2,$B$1:B2,B2,$C$1:C2,MAX(($A$2:$A$10=A2)*($B$2:$B$10=B2)*($C$2:$C$10)))=1,B2,"")



Considering you have two duplicate MAX Date.
 
Upvote 0
Which indicator should it pick?
Also please update your account details to show which version of Excel you are using.

Hi Fluff

It should pick up the latest date for Column C "Indicator" only once no Duplicate, but sometimes the duplicate Indicator has same date and it end up showing both records instead of only one.

I am getting this result with your current formula example:

ABCD
User idIndicatorDate Current result =IF(MAXIFS(C:C,A:A,A2,B:B,B2)=C2,B2,"")
A123Happy01/01/2020Happy
A123Happy01/01/2020Happy (Don't want two "Happy" just One)

I only want one result if the indicators (B) the same for a user id , in this case one Happy not two but if the dates in column c are the same.

Hope this helps any idea, because the formula great it just when the indicator match with same date its showing both in column D.

Many Thanks

Leicester Fox
 
Upvote 0
@Leicester City Fox
Please update your account details to show which version of Excel you are using.
If you cannot be bothered to help us by doing this, then why should we help you?
 
Upvote 0
@Leicester City Fox
Please update your account details to show which version of Excel you are using.
If you cannot be bothered to help us by doing this, then why should we help you?

Hi Fuluff

Afternoon

My Apologies I thought I already updated my account , I have done so and saved it this time.

Thanks

Leicester Fox
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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