KutoolsforOffice — One Suite. Five Tools. Get More Done.

How to generate random positive and negative numbers in Excel?

AuthorSunLast modified

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

Comparison of Methods for Generating Random Positive and Negative Numbers in Excel

To generate random positive or negative numbers in Excel, you can use built-in formulas such as RANDBETWEEN and RAND, or use Kutools for Excel's Insert Random Data feature. Both methods can generate random values within a specified range, but they differ in setup, flexibility, and duplicate control.

ComparisonExcel FormulasKutools Insert Random Data
Positive / Negative numbersAdjust the formula and its upper and lower limits for positive or negative valuesSet positive, negative, or mixed positive and negative ranges directly in the dialog box
Integer / DecimalUse RANDBETWEEN for integers and RAND-based formulas for decimalsConfigure the required random data through the Insert Random Data dialog
Avoid duplicates✘ The formulas shown do not prevent duplicate values✔ Enable Unique Values to generate non-repeating values
Best forSimple formula-based random numbers within a specified rangeQuickly generating positive, negative, mixed, or unique random data in bulk

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.
apply a formula to insert randomize positive integer numbers

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.
apply a formula to insert randomize positive decimal numbers

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


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.

apply a formula to insert randomize negative integer numbers

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.
pply a formula to insert randomize negative decimal numbers

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 offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Integrated with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

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

1. Select a range you need, and click Kutools > Insert > Insert Random Data.
click Insert Random Data feature of kutools

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.
set start and end numners in the dialog box

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.
get the numbers between two numbers

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

set start and end numbers in the dialog boxinsert random positive and negative numbers

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.

Conclusion

Excel formulas are suitable for basic random number generation. RANDBETWEEN can generate positive or negative integers within specified limits, while RAND-based formulas can generate positive or negative decimal numbers. However, you need to use different formulas depending on the type of numbers required, and the formulas shown do not prevent duplicate values.

Kutools for Excel's Insert Random Data provides a more visual approach for generating random data in bulk. You can define the range directly in the dialog box to generate positive numbers, negative numbers, or both positive and negative numbers together. You can also enable Unique Values when non-repeating results are required, without constructing different formulas for each situation.


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 Toolsets:  12 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
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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


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!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

ExcelWordOutlookTabsPowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in