Formula for comparing rows in a column

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top