2 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Generating a random selection of rows based on multiple criteria

I am trying to create a force building tool for a tabletop wargame.

I would like it to generate multiple rows of unit info from a table based on certain criteria and have it working for the most part but keep ending up with #SPILL errors. I am sure that there is a much more efficient way of going about this.

Here's the overview:

https://preview.redd.it/4ghjhqiupksg1.png?width=1256&format=png&auto=webp&s=a6bdc0749397463685bc7f52d8e90f9199fb8d62

The breakdown:
A random rom is selected from a table in the worksheet

https://preview.redd.it/5telq4v4qksg1.png?width=757&format=png&auto=webp&s=f25aeec460a6b8e5c5750f9d3ff55acaef477658

Then a filter is applied to sort the results according to what is selected in the dropdown menu at B2

https://preview.redd.it/8mt7wxadqksg1.png?width=1236&format=png&auto=webp&s=1e2e6bc4cde488809447de96e1a8d38e8182e8f2

For the most part this method seems to work. The issue is that every few refreshes i get a #SPILL error

https://preview.redd.it/ndkvd72nqksg1.png?width=257&format=png&auto=webp&s=57bbb4d9217c9166376c2935a0ce4f85c4b386c0

I have set this formula to run at the bottom of the sheet and ensured there was no data in any cells to the farthest right and down.

BONUS:

If there is also a way to get this to work and have the random rows be equal to a determined point value. that would be amazing.

submitted by /u/simpson95338
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#Excel alternatives for data analysis
#generative AI for data analysis
#rows.com
#natural language processing for spreadsheets
#cloud-based spreadsheet applications
#AI formula generation techniques
#big data management in spreadsheets
#conversational data analysis
#Excel compatibility
#real-time data collaboration
#financial modeling with spreadsheets
#intelligent data visualization
#data visualization tools
#formula generator
#enterprise data management
#big data performance
#Excel alternatives
#data analysis tools
#data cleaning solutions