• Resolved maharishi

    (@maharishi)


    I want to add new rows to a table (see the link). How do I renumber the column? Sorry, this is a banal question but I couldn’t find the answer in any of the documentation.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Do you mean the “Position” column? One nice way would be to add the formula

    =ROW+1
    

    into all cells in that column. This will then automatically print the correct number.

    Regards,
    Tobias

    Thread Starter maharishi

    (@maharishi)

    Hi Tobias,

    Sorry, I don’t think I was clear enough. I want to insert new rows, then renumber all the rows in the table.

    Also, where do I put the formula?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no, I think I understood what you mean ??
    There’s however no static way to renumber the rows in that column. You will have to use the formula. Just replace every number in column 1 with that

    =ROW+1
    

    formula and you will see that the numbers will reappear correctly when viewing the table.
    This way, you can reorder or insert rows without having to manually adjust anything.

    Regards,
    Tobias

    Thread Starter maharishi

    (@maharishi)

    Thanks Tobias, I’ll try that.

    I think I did it before by exporting the table into Excel and renumbering things there. Then I imported it back into TablePress. Unfortunately, when I export to Excel all my hyperlinks are destroyed.

    Thread Starter maharishi

    (@maharishi)

    Sorry to be a nuisance. I did what you said and now I have them all renumbered. Unfortunately, where I have added the new rows, everything has moved across one column to the left, so for those rows my ‘rating’ column is now in the place of the ‘title’ column and the ‘season’ column is now in the place of the ‘rating’ column. The numbers that now appear in the ‘title’ column are hyperlinks, and they work. You will see this in rows 9, 24, 41 and on through the table.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I can’t reproduce that. I do see that the “Season” column is empty for some rows, but nothing has shifted to the left for me…

    Regards,
    Tobias

    Thread Starter maharishi

    (@maharishi)

    I fixed it. I had to add this to the html for the title links in the new rows: target="_parent" rel="noopener noreferrer"

    No idea why that worked, but it did!

    Thank you.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘TablePress renumbering columns’ is closed to new replies.