Skip to main content

How to generate random positive and negative numbers in Excel?

Author: Sun Last Modified: 2020-07-23

To generate only positive or negative numbers in Excel, you can follow the steps of this tutorial.

Generate random positive numbers

Generate random negative numbers

Generate random positive or negative numbers with Kutools for Excel good idea3


arrow blue right bubble Generate random positive numbers

Here I introduce you some formulas to randomize the positive numbers in Excel.

Randomize positive integer numbers

To randomize positive integer numbers, you can select a blank cell, and type =RANDBETWEEN(X,Y) (X and Y indicate any positive numbers, and X<Y), here I type =RANDBETWEEN(2,80), then press Enter key, you can drag the fill handle to the range you need.
doc-randomize-positive-negative-1

Randomize positive decimal numbers

To randomize positive decimal numbers, you can use this formula =RAND()*(Y-X)+X (X and Y indicate any positive numbers, and X<Y), here, I type =RAND()*(66-12)+12 into a blank cell, then press Enter key, you can drag the fill handle to your needed range.
doc-randomize-positive-negative-2

Then you can specify the decimals as your need by clicking Home tab, then clicking Increase Decimal button or Decrease Decimal button.
doc-randomize-positive-negative-3


arrow blue right bubble Generate random negative numbers

To generate random negative numbers, you also can use some formulas.

Randomize negative integer numbers

The formula =RANDBETWEEN(X,Y) also can insert negative integer numbers. (X and Y indicate any negative numbers, and X<Y), here, I type =RANDBETWEEN(-120,-20) into a blank cell and press Enter key, then if you need, you can drag the fill handle to fill a range.

doc-randomize-positive-negative-4

Randomize negative decimal numbers

You can use this formula =RAND()*(X-Y)Y (X and Y indicate any negative numbers, and X<Y), here, I type generate =RAND()*(-80+30)-30 and press Enter key, if you need, you can drag the fill handle to apply the formula to a range.
doc-randomize-positive-negative-5

Then you can specify the decimals as your need by clicking Home tab, then clicking Increase Decimal button or Decrease Decimal button.


arrow blue right bubble Generate random positive or negative numbers with Kutools for Excel

With Kutools for Excel’s Insert Random Data, you can quickly generate random only positive or negative numbers in Excel.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After free installing Kutools for Excel, please do as below:

1. Select a range you need, and click Kutools > Insert > Insert Random Data.
doc radomize positive negative 11

2. In the Insert Random Data dialog, go to the Integer tab, type the random number series into From and To text boxes, if you need positive numbers, type both of positive numbers, if you need negative numbers, type both of negative numbers.
doc kutools insert random data 2

Tip: If you want the inserted random numbers are unique, you can check Unique values in the dialog.

3. Click Ok to exit the dialog.
doc-randomize-positive-negative-8

With Kutools for Excel’s Insert Random Data feature, you also can insert random positive and negative numbers at once time.

doc kutools insert random data 3doc-randomize-positive-negative-10

Tip:

If you want to insert unique positive and negative values,just check the Unique Values box.

With Insert Random Data feature of Kutools for Excel, you can insert the random date, random string, and random custom list. Click here for more details about it.


Relative Articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations