#1   Report Post  
Posted to microsoft.public.excel.misc
Shirley Munro
 
Posts: n/a
Default Find Duplicates


Hi

I want to find any duplicates in column B. However my problem is that
I am trying to do this within a macro and when the macro is run the
number of cells being used in column B can vary each time. In the past
I have had a fixed cell range, for example the cell range is from
B2:B500 then I have been able to use conditional formatting with a
formula: =COUNTIF($B$2:$B$500,B2)1

Is there a way of doing something similar when I don't know the last
cell in the range.

Thanks

Shirley:)


--
Shirley Munro
------------------------------------------------------------------------
Shirley Munro's Profile: http://www.excelforum.com/member.php...nfo&userid=836
View this thread: http://www.excelforum.com/showthread...hreadid=513126

  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim May
 
Posts: n/a
Default Find Duplicates

Why not
=COUNTIF($B:$B,B2)1


"Shirley Munro"
wrote in message
news:Shirley.Munro.23bk2m_1140088201.1452@excelfor um-nospam.com...

Hi

I want to find any duplicates in column B. However my problem is that
I am trying to do this within a macro and when the macro is run the
number of cells being used in column B can vary each time. In the past
I have had a fixed cell range, for example the cell range is from
B2:B500 then I have been able to use conditional formatting with a
formula: =COUNTIF($B$2:$B$500,B2)1

Is there a way of doing something similar when I don't know the last
cell in the range.

Thanks

Shirley:)


--
Shirley Munro
------------------------------------------------------------------------
Shirley Munro's Profile:
http://www.excelforum.com/member.php...nfo&userid=836
View this thread: http://www.excelforum.com/showthread...hreadid=513126



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
2 workbooks - how do I find duplicate entries by comparing the two queen on Excel Discussion (Misc queries) 2 September 20th 05 11:12 AM
Find within Workbook. Matt Carter Excel Discussion (Misc queries) 2 August 3rd 05 07:40 PM
How do I find only the singular rows in a sheet with duplicates? Alli Excel Discussion (Misc queries) 2 May 4th 05 04:21 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM
Find duplicates R. Choate Excel Discussion (Misc queries) 5 November 28th 04 10:14 PM


All times are GMT +1. The time now is 08:31 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"