#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default duplicate cells

need to identify duplicate cells when using the =rand function.
ive tried =countif
=match
if statements
and nothing works.

I was just wodering if there was a simple function to use, that can detect
duplicates in a range of cells, and maybe also show you how many, for example
in lottery.

Also following that, is there a function that can stop duplicate numbers
from appearing whilst using the =rand function?

Thanks
GTR
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default duplicate cells

The best way is to use two columns when you are looking for random numbers.
If you want 1000 random numbers put 1 to 1000 in columnA. Then put in column
B the formula =RAND(). Now sort the two columns using column B as the Key.
column A will be a sorted list with no duplicates.

"GTR Students" wrote:

need to identify duplicate cells when using the =rand function.
ive tried =countif
=match
if statements
and nothing works.

I was just wodering if there was a simple function to use, that can detect
duplicates in a range of cells, and maybe also show you how many, for example
in lottery.

Also following that, is there a function that can stop duplicate numbers
from appearing whilst using the =rand function?

Thanks
GTR

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
Duplicate Cells Ken McGonagle Excel Worksheet Functions 9 September 1st 09 05:58 PM
Duplicate cells workingwoman Excel Discussion (Misc queries) 3 August 11th 07 12:40 PM
Duplicate cells cdavis82 Excel Discussion (Misc queries) 1 October 13th 06 10:14 PM
Duplicate cells cdavis82 Excel Discussion (Misc queries) 0 October 13th 06 09:01 PM
Duplicate Cells Tom Siko Excel Discussion (Misc queries) 0 February 10th 06 01:59 PM


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