#1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Checking for Dupes

I am entering data to column B, a 5-digit number. Is there a formula
that I can put in column D that will tell me if the number is a
duplicate. The numbers batch numbers from the accounting system.
There should be only one. But since I am entering the batchs with them
unsorted, I was curious if a formula could check.

TK

  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Checking for Dupes

TK, someone will no doubt post a formula I would imagine. I might mention
that the ASAP Utility that is free to download has a "count duplicates in
selection" where it will color code any dupes. It is under the ASAP
"Information" heading. Google for ASAP Utility and take a look. I have no
affiliation with them, but I use it for a number of interesting little
utilities like this.

If you need a permanent column for your batch data, I guess you'd need to
solve it formulaically. But...

Cheers! Brad (in Texas)


"TKnTexas" wrote in message
oups.com...
I am entering data to column B, a 5-digit number. Is there a formula
that I can put in column D that will tell me if the number is a
duplicate. The numbers batch numbers from the accounting system.
There should be only one. But since I am entering the batchs with them
unsorted, I was curious if a formula could check.

TK



  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel
external usenet poster
 
Posts: 964
Default Checking for Dupes

This formula should do the trick:

=IF(COUNTIF(B:B,B1)1,"Dupe","")

HTH,
Elkar


"TKnTexas" wrote:

I am entering data to column B, a 5-digit number. Is there a formula
that I can put in column D that will tell me if the number is a
duplicate. The numbers batch numbers from the accounting system.
There should be only one. But since I am entering the batchs with them
unsorted, I was curious if a formula could check.

TK


  #4   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Checking for Dupes

In .com,
TKnTexas spake thusly:

I am entering data to column B, a 5-digit number. Is there a
formula that I can put in column D that will tell me if the
number is a duplicate.


Supposing your data starts in Row 2, and supposing your
data ends in Row 2000, then in D2 and dragged down could
go:

=COUNTIF($B$2:$B$2000,$B2)

Here's a sample:

B C D
----- --- ---
12345 1
12346 1
12347 1
12348 1
12349 1
12350 1
12351 1
12352 1
12353 2 <------
12353 2 <------
12355 1


You could also, or alternatively, use Conditional Formatting
(Format - Conditional Formatting) to bring dupes to your
attention. The conditional formula could be, e.g.:

=COUNTIF($B$2:$B$2000,$B2)-1

-dman-
  #5   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Checking for Dupes

Thanks for both responses. I am used to using a database, usually
Filemaker, to do this because I can put in the validations I need
easier than in Excel. But I am doing this at a temp job so I have to
use the tools on hand.
TK

Dallman Ross wrote:
In .com,
TKnTexas spake thusly:

I am entering data to column B, a 5-digit number. Is there a
formula that I can put in column D that will tell me if the
number is a duplicate.


Supposing your data starts in Row 2, and supposing your
data ends in Row 2000, then in D2 and dragged down could
go:

=COUNTIF($B$2:$B$2000,$B2)

Here's a sample:

B C D
----- --- ---
12345 1
12346 1
12347 1
12348 1
12349 1
12350 1
12351 1
12352 1
12353 2 <------
12353 2 <------
12355 1


You could also, or alternatively, use Conditional Formatting
(Format - Conditional Formatting) to bring dupes to your
attention. The conditional formula could be, e.g.:

=COUNTIF($B$2:$B$2000,$B2)-1

-dman-


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Checking for Duplicates in List bman342 Excel Worksheet Functions 2 June 29th 06 11:15 AM
How can I use spell checking in a protected worksheet? Deb from MA Excel Worksheet Functions 1 April 24th 06 06:40 PM
Checking for duplicates - think this is simple [email protected] Excel Discussion (Misc queries) 9 February 27th 06 09:32 PM
Checking 2 sets of values to provide True False Arla Excel Worksheet Functions 6 January 17th 06 11:41 PM
Checking names on correct line across sheets Ali Excel Worksheet Functions 5 January 17th 06 07:24 AM


All times are GMT +1. The time now is 12:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"