ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Find Duplicate data (https://www.excelbanter.com/excel-discussion-misc-queries/205898-find-duplicate-data.html)

vadda

Find Duplicate data
 
I am looking for a formula that will say "Duplicate" based on two criteria.
Say column B has text and column C has dates. If the text appears more than
once and the dates are six or more months apart then the sum of column A
results.
Expamle:
A B C
$45 hardware 11/14/07
$50 hardware 12/04/07
$80 lights 10/01/07
$90 lights 7/25/08
Only $90 is valid in furmula resulting as "Duplicate"

Thanks for your help in advance.

joel

Find Duplicate data
 
You can use sumproduct

=IF(SUMPRODUCT(--(B4=B$1:B$100),--(ABS(C4-C$1:C$100)=183))0,"Duplicate","")

183 is greater than 6 months (365/2)

Copy formula down the column. Notice where the $ are located. 100 is the
last row (or greater) of your data.

"vadda" wrote:

I am looking for a formula that will say "Duplicate" based on two criteria.
Say column B has text and column C has dates. If the text appears more than
once and the dates are six or more months apart then the sum of column A
results.
Expamle:
A B C
$45 hardware 11/14/07
$50 hardware 12/04/07
$80 lights 10/01/07
$90 lights 7/25/08
Only $90 is valid in furmula resulting as "Duplicate"

Thanks for your help in advance.


vadda

Find Duplicate data
 
You rock, it works perfectly. This will make my project much faster.

"Joel" wrote:

You can use sumproduct

=IF(SUMPRODUCT(--(B4=B$1:B$100),--(ABS(C4-C$1:C$100)=183))0,"Duplicate","")

183 is greater than 6 months (365/2)

Copy formula down the column. Notice where the $ are located. 100 is the
last row (or greater) of your data.

"vadda" wrote:

I am looking for a formula that will say "Duplicate" based on two criteria.
Say column B has text and column C has dates. If the text appears more than
once and the dates are six or more months apart then the sum of column A
results.
Expamle:
A B C
$45 hardware 11/14/07
$50 hardware 12/04/07
$80 lights 10/01/07
$90 lights 7/25/08
Only $90 is valid in furmula resulting as "Duplicate"

Thanks for your help in advance.



All times are GMT +1. The time now is 02:56 PM.

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