## Random Numbers With No Duplicates |

## Random Numbers With No Duplicates - Excel |
View Answers |

I want to set up a column of numbers that will be random without any repeating numbers.

Example: If I set up for 1,000 rows, I would like the random numbers to be 1 to 1,000, but the catch would be to have no duplicates in the column.

It has been several years since I worked with Excel and I am sure this can be done with a macro, but I am not sure how to go about it right now.

Example: If I set up for 1,000 rows, I would like the random numbers to be 1 to 1,000, but the catch would be to have no duplicates in the column.

It has been several years since I worked with Excel and I am sure this can be done with a macro, but I am not sure how to go about it right now.

## Free Excel Help Forum

**- Ask any question about Excel and have it answered in no time.**

## Similar Excel Tutorials

Generate Random Numbers within a Range in Excel

How to generate random whole numbers (integers) that are between two numbers. This allows you to set a minimum and ...

How to generate random whole numbers (integers) that are between two numbers. This allows you to set a minimum and ...

Easily Compare Duplicate Values in Excel

Here, I'll show you a simple technique to quickly and easily compare large lists of duplicate values. This allows ...

Here, I'll show you a simple technique to quickly and easily compare large lists of duplicate values. This allows ...

Prevent Duplicate Values in Excel

I show you how to prevent duplicate values being entered into Excel using Data Validation. Let's say we have a lis ...

I show you how to prevent duplicate values being entered into Excel using Data Validation. Let's say we have a lis ...

Delete Duplicate Values in All Versions of Excel

How to delete duplicate values from a data set in all versions of Excel. This includes Excel 2003 and earlier and ...

How to delete duplicate values from a data set in all versions of Excel. This includes Excel 2003 and earlier and ...

## Helpful Excel Macros

Generate a Non-Repeating List of Random Numbers in Excel - UDF

- Generate a series of non-repeating random numbers in Excel with this UDF (user defined function). This is a great funct

- Generate a series of non-repeating random numbers in Excel with this UDF (user defined function). This is a great funct

Get the Number(s) Out of a Cell that Contains Both Text and Numbers in Excel - UDF

- This free Excel UDF allows you to get the numbers out of a cell that contain both text and numbers. This is a great fun

- This free Excel UDF allows you to get the numbers out of a cell that contain both text and numbers. This is a great fun

Delete Duplicate Rows

- This macro will delete rows that appear twice in a list or worksheet. If two cells are identical, this macro will delete

- This macro will delete rows that appear twice in a list or worksheet. If two cells are identical, this macro will delete

Delete Only the Text from Cells

- This macro will delete all text from selected cells. This will not delete any other characters or numbers from any cell

- This macro will delete all text from selected cells. This will not delete any other characters or numbers from any cell

Reverse Row or Column Order in a Worksheet

- This macro reverses the order of a selected row or column in excel. It will completely reverse the data.

- This macro reverses the order of a selected row or column in excel. It will completely reverse the data.

## Similar Topics

I want to create 6 numbers from 11 numbers..

lets suppose my numbers a 1,2,3,4,5,6,7,8,9,10,11

I want to generate all possibilities of the 6 numbers. But i dont want duplicate series.. I mean 1,2,3,4,5,6 and 6,5,4,3,2,1 are duplicates.

ANY HELPS ARE GREATLY APPRECIATED

lets suppose my numbers a 1,2,3,4,5,6,7,8,9,10,11

I want to generate all possibilities of the 6 numbers. But i dont want duplicate series.. I mean 1,2,3,4,5,6 and 6,5,4,3,2,1 are duplicates.

ANY HELPS ARE GREATLY APPRECIATED

Right now I have a sports league with 8 teams, I'd like to create a random 7-game schedule where each team plays the other team only once. Essentially this will be a 7-game round robin. However, I'd like to be able to use this for any number of teams and games.

I'd like to do this in Excel, but I can't figure out how to have a randomly generating non-repeating macro with text values in cells.

So right now I have a column of 8 values and need matrix of 7 columns by 8 rows next to it.

I've found this thread that has one for numbers, but I can't figure out how to do it for text values...

http://www.excelforum.com/excel-prog...m-numbers.html

Thanks all!

I'd like to do this in Excel, but I can't figure out how to have a randomly generating non-repeating macro with text values in cells.

So right now I have a column of 8 values and need matrix of 7 columns by 8 rows next to it.

I've found this thread that has one for numbers, but I can't figure out how to do it for text values...

http://www.excelforum.com/excel-prog...m-numbers.html

Thanks all!

Hi All,

Random question i have a large Excel Workbook (which is protected) and has over five sheets on it - however one sheet has randomly decided not to scroll... yes i know sounds random! If i use the cursor and down arrows the selection just disappears off the screen.

The page will scroll if i filter by one field, but not if i select (All) for all filters.

All other worksheets scroll fine.

Any suggestions?

Thanks in advance.

Cheers Kaite

Random question i have a large Excel Workbook (which is protected) and has over five sheets on it - however one sheet has randomly decided not to scroll... yes i know sounds random! If i use the cursor and down arrows the selection just disappears off the screen.

The page will scroll if i filter by one field, but not if i select (All) for all filters.

All other worksheets scroll fine.

Any suggestions?

Thanks in advance.

Cheers Kaite

I need help writing a formula to add a column of numbers until a value is reached, then start over adding numbers starting at the next cell after the value is reached.

Thanks for any help.

45Romeo

Thanks for any help.

45Romeo

Hi there, I have a string of numbers and I would like to add zeros to the end of it.

For example my numbers are formatted like this: 1234 and I would like to add zeros to the end so it looks like this: 123400 (no decimal).

I would do it manually but I have a column of over 2000 different numbers.

Thanks for your help, you guys are great!

For example my numbers are formatted like this: 1234 and I would like to add zeros to the end so it looks like this: 123400 (no decimal).

I would do it manually but I have a column of over 2000 different numbers.

Thanks for your help, you guys are great!

Hello gurus!

Here's my question...I have a list of numbers and I want to know how many combinations (and what they are) of adding the numbers will equal an amount.

e.g.

List of Numbers

1

2

3

4

5

6

7

8

9

10

Amount to be reached = 12

These are some of the possible combinations to reach 12 :

2+10

3+9

4+8

5+7

3+4+5

6+3+2+1

Is there a function in Excel that will do this for me? I want to know which numbers (i.e. cells) can be added to reach 12. AND, if possible, colorcode the cells added for each combination.

Good luck and thanks!!

Here's my question...I have a list of numbers and I want to know how many combinations (and what they are) of adding the numbers will equal an amount.

e.g.

List of Numbers

1

2

3

4

5

6

7

8

9

10

Amount to be reached = 12

These are some of the possible combinations to reach 12 :

2+10

3+9

4+8

5+7

3+4+5

6+3+2+1

Is there a function in Excel that will do this for me? I want to know which numbers (i.e. cells) can be added to reach 12. AND, if possible, colorcode the cells added for each combination.

Good luck and thanks!!

dear supervirsor

i would like to know how to change english numbers to arabic number on excel

, where when i change the language from english to arabic the numbers didnt

changed it still in english

i would like to know how to change english numbers to arabic number on excel

, where when i change the language from english to arabic the numbers didnt

changed it still in english

I have looked over the forums for information on how to do this, and can not find anything. I have used conditional formatting to identify duplicates in my spreadsheet. I have a unique user ID, which combines the first and last name fields into one. However, in 10,000 there are a number of John Smiths, Joe Adams, etc. With smaller lists, we search manually, and then add a 1, 2, 3, etc to each duplicate to create a unique value for the User ID.

My question is:

Is there a way to check for duplicates, and then automatically add numbers to the duplicate values to make them unique? If so, how can this be done?

So that you will have this:

JohnSmith

JohnSmith2

JohnSmith3

JaneDoe

JaneDoe2

JohnAdams

JohnAdams2

JohnAdams3

JohnAdams4

I think I have done a good job in illustrating what I would like to be able to do, but if there is still something that is unclear, I will post whatever clarification is needed.

Thank you in advance for your help!!

My question is:

Is there a way to check for duplicates, and then automatically add numbers to the duplicate values to make them unique? If so, how can this be done?

So that you will have this:

JohnSmith

JohnSmith2

JohnSmith3

JaneDoe

JaneDoe2

JohnAdams

JohnAdams2

JohnAdams3

JohnAdams4

I think I have done a good job in illustrating what I would like to be able to do, but if there is still something that is unclear, I will post whatever clarification is needed.

