Repeat formula through column X times

ladylissa21

New Member
Joined
Feb 23, 2015
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hello! I am using a randomizing formula to identify case numbers to audit - I paste a list of case numbers in column A, then the sheet tells me how many I need to audit, and provides a randomized list.

I would like the result to show me a list of only the number of case numbers that were identified. For example, If I need to review 5 cases out of 10, I want it to give me 5 randomized cases. I know I can just drag the index formula down as needed, but I will be working with thousands of cases and updating the list in column A very frequently. Is there a formula to randomly identify a percentage of the values in A, based on the number in D3?

Alternately, is there a formula I could enter next to a list of case numbers and have it give me a yes or no result on 50% of the selected cases? So, something to enter in column B and drag down, that would just identify 50% rather than having it refer to an alternate cell count?
 

Attachments

  • Index Example.JPG
    Index Example.JPG
    62 KB · Views: 12

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
@ladylissa21 what version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
@ladylissa21 what version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thank you for the tip; I'll do that! I'm on version 2405 of Microsoft 365.
 
Upvote 0
Thanks for that. :)
How about
Excel Formula:
=LET(d,FILTER(A1:A10000,A1:A10000<>""),r,ROUNDUP(ROWS(d)*D2,0),TAKE(SORTBY(d,RANDARRAY(ROWS(d))),r))
 
Upvote 0
Solution
Thanks for that. :)
How about
Excel Formula:
=LET(d,FILTER(A1:A10000,A1:A10000<>""),r,ROUNDUP(ROWS(d)*D2,0),TAKE(SORTBY(d,RANDARRAY(ROWS(d))),r))
That was exactly what I needed, thanks so much!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,125
Members
453,021
Latest member
Justyna P

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