Cycle Count Generator

kumatsu

New Member
Joined
Mar 17, 2022
Messages
16
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
I am wanting to create a random pick generator that picks 15-20 numbers from a list without repeating and keeping track of the picked numbers and not picking them again in future picks. But will auto reset once all the items in the list have been picked. If possible.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I am wanting to create a random pick generator that picks 15-20 numbers from a list without repeating and keeping track of the picked numbers and not picking them again in future picks. But will auto reset once all the items in the list have been picked. If possible.
This is the formula I am using now, but it's not reliable and auto changes whenever I do anything on the sheet. I also have to manually remove items from the list

=INDEX(SORTBY(A2:A1620,RANDARRAY(ROWS(A2:A1620))),SEQUENCE(15))
 
Upvote 0
I think you will need VBA to do this.
Requests like these come up quite a bit, and there are various articles you can find on this topic with a simple Google search, like this one:
 
Upvote 0
Upvote 0
You are welcome.
Quick question

All those examples are for creating a random list and not for picking from a list to create a random list. I am googling. but all I keep getting is the formula I am already using.
 
Upvote 0
VBA is very specific to your data structure. So can you post a sample of your data, and your expected results?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Here's what I'm working with and what I'm doing right now. But every time I click on something it automictically changes my list. This is a partial list out of several thousand.

Cycle Count Generator.xlsx
ABCDEFGHI
1Inventory IDDescriptionType
210EB28-BKKWire Extruded Bonded Black 2" x 8ga x 10' KK (50' Roll)PurchaseCycle Count Picks
310G238115Wire GAW 0.8oz 2-3/8" x 11.5ga x 10' KT (50' Roll)PurchaseTBH8
410G29*120 in 2X9 GALV K-T (50' ROLLS)PurchaseLIFT-SG-24U
510G29KK120 in 2X9 GALV K-K (50' ROLLS)PurchaseBTB250-BK
610V29-BK*120in MARINELINK2X9 BLACK K-T (50' ROLLS)PurchaseDDGS-BL
710V29-BKK120"MARINELINK 2X9BLK K-K (50' ROLLS)PurchaseKEY-ADA-ELB-90R
810V29-EGKWire Extruded Green 2" x 9ga x 10' KK (50' Roll)PurchaseSB3
912EB28-BKKWire Extruded Bonded Black 2" x 8ga x 12' KK (50' Roll)PurchaseIG158-65
1012G29*144 in 2X9 GALV K-T (50' ROLLS)PurchaseALR-WH-R4-R-72
1112V1759-BK144 in MARINELINK 1-3/4X9 BLA (30' ROLLS)Purchase20-310
1212V29-BK144in MARINELINK 2X9 BLACK K-T (50' ROLLS)PurchaseLIFT-HEATER
1315-1321*1-3/8 X 21 SS15 SWPurchaseDDBABOH-BL
1415-1506*1-5/8 X 6 SS15PurchaseLIFT-ZBR
1515-15071-5/8X7 SS15 PIPEPurchaseBP-96-6-125-BRZ
1615-15081-5/8" X 8' SS15 PIPEPurchaseEPS906G50-BK
1715-1521*1-5/8 X 21 SS15 SWPurchase21-SS25106-BK
1815-206*2 X 6 SS15Purchase
1915-2072X7 SS15 PIPEPurchase
2015-208*2 X 8 SS15Purchase
2115-25062-1/2X6 SS15 PIPEPurchase
2215-25072-1/2X7 SS15 PIPEPurchase
2315-2508*2-1/2 X 8 SS15Purchase
2415-25102-1/2"X10' SS-15 PIPEPurchase
2517-15061-5/8 X 6 17GAPurchase
2617-15071-5/8X7 17GAPurchase
2717-15081-5/8X8 17GAPurchase
2817-25062-1/2X6 17GA PIPEPurchase
2917-25072-1/2X7 17GA PIPEPurchase
3017-25082-1/2X8 17GA PIPEPurchase
Data
Cell Formulas
RangeFormula
I3:I17I3=INDEX(SORTBY(A2:A1620,RANDARRAY(ROWS(A2:A1620))),SEQUENCE(15))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,830
Messages
6,181,227
Members
453,025
Latest member
Hannah_Pham93

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