Thank you in advance for your help!!

Hi,

I have a column with a set of duplicate values. I need to remove the duplicates while leaving the original data and keeping the blanks. The Remove Duplicates function comprises the data and this does not work for me. Help!

I have a column with a set of duplicate values. I need to remove the duplicates while leaving the original data and keeping the blanks. The Remove Duplicates function comprises the data and this does not work for me. Help!

HELP!!

I need to know the formula (if there is one) for Excel to figure all the possible combinations of a given set of numbers that will add up to a specified sum.

In other words, if I give the following numbers 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7 - I want Excel to figure all the possible combinations that will add up to 23, and also SHOW ME those combinations, and not just HOW MANY combinations there are.

i.e. one possible combination is 2, 2, 3, 4, 5, 7

Can this be done? What is the formula? I'm having a hard time figuring it out!!

Desperately,

Jenny

I need to know the formula (if there is one) for Excel to figure all the possible combinations of a given set of numbers that will add up to a specified sum.

In other words, if I give the following numbers 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7 - I want Excel to figure all the possible combinations that will add up to 23, and also SHOW ME those combinations, and not just HOW MANY combinations there are.

i.e. one possible combination is 2, 2, 3, 4, 5, 7

Can this be done? What is the formula? I'm having a hard time figuring it out!!

Desperately,

Jenny

i've been trying to figure this out on my own but seem to be hitting road blocks.

i have a column of numbers that we extracted from a database as whole numbers. for instance, 30 should be .30 and 100 should be 1.00. when i try to increase or decrease the decimal point it doesn't allow me to convert it to those positions.

would any one have a tip of how i can easily convert this? there are over 2000 entries in my excel spreadsheet so to do it manually would take a lot of time/effort.

thank you!

i have a column of numbers that we extracted from a database as whole numbers. for instance, 30 should be .30 and 100 should be 1.00. when i try to increase or decrease the decimal point it doesn't allow me to convert it to those positions.

would any one have a tip of how i can easily convert this? there are over 2000 entries in my excel spreadsheet so to do it manually would take a lot of time/effort.

thank you!

Hello,

I'm a bit of a newbie with Excel, but...

I have several cells with data that contain both letters and numbers (4H, 8V, 4FH, etc.) What I want to do is remove only the text characters from these cells, and add the remaining number values together among a series of cells with this data type.

If your answer involves using a macro or VB, please provide a link on how to use the formula. I've never used a macro or VB.

Thanks.

I'm a bit of a newbie with Excel, but...

I have several cells with data that contain both letters and numbers (4H, 8V, 4FH, etc.) What I want to do is remove only the text characters from these cells, and add the remaining number values together among a series of cells with this data type.

If your answer involves using a macro or VB, please provide a link on how to use the formula. I've never used a macro or VB.

Thanks.

Hello

I am trying to understand why I can not use Ctrl+F to find data in Column B, yet I can find the data in Column A.

I have a worksheet that in column A has numbers, in column B, the following formula "IF(ISNUMBER($A1),$A1,"").

Ctrl+F will find numbers in Column A, yet not in Column B. Why is this so? What can be done to ensure Ctrl+F works in Column B?

I am trying to understand why I can not use Ctrl+F to find data in Column B, yet I can find the data in Column A.

I have a worksheet that in column A has numbers, in column B, the following formula "IF(ISNUMBER($A1),$A1,"").

Ctrl+F will find numbers in Column A, yet not in Column B. Why is this so? What can be done to ensure Ctrl+F works in Column B?

Hi folks,

Hoping someone can help me quickly as I'm pulling my hair out and have a deadline getting too close.

Been trailing the net and this board but can't work out how to do a simple variance.

How do I work out the difference between two numbers - including negatives.

If the numbers are all positive, it's fine as it's simply a case of A - B = C which is your difference. However, that doesn't work if B is negative.

I need a formula that would give the following:

First Number / Second Number / Difference

1 / 5 / 4

1 / -5 / -6

-1 / 5 / 6

-1 / -5 / -4

-5 / -1 / 4

Hopefully there's a simple function I've been missing.

Thanks in advance, R

Hoping someone can help me quickly as I'm pulling my hair out and have a deadline getting too close.

Been trailing the net and this board but can't work out how to do a simple variance.

