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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

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