ROW

    Lookup & Reference

    Returns the row number of a reference.

    Translations
    EnglishROW
    FrenchLIGNE
    SpanishFILA
    GermanZEILE
    ItalianRIF.RIGA
    PortugueseLIN
    DutchRIJ
    PolishWIERSZ
    RussianСТРОКА
    TurkishSATIR
    CzechŘÁDEK
    HungarianSOR
    SwedishRAD
    DanishRÆKKE
    FinnishRIVI
    Syntax
    ROW([reference])

    Arguments

    • referenceThe cell to get the row number of(optional)
    Examples
    =ROW()
    Current row

    Returns row number of the formula

    =ROW(A5)
    5

    Returns 5 for cell A5

    =ROW()-1
    Row minus 1

    Useful for numbered lists

    Tips & Best Practices
    • Without argument, returns current row
    • Great for creating sequential numbers
    • Use in conditional formatting for alternating rows
    Common Mistakes
    • Confusing ROW (which returns a row number) with ROWS (which counts how many rows are in a range) - the names are similar but they answer completely different questions
    • Using ROW() without an argument inside a formula that then gets copied to a different starting row, forgetting that it always reflects the current cell's row, which changes on every copy
    • Relying on ROW(reference) to auto-number a list, then having the numbering break after rows get inserted or deleted, since ROW recalculates based on new positions automatically - not always the desired behavior
    Related Functions
    ROWSCounts how many rows are in a range, rather than returning a single row's number.
    COLUMNDoes the same job as ROW but for columns instead of rows.
    INDEXOften paired with ROW to build dynamic references based on a row's position.
    Frequently Asked Questions

    What's the difference between ROW and ROWS?

    ROW(reference) returns the row number of a single cell or the first row of a range. ROWS(range) returns the count of how many rows are in a range. One gives a position, the other gives a count.

    How do I number a list automatically using ROW?

    ROW()-ROW($A$1)+1 in the first row of your list, copied down, gives 1, 2, 3... regardless of which actual row the list starts on.

    Does ROW() change when I copy the formula to a different row?

    Yes, ROW() without an argument always reflects the row of the cell containing the formula itself, so it updates with every copy.

    Need to translate a formula using ROW?

    Use our translator to convert your complete formula