Refreshing Cells with RandBetween?

koesherbacon

New Member
Joined
Jun 6, 2013
Messages
10
Hello,

I'm a Dungeon Master for my Pathfinder RPG group and am making an Initiative/Combat Tracker in Excel 2013.

I'm not sure how to go about doing this. What I'd like to do is make a button that when pressed will refresh data stored in cells with the =RandBetween(1,20) function in order to calculate the initiative order.

Basically, when I click the button, it would automatically refresh the random integer in each cell that contains that function.

Is there a way to do this? If so, how complicated will it be? Will I have to be experienced with creating macros? I don't know the first thing about making macros...

Now that I think of it, that's actually the only function that would need to be refreshed, so if there's a way to just refresh the entire sheet with a click of the mouse, that would be fine too.

So, if anyone could give me some input, I would really appreciate it!

Thanks a lot!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
RANDBETWEEN is a volatile worksheet function so each time you press F9​ (calculate); it should generate the next random number.
 
Upvote 0
Oh, I also just through of this as well. In Excel 2013, is there a button I could just add to my Ribbon which will do this? That would definitely be the simplest way to do it, but I'm not sure what that button would be called when adding it to my Ribbon.

Thanks a lot again!
 
Upvote 0
i would like a random number between 1 and 180 in a cell that refreshes every 2 seconds. any way of doing that?
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,867
Members
449,053
Latest member
Mesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top