CreateConstantMatrix (
Rate this function: Average rating: 4.3 (12 votes) Discuss this Custom Function
Ronald W. Satz, Transpower Corporation
http://www.transpowercorp.com
Creates a matrix of size (Rows, Columns) with a ConstantValue for each element (each element is followed by a semi-colon).
Sample Input:
( "" ; 2 ; 8 ; 0 ; 0 ; 5 )
|
|
Sample Output:
5; 5; 5; 5; 5; 5; 5; 5;
5; 5; 5; 5; 5; 5; 5; 5; |
|
Description:
This function is used in preparation for Transpower Corporation's SetCell custom function, also listed here on Brian Dunning's site. Once CreateConstantMatrix is run (which sets up the default values of the elements), SetCell can be run to populate the matrix with the non-default values.
The CreateConstantMatrix should be called with a null value for the matrix name (" ") and with 0 values for the row and column counters.
In the sample input, the matrix is to have 2 rows with 8 columns, all having the value of 5. The SetCell custom function can then set each element to its proper value. Note: The CreateConstantMatrix does NOT add a paragraph return at the end, so it's necessary to delete the "1 + " in the calculation for tot_rows in SetCell!
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
list.intersect (listA; listB) |
| |
(Mon, May 14, 12:43pm) |
| 2. |
WeekStart ( weekOfYear ; year ) |
| |
(Sat, May 12, 8:42am) |
| 3. |
PercentToWords (FIELD) |
| |
(Thu, May 10, 3:16pm) |
| 4. |
PercentToText (FIELD) |
| |
(Thu, May 10, 2:37pm) |
| 5. |
StripReserved( text ) |
| |
(Wed, May 02, 6:05pm) |
| 6. |
ListBaseTables |
| |
(Wed, May 02, 3:48pm) |
| 7. |
ValidEmail( theEmail ) |
| |
(Wed, May 02, 7:27am) |
| 8. |
UltraDate (Text; LongDate_or_DateDigit) |
| |
(Wed, May 02, 6:07am) |
 |
|