Increasing numbers randomly, yet leave empty cells empty.

X82

New Member
Joined
Apr 14, 2011
Messages
32
I have a very specific situation I need help with.
I have this spread sheet containing about 300 rows of people. In some, not all columns, there is a number. Is there a way of making all those numbers increase or decrease by a random amount. Say if one column was 88 then after this it would be 74 or 93. I've tried RAND however, where columns have no data, I want it to remain blank. But putting a rand in all the cells it generates a number. And selecting all the cells I want to change would be tiresome.

Any thoughts?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi

If you already have data in some cells, and the other cells are actually blanks, then select your data range. Ctrl+H to open the Find/Replace box. Under Find What put *, and under Replace with put in the formula =RAND() ..... or if you prefer, =RANDBETWEEN(50,100) ... change the numbers to suit..... Click Replace All.
 
Upvote 0
Perhaps: press F5, click Special, tick Constants and Numbers. Type your RAND formula, hold down CTRL and press Enter.
 
Upvote 0

Forum statistics

Threads
1,215,745
Messages
6,126,636
Members
449,324
Latest member
AmirMalik

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