I’m confused by your nomenclature here… Are you just “rolling” some number of dice and looking for a histogram of the results? If so, it’s probably easiest to write a program to tally up the results appropriately and then just plot it in Excel. The brute-force way to do it would be the following: If you ran your program and got the results

1,3,5,3,4,2,5,6,7,2,6,7,2,8,3,6,3,7,2,9,2,2

then you’d just run a loop that cycled you through the entire list, incrementing the elements of another array appropriately. In pseudo-code,

```
For x = 1 to length(results);
histogram(results(x)) = histogram(results(x)) + 1;
Next x
```

This would result in the list “histogram” containing the values

1,5,4,1,2,3,3,2,1

which are, respectively, the number of 1’s in “results”, the number of 2’s in “results”, etc.

For the record, Excel does have some histogram-generating abilities of its own, but they’re kludgy and not all that straightforward. If you’re already using a programming language, better to generate the histogram data directly.