How do I work out the difference between two numbers - including negatives.

If the numbers are all positive, it's fine as it's simply a case of A - B = C which is your difference. However, that doesn't work if B is negative.

I need a formula that would give the following:

First Number / Second Number / Difference

1 / 5 / 4

1 / -5 / -6

-1 / 5 / 6

-1 / -5 / -4

-5 / -1 / 4

Hopefully there's a simple function I've been missing.

Thanks in advance, R

A previous poster explained what I also need; there were no responses,

so I thought I would try again.

Does anyone know of an Excel template--or a small stand-alone

program--that will calculate the interest/principal breakdown when

payments are varied in amount and frequency? Free or low-cost, please.

I need one that will work on my Mac/Office 2004. I will need to print

out periodic reports.

Here is the way the previous poster described it:

"Excel template: Loan Amortization for random/irregular payments,

figures days

between payment dates.

I have a loan with a variable beginning balance and irregular payments

with

annual large payment. (based on collections)

Would like to enter payment and date.

then Excel would figure days since last payment, interest amount,

principal

amount, Ending Principal balance.

And total interest paid, total pricipal paid

If I change the starting principal, excel would recalculate all

entries."

Thanks very much.

so I thought I would try again.

Does anyone know of an Excel template--or a small stand-alone

program--that will calculate the interest/principal breakdown when

payments are varied in amount and frequency? Free or low-cost, please.

I need one that will work on my Mac/Office 2004. I will need to print

out periodic reports.

Here is the way the previous poster described it:

"Excel template: Loan Amortization for random/irregular payments,

figures days

between payment dates.

I have a loan with a variable beginning balance and irregular payments

with

annual large payment. (based on collections)

Would like to enter payment and date.

then Excel would figure days since last payment, interest amount,

principal

amount, Ending Principal balance.

And total interest paid, total pricipal paid

If I change the starting principal, excel would recalculate all

entries."

Thanks very much.

Hello everyone, I am new to this forum and have been using excel for about 3 years. I have learned alot but still can not figure out how to make numbers add up in one box like a running total. Meaning, If I have a list and in the list is one cell for each item say like cell a1 is for a can of coke and cell a2 is for a car tire and so on,and i want to keep a running total by adding a number to cell a1 or a2 like say "3 i.e. 3 tires or cans of coke" and later that day i come back and need to add 2 more ......so i want to be able to just click on the cell a1 or a2 and enter the number 2 and the cell would add the number in it to the number im adding to it to show a result of 5 tires or whatever. I am sorry If i am not asking the question in an understandable manor but its the best way I can think to ask it.lol anyways, any help would be appreciated, Thanks in advance.

James

James

First time in this forum. Hi all. I have a challenging question, is there a way either by VBA or manually (preferably both, if possible) to actually unite the X amount of numbers that are in a cell given the contents is alphanumeric? I'll give you the following examples to see if you can understand what I' referring to?

DATA output should be

asd67,h876 --------> 67876

2,3,ujdj5&34 -------> 23534

909k86m34 --------> 9098634

Hope this makes sense?

DATA output should be

asd67,h876 --------> 67876

2,3,ujdj5&34 -------> 23534

909k86m34 --------> 9098634

Hope this makes sense?

I'm sure this has been addressed before, and I'm sure one of you 50lb heads has the answer I'm looking for. I want to generate a bank of 200-300 questions in excel and be able to make a test of 50 questions that will be different every time. I want to be able to do this with multiple choice questions as well as just plain essay questions. Can I have some instruction or examples? Thanks guys!

After you filter out data, how to you re-number the row numbers so they are, again, consecutive?

when I type a number or letter into a cell and then press enter the cursor

jumps way down the page to what appears to be a random cell. The one i

originaly typed in remains blank. spreadsheet was previously ok this has

just started to happen.

help please

thanks

jumps way down the page to what appears to be a random cell. The one i

originaly typed in remains blank. spreadsheet was previously ok this has

just started to happen.

help please

thanks

I know this question has been asked a bajillion times, so I apologize for the redundancy.

