Text list divided into columns

ACMjocelyn

New Member
Joined
Sep 25, 2019
Messages
1
I am trying to find a formula or VBA code

Here is my problem:
We are conducting an external audit. There are agencies withdifferent number of employee files this is not a fixed number. I input a formulathat gives me the sample size based on the total population(already done). Sowhat I am having trouble with is pasting that list of employees andhighlighting the sample size that my formula has calculated.
For example I paste all 250 names on column B but my samplesize is only 60 I need Column F to list only the 60 random names from the list.I have done this with the formula below but some cells will have a 0? And I canÂ’tseem to restricted it to only the sample size of 60 in this case or whatever itmay be for other agencies.
=INDEX($B:$B,RANDBETWEEN(1,COUNTA($B:$B)))

For the separate quarters (4) columns G-J I have came upwith this formula :

=INDEX($F$17:$F$200,ROW(G16)+(($D$15/4)*(COLUMNS($G$1:G$1)-1)))
$D$15= the calculatedsample size (not fixed)
But itÂ’s not dividing evenly and itÂ’s give me zeros (0).

Helpppp please!!


 
Last edited by a moderator:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,223,753
Messages
6,174,307
Members
452,554
Latest member
Louis1225

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