Analytical formulas are established for calculating the maximal and minimal ranks of the matrix-valued function $A + BXC$ when the rank of $X$ is fixed. Some consequences are also given.

Analytical formulas are established for calculating the maximal and minimal ranks of the matrix-valued function $A + BXC$ when the rank of $X$ is fixed. Some consequences are also given.