Function colRowToA1

  • Converts a column and row index to A1 notation.

    Parameters

    • CR: number[]

      An array of two numbers where the first number is the column index and the second number is the row index.

    • zeroIndexed: boolean = false

      A boolean indicating whether the column and row indexes are zero-based. Defaults to false.

    Returns string

    The A1 notation of the column and row index.

    Throws

    If the length of the CR array is not 2.

    Throws

    If the row index is not an integer.

    Throws

    If the row index is less than 1.

    Example

    colRowToA1([3, 5]);;
    //=> 'D5'
    colRowToA1([3, 5], true);;
    //=> 'C5'

Generated using TypeDoc