I am working with an Excel spreadsheet and saving it as a .csv file in order to upload to an application that parses out the .csv data as transactions. The system requires .csv files, so this is how I need to save my doc (with this extension). I have been successful at preventing Excel from coverting that long number into scientific format. I have saved as a TXT file, pasted the longer number and it displays correctly. That is all good. But I have to save as a .csv. So if I do that, close the Excel window, and then open again (as the .csv file), the numbers are back to being displayed in scientific format. I have tried creating an Excel doc from scratch and entering text in Text format, to see if this created a cleaner file. But again, the second I save as .csv, close the window and then open that file up again, that dang scientific format is back.

Does anyone have any idea of how to work around this? Once I have successfully gotten the numbers to display as the long-chain number, how can I get them to "stick" so that they don't revert back to scientific format when I reopen the file?

Thanks so much for your help!

I am working with an Excel spreadsheet and saving it as a .csv file in order to upload to an application that parses out the .csv data as transactions. The system requires .csv files, so this is how I need to save my doc (with this extension). I have been successful at preventing Excel from coverting that long number into scientific format. I have saved as a TXT file, pasted the longer number and it displays correctly. That is all good. But I have to save as a .csv. So if I do that, close the Excel window, and then open again (as the .csv file), the numbers are back to being displayed in scientific format. I have tried creating an Excel doc from scratch and entering text in Text format, to see if this created a cleaner file. But again, the second I save as .csv, close the window and then open that file up again, that dang scientific format is back.

Does anyone have any idea of how to work around this? Once I have successfully gotten the numbers to display as the long-chain number, how can I get them to "stick" so that they don't revert back to scientific format when I reopen the file?

Thanks so much for your help!

Thought I'd append my experience of the above problem - you can find all sorts of references to it everywhere.

My problem was that a userform defined with Excel at work (containing DT pickers) gave the message in the title when opening it at home. I had a light-bulb moment and wondered whether there was a difference in the version numbers for MSCOMCT2.OCX at work and at home. Turned out the work version was newer. I then copied the MSCOMCT2.* files from work, made a backup of them at home and copied those from work to my C-drive (Windows XP - c:\windows\system32\ ).

No luck. I then rebooted the machine - still no luck.

Then, finally I unregistered the old DLL via

Code:

(not sure if this was necessary, but I didn't think it could hurt). Reregistered the DLL via

Code:

and what do you know - it worked.

Summa summarum - it could be an idea to check whether the two machines have different version numbers for the MSCOMCT2.OCX files.

My problem was that a userform defined with Excel at work (containing DT pickers) gave the message in the title when opening it at home. I had a light-bulb moment and wondered whether there was a difference in the version numbers for MSCOMCT2.OCX at work and at home. Turned out the work version was newer. I then copied the MSCOMCT2.* files from work, made a backup of them at home and copied those from work to my C-drive (Windows XP - c:\windows\system32\ ).

No luck. I then rebooted the machine - still no luck.

Then, finally I unregistered the old DLL via

Code:

regsvr32 /u c:\windows\system32\MSCOMCT2.OCX

(not sure if this was necessary, but I didn't think it could hurt). Reregistered the DLL via

Code:

regsvr32 c:\windows\system32\MSCOMCT2.OCX

and what do you know - it worked.

Summa summarum - it could be an idea to check whether the two machines have different version numbers for the MSCOMCT2.OCX files.

I have a problem: I can't show some rows after they've been hidden with a macro. I tryed the "select all / unhide", but it doesn't work.

I noticed the row numbers are all blue now. What does it mean? (This could be the answer..:P)

I noticed the row numbers are all blue now. What does it mean? (This could be the answer..:P)

I have an extensive spreadsheet with several columns and all showing borders

where each cell/column begins and ends. However there are a few cells where

the break with the next cell does not show the line.

I have highlighed the cell in question, gone to format/cell/borders and

everything looks fine. Black color + format border shows square with all

sides of square showing.

Any thoughts on how to fix these few random cells.

Thanks

where each cell/column begins and ends. However there are a few cells where

the break with the next cell does not show the line.

I have highlighed the cell in question, gone to format/cell/borders and

everything looks fine. Black color + format border shows square with all

sides of square showing.

Any thoughts on how to fix these few random cells.

Thanks

I am trying to work out how to calculate the geometric mean of a series of values, some of which are negative, ie. investment returns over a series of years with some negatives.

The Geomean function doesn't work because it only uses positive numbers.

Any help would be greatly appreciated.

The Geomean function doesn't work because it only uses positive numbers.

Any help would be greatly appreciated.