Chart & Visualization Issues

Save 1,000 Random Excel Results and Create a Distribution Chart

Aamir Naveed AkramAamir Naveed Akram Dec 2, 2026 869 views

Question details

Generate and retain 1,000 random formula results, then chart their distribution.

Save 1,000 Random Excel Results and Create a Distribution Chart
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet uses RANDBETWEEN or other formulas to produce random outcomes, and the user wants to compare a large set of results.
Observed behavior
The desired result is a fixed set of 1,000 outcomes and a chart showing how often the outcomes occur.
Before you start

Identify the formula that produces one outcome and the range of possible values. If the outcome depends on several cells, check which references should change for each trial and which should remain fixed.

Solution 1Recommended

Generate 1,000 Excel results and chart the saved values

Use this method to create independent trial rows, freeze their results, and build a distribution chart.

RANDBETWEEN recalculates, so the results must be pasted as values before charting if you want the sample to stay fixed. For a multi-cell model, copy all trial formulas across the rows and check their relative and absolute references.

1
Create the trial rows

Enter the outcome formula in cell A2, then drag its fill handle down to A1001. For example, =RANDBETWEEN(1,10) produces an integer from 1 through 10 in each row.

2
Recalculate the sample

Press F9 to recalculate the formulas. Review the results in A2:A1001 before saving them.

3
Save fixed values

Copy A2:A1001, select cell A2 on another worksheet, and choose Home > Paste > Paste Special > Values. Add a heading in A1, such as Result.

4
Insert a histogram

Select the saved results and choose Insert > Insert Statistic Chart > Histogram. Right-click the horizontal axis and choose Format Axis to adjust the bin width or number of bins.

Generate 1,000 Excel results and chart the saved values
Histogram availability: The built-in Histogram chart is available in Excel 2016 and later. In other versions, count each outcome with COUNTIF and use Insert > Column Chart instead.
Create a distribution in WPS

Chart Random Result Frequencies in WPS Spreadsheet

Use WPS Spreadsheet to generate random outcomes, paste them as fixed values, and chart their frequencies with a column chart.

  1. 1. Generate the results: In WPS Spreadsheet, enter =RANDBETWEEN(1,10) in A2 and drag the fill handle down to A1001. Adjust the formula to match your trial.
  2. 2. Freeze the sample: Copy A2:A1001, select A2 on a new sheet, and choose Paste Special > Values. Enter Result in A1.
  3. 3. Count each outcome: Enter the possible outcomes in C2:C11, such as 1 through 10. In D2, enter =COUNTIF($A$2:$A$1001,C2), then drag the fill handle down alongside the outcomes.
  4. 4. Create the chart: Select C2:D11 and choose Insert > Column Chart. Add outcome and frequency headings if you want them included in the chart.
Create a frequency chart from 1,000 saved random resultsOpen and save Microsoft Excel XLSX filesUse familiar formulas such as RANDBETWEEN and COUNTIFWork in a free, easy-to-use spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why do my random results change when I edit the workbook?

RANDBETWEEN is volatile and can recalculate when the worksheet recalculates. Copy the results and use Home > Paste > Paste Special > Values to keep a fixed sample.

How do I change the histogram's bin size in Excel?

Right-click the histogram's horizontal axis, choose Format Axis, and adjust the bin width or number of bins under Axis Options.

Can I make a chart if my Excel version does not have a histogram?

Yes. List the possible outcomes, use COUNTIF to count each one in the saved result range, select the outcomes and counts, and choose Insert > Column Chart.

Can I automate repeated recalculation and capture?

Yes. A VBA macro can recalculate the model and write each outcome as a value to another worksheet. This can be useful when the model cannot be replicated as independent trial rows.