Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
TotallyConfused
 
Posts: n/a
Default Formula for comparing rows in a column

Can someone please help with this this formula? I am trying to comparing if
there are dupes in a column. (=IF(A2=A1,1,0)). Any help will be greatly
appreciated. thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Formula for comparing rows in a column

=IF(COUNTIF($A$1:$A$100,A1)1,"Dup","Not Dup")

copy down


--

Regards,

Peo Sjoblom

"TotallyConfused" wrote in
message ...
Can someone please help with this this formula? I am trying to comparing

if
there are dupes in a column. (=IF(A2=A1,1,0)). Any help will be greatly
appreciated. thank you.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Pete
 
Posts: n/a
Default Formula for comparing rows in a column

You will need to sort the data in column A for this formula to work.
You do not need brackets around the formula, i.e. it should be:

=IF(A2=A1,1,0)

You should enter this formula into cell B2 and then copy it down the
column - the easiest way is to double-click the "fill handle", which is
the small square at the bottom right corner when the selected cell is
B2. You should then apply autofilters - Data | Filter | Autofilter
(check) - and select 0 for the column B filter - this will show only
the unique values in column A. Highlight the values displayed, then
copy them to another location (e.g. below your data), and you will have
your unique values.

Another way of doing this is to use Filter | Advanced Filter, as here
you can select Unique records and decide to filter in place or to copy
them elsewhere.

Hopt this helps,

Pete

  #4   Report Post  
Posted to microsoft.public.excel.misc
TotallyConfused
 
Posts: n/a
Default Formula for comparing rows in a column

Thank you very much. This helped so much! Have a great day!

"Pete" wrote:

You will need to sort the data in column A for this formula to work.
You do not need brackets around the formula, i.e. it should be:

=IF(A2=A1,1,0)

You should enter this formula into cell B2 and then copy it down the
column - the easiest way is to double-click the "fill handle", which is
the small square at the bottom right corner when the selected cell is
B2. You should then apply autofilters - Data | Filter | Autofilter
(check) - and select 0 for the column B filter - this will show only
the unique values in column A. Highlight the values displayed, then
copy them to another location (e.g. below your data), and you will have
your unique values.

Another way of doing this is to use Filter | Advanced Filter, as here
you can select Unique records and decide to filter in place or to copy
them elsewhere.

Hopt this helps,

Pete


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
copy and pasting a find all list into another column Ben Excel Discussion (Misc queries) 18 December 31st 05 10:51 PM
IF/AND/OR/DATEIF Issue...sorry...long post... EDSTAFF Excel Worksheet Functions 1 November 10th 05 12:28 AM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
Same formula in each cell of column; insert rows w/o copying down tgdavis Excel Discussion (Misc queries) 3 September 14th 05 09:32 PM
Formula to compare multiple rows values based on another column? Murph Excel Worksheet Functions 4 February 21st 05 02:44 AM


All times are GMT +1. The time now is 01:32 PM.

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

About Us

"It's about Microsoft Excel"