Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dbmeyer
 
Posts: n/a
Default How do I identify cells with matching numbers within a column.

I have a very long column 10K of numbers. I need to identify each cell
which has a number before or after it which is equal to it.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default How do I identify cells with matching numbers within a column.

Hi!

One way:

Assume the numbers are in the range A1:A10000 with no empty cells within the
range:

Enter this formula in B1:

=IF(A1=A2,"X","")

Enter this formula in B2:

=IF(OR(A1=A2,A2=A3),"X","")

Double click the fill handle to quickly copy the formula down to B10000.

Biff

"dbmeyer" wrote in message
...
I have a very long column 10K of numbers. I need to identify each cell
which has a number before or after it which is equal to it.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default How do I identify cells with matching numbers within a column.

I'm just guessing that you want to flag duplicate numbers in col A
(Numbers are assumed within A1:A10000, and with the possibility of some
blank cells in-between)

Put in B1:
=IF(A1="","",IF(COUNTIF($A$1:A1,A1)1,"X",""))
Copy B1 down to B10000

Duplicate numbers, if any, will be flagged with an "X"

(We could then insert a new top row, and do a Data Filter Autofilter on
col B to filter out the "X", for example)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"dbmeyer" wrote in message
...
I have a very long column 10K of numbers. I need to identify each cell
which has a number before or after it which is equal to it.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Wright
 
Posts: n/a
Default How do I identify cells with matching numbers within a column.

Just another twist:-

With your data in A1:A10000

in B2 put =AND(A2=A1,B2=A3)

and copy down.

Then just filter on TRUE

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"dbmeyer" wrote in message
...
I have a very long column 10K of numbers. I need to identify each cell
which has a number before or after it which is equal to it.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dbmeyer
 
Posts: n/a
Default How do I identify cells with matching numbers within a column.

Thanks a bunch. I found 699 instances which a customer back charged us 2X
for the same serial number.

"Biff" wrote:

Hi!

One way:

Assume the numbers are in the range A1:A10000 with no empty cells within the
range:

Enter this formula in B1:

=IF(A1=A2,"X","")

Enter this formula in B2:

=IF(OR(A1=A2,A2=A3),"X","")

Double click the fill handle to quickly copy the formula down to B10000.

Biff

"dbmeyer" wrote in message
...
I have a very long column 10K of numbers. I need to identify each cell
which has a number before or after it which is equal to it.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dbmeyer
 
Posts: n/a
Default How do I identify cells with matching numbers within a column.

WORKS. I made the X a 1 and then sum the collumn. 699 Instances of repeat
charges against the same serial number.

"Max" wrote:

I'm just guessing that you want to flag duplicate numbers in col A
(Numbers are assumed within A1:A10000, and with the possibility of some
blank cells in-between)

Put in B1:
=IF(A1="","",IF(COUNTIF($A$1:A1,A1)1,"X",""))
Copy B1 down to B10000

Duplicate numbers, if any, will be flagged with an "X"

(We could then insert a new top row, and do a Data Filter Autofilter on
col B to filter out the "X", for example)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"dbmeyer" wrote in message
...
I have a very long column 10K of numbers. I need to identify each cell
which has a number before or after it which is equal to it.




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default How do I identify cells with matching numbers within a column.

"dbmeyer" wrote:
WORKS. I made the X a 1 and then sum the
column. 699 Instances of repeat
charges against the same serial number.


Glad to hear that. Good improvisation <g !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
how do i add in numbers automatically based on adjacent cells cont lemskibar Excel Discussion (Misc queries) 2 December 22nd 05 05:27 PM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
Formula to identify a keyword in all cells of a column HTC Excel Discussion (Misc queries) 3 July 28th 05 03:57 PM
Consecutive Numbers down a column not to Exceed 49 Nelson Excel Worksheet Functions 6 July 18th 05 09:32 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM


All times are GMT +1. The time now is 09:49 AM.

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"