Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

How to use a formula to show the row # in a cell

I'm exporting a sheet and am trying to show the specific row number for each record.

Do you know if there is a formula (i.e. =row) that will populate a cell in that record row?

Answers

  • Community Champion

    Following for this one. I would love this ability. Far too often the auto number gets messed up. I have to work with sheets where people DELETE records (makes me scream).

    Sherry Fox

    Business Process Analyst 3 | C5ISR Group

    HII | Mission Technologies

    EAP | Mobilizer | Automagician | Superstar | Community Champion

    Original Smartsheet Profile: @Sherry Fox

  • ✭✭✭✭✭
    edited 03/28/24

    Hi @Sherry Fox and @Bert Hoffbeck , I've seen several options for doing this in the Community. The one I use is to go ahead and create an Auto Number column. I'll call it RowID. Then create a second column called [Row #] with the column formula:

    = MATCH(RowID@row,RowID:RowID,0)

    This will return the index (row number) of the RowID that matches the RowID of the current row. If you already have a column that you know will have unique values in it, you can use that instead of RowID and save yourself a column 😀

    Good luck!

    Be well

    If my response was helpful or answered your question please be sure to upvote it, mark it asawesome, or mark it as the accepted answer!

  • ✭✭✭✭

    Scott.

    Thank you - your formula works!

    Bert

  • Community Champion

    @Scott Orsey ,


    That worked great, thanks for the assistance!!!

    Sherry Fox

    Business Process Analyst 3 | C5ISR Group

    HII | Mission Technologies

    EAP | Mobilizer | Automagician | Superstar | Community Champion

    Original Smartsheet Profile: @Sherry Fox

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I'm trying to create a SUMIF formula that looks at the salesperson name in a column and adds up or totals their $ sales in another column. To ultimately show in Dashboard of Totals Sales by Salesperso…
    User: "Allan Z"
    Answered ✓
    9
    2
  • Good day Smartsheet Team, Getting an unparseable error on this formula: =IF($Name@row <> "",(SUMIFS({Expense}, {Period},1, {Type}, OR(@cell = "RES602782", @cell = "RES602497")),"") Trying to pull in a…
    User: "stratman"
    Answered ✓
    15
    2
  • I have a sheet that compiles all the responses from a form. The sheet has multiple start and end date columns, but only one start and one end date cell is NOT blank depending on the activity selected …
    User: "m_anderson"
    Answered ✓
    13
    2