Random Number - Generate sample from the raw data
Hey Smart-Heads!
Desired goal is to be able to extract only 20% of the rows meeting specific criteria.
As far as I know SS, does not have RANDOM formula, neither allows to write 1-2-3-4-5, double click and have the same all the way down.
Any ideas / topics (from the past?), to solve this issue?
Thanks,
Romano
Best Answer
-
I was able to achieve the 1 2 3 4 5 repeated all the way down by experimenting with an "Auto Number" column.
This column simply counts all the rows in your sheet.
Using this formula in a new column =MOD([Auto Number]@row - 1, 5) + 1
Like so:
You can modify the MOD formula if you want seemingly random numbers as well.
Hope this helps!
https://www.linkedin.com/in/zchrispalmer/
Answers
-
I was able to achieve the 1 2 3 4 5 repeated all the way down by experimenting with an "Auto Number" column.
This column simply counts all the rows in your sheet.
Using this formula in a new column =MOD([Auto Number]@row - 1, 5) + 1
Like so:
You can modify the MOD formula if you want seemingly random numbers as well.
Hope this helps!
https://www.linkedin.com/in/zchrispalmer/
-
Awesome, thank you very much, will give it a try!
@Update, works blyatifully, even on big numerals, cheers buddy!
Thanks,
Romano
-
Awesome, I'm glad this worked for you.
https://www.linkedin.com/in/zchrispalmer/
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 62 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!