Navigation: FXLV4SpeedTools > Array Sorting Functions >

VSORTC – Dynamic text collating Sort of a vertical range or array

 

 

 

VSORTC – Dynamic text collating Sort of a vertical range or array

This function sorts a vertical array or a range containing one or more columns. The sort is NOT case-sensitive and is done using a locale-based text collating sequence which respects national language characters. The output sequence will be the same as a non-case-sensitive EXCEL SORT.

VSORTC is a non-volatile multi-threaded multi-cell array function.

VSORTC Syntax

VSORTC(theInputData, SortColumn1, SortColumn2, … SortColumn15) )

The first parameter is required, all other parameters are optional.
The output from VSORTC will be a vertical sorted array. The number of rows sorted and output will be the smaller of the number of rows in the input data and the number of rows in the used range. The number of columns will be the number of columns in the input data.

TheInputData (required)

The data to be sorted, given as a vertical array of constants or a calculated range or a range. The range or array can contain as many columns as required.

SortColumn1 … SortColumn15 (optional)

Gives the index column number(s) of the columns to be used as sort keys. Up to 15 sort keys can be specified.
Positive column numbers will be sorted ascending and negative column numbers will be sorted descending. You can have both positive and negative numbers in the same function call. 1 denotes the first column in the input data. If all Sort Column parameters are omitted all columns in the input data will be used as ascending sort keys.

VSORTC Examples

VSORTC(A:C) will sort  column A to C  ascending, using the minimum of the number of rows in the used range and the number of rows in the multi-cell array formula that contains VSORTC. If the formula containing VSORTC is only entered into a single cell then VSORTC will return the number of rows in the used range.

VSORTC ({4,3,1,2}) returns a single row with 4 columns containing 4,3,1,2 (the input data is a single row).

VSORTC({4;3;1;2}) returns a column with 4 rows containing 1,2,3,4

VSORTC(A1:C100000,1,-2) will return 100000 rows by 3 columns sorted ascending on column A and descending on column B.

 

 

 

Copyright © 2023 Decision Models Ltd