ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   help with formula (https://www.excelbanter.com/excel-worksheet-functions/260471-help-formula.html)

Soth

help with formula
 

A B C-count

10 A
10 A
10 A 2 Dup
20 B
20 C

There are duplicates numbers in Column A and B. How do you write a formula
to look up all fields in all columns for any possible duplicates place and
count the value in column c.

Many thanks,
Soth




MS-Exl-Learner

help with formula
 
If your data starts from 2nd Row then use this formula in C3 cell
=IF(AND(B2<B4,COUNTIF($B$2:$B3,$B3)-11),COUNTIF($B$2:$B3,$B3)-1&" DUP","")

If your data starts from 1st Row then use this formula in C2 cell
=IF(AND(B1<B3,COUNTIF($B$1:$B2,$B2)-11),COUNTIF($B$1:$B2,$B2)-1&" DUP","")

Change the column reference B to A if required.

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Soth" wrote:


A B C-count

10 A
10 A
10 A 2 Dup
20 B
20 C

There are duplicates numbers in Column A and B. How do you write a formula
to look up all fields in all columns for any possible duplicates place and
count the value in column c.

Many thanks,
Soth





All times are GMT +1. The time now is 01:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com