How to Remove the Decimal in Excel’s RAND Function: A Step-by-Step Guide

Are you looking to generate whole numbers in Excel using the RAND function? You might have noticed that RAND produces a bunch of numbers after the decimal point, but don’t worry, we’ve got the solution for you! In just a few simple steps, you can remove the decimal and get the whole number you need.

Step by Step Tutorial on How to Remove the Decimal When Using RAND in Excel

Before we dive into the steps, let’s understand what we’re trying to achieve. The RAND function in Excel generates a random decimal number between 0 and 1. However, sometimes we need a whole number for our data. By following these steps, you’ll be able to convert those pesky decimals into clean, whole numbers.

Step 1: Insert the RAND Function

Type =RAND() into the cell where you want your random number.

The RAND function is the starting point for generating your random number. Remember, it will initially give you a decimal.

Step 2: Multiply the RAND Function by 100

After the RAND function, type * 100 (or any other number depending on how large you want your random number to be).

Multiplying the result of the RAND function scales up the decimal to give you a wider range of numbers.

Step 3: Use the INT Function to Remove the Decimal

Wrap the entire formula in the INT function by typing =INT() around your existing formula.

The INT function rounds down the decimal number to the nearest whole number, effectively removing the decimal.

Step 4: Press Enter and Copy Down the Formula

Hit the enter key, and then drag the fill handle to copy the formula to other cells if needed.

Once you press enter, you’ll see your whole number. You can drag the formula to apply it to multiple cells.

After completing these steps, the cells where you inserted the formula will display random whole numbers instead of decimals. This can be especially useful for tasks like creating sample data sets or assigning random numbers to a list.

Tips for Removing the Decimal When Using RAND in Excel

  • Experiment with different multipliers in step 2 to get a range of numbers that suit your needs.
  • Keep in mind that the INT function always rounds down, so if you need to round up, you may want to consider a different function like ROUNDUP.
  • If you need a random number within a specific range, adjust the multiplier accordingly.
  • Remember that every time the worksheet recalculates, the RAND function will generate a new random number.
  • You can combine the RAND function with other functions to create more complex randomization formulas.

Frequently Asked Questions

What is the RAND function in Excel?

The RAND function is a built-in function in Excel that generates a random decimal number between 0 and 1.

Can I generate a random number between two specific values?

Yes, you can adjust the multiplier and add or subtract numbers to set a specific range for your random numbers.

Why does the RAND function only generate decimal numbers?

The RAND function is designed to generate numbers for probabilistic calculations, which often require decimals.

What’s the difference between the RAND and RANDBETWEEN functions?

RANDBETWEEN generates a random whole number between two specified values, while RAND generates a decimal number between 0 and 1.

Does the RAND function produce truly random numbers?

The numbers generated by the RAND function are considered pseudo-random, which means they’re suitable for most purposes but not truly random from a statistical standpoint.


  1. Insert the RAND function.
  2. Multiply the RAND function by 100 or your desired range.
  3. Use the INT function to remove the decimal.
  4. Press Enter and copy down the formula if needed.


Mastering the use of the RAND function in Excel can significantly enhance your data analysis and simulation tasks. By following the simple steps outlined in this article, you can easily remove the decimal and generate whole numbers to meet your project requirements. Remember to experiment with the multiplication factor and consider combining RAND with other functions for more complex scenarios.

With practice, you’ll become adept at manipulating random number generation in Excel, opening up a whole new world of possibilities for your worksheets. Whether you’re working on statistical models, games, or just need to assign random numbers quickly, knowing how to remove the decimal when using RAND in Excel is a handy skill to have in your arsenal.

Join Our Free Newsletter

Featured guides and deals

You may opt out at any time. Read our Privacy Policy