Pick random cells

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,080
Office Version
365
Platform
Windows
Yes the counta is to return the last data. Are there any columns that are complete? If so use them. If not you could use an array formula like this one:

=RANDBETWEEN(1,MAX(ROW(C1:C200000)*(C1:C200000<>"")))
 

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Eric Golf

Active Member
Joined
Dec 19, 2007
Messages
324
Hi,

... I'm Dutch.
ASELECTTUSSEN(1,AANTALC($C$1:$C$160000))
If European should you not use ";" between parameters rather than ","?

e.g.
Code:
ASELECTTUSSEN(1[B];[/B]AANTALC($C$1:$C$160000))
Eric.
 
Last edited:

coldsteel404

New Member
Joined
Nov 12, 2014
Messages
16
ASELECTTUSSEN(1;AANTALC($C$1:$C$160000))Well, this time I didn't get an error, but I got #name in every cell so not quite there yet :(

Also tried the formula with just 16 numbers ASELECTTUSSEN(1;AANTALC($C$1:$C$16)) since I was certrain the frist 16 are complete and it still didn't work
 

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,080
Office Version
365
Platform
Windows
Does this help?

Als deze functie niet beschikbaar is en de fout #NAAM? als resultaat wordt gegeven, moet u de invoegtoepassing Analysis ToolPak installeren en laden.
 

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,080
Office Version
365
Platform
Windows
The analysis toolpak is in file-options-addins. You need it enabled I presume that was saying in dutch.
 

Watch MrExcel Video

Forum statistics

Threads
1,102,869
Messages
5,489,376
Members
407,686
Latest member
Chuck1960

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top