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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,214,411
Messages
6,119,346
Members
448,888
Latest member
Arle8907

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