Assuming that you are working with a spreadsheet program like Excel, and you want to add ascending values to a column that has duplicates, and use them as row names, here's the process:
First, make sure that your data is in a table format, with one row for each observation and one column for each variable.
Create a new column to the left of the column where you want to add the ascending values. This will be your new row names column.
In the first cell of the new row names column, enter a value of 1.
In the cell below it, enter a formula that refers to the cell above it and adds 1. For example, if your first value is in cell A2, your formula would be "=A2+1".
Copy the formula down the rest of the column. This will create ascending values for each row, even if there are duplicates.
Once you have your row names column, you can select it and copy it.
Go to the row headers of your table (the numbers on the left-hand side) and right-click. Select "Insert copied cells" to insert the new row names.
Your row names should now be updated with ascending values, even if there were duplicates in the original column. You can now delete the original column if you no longer need it.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-09-21 11:00:00 +0000
Seen: 10 times
Last updated: Oct 22 '21
What is the method to obtain the names of the columns through DBD::CSV?
If there are empty subfolders with identical names, can they be deleted?
How can I modify several column names within a single migration using Laravel 5.0?
How can nested stack navigator permit the use of the same screen names and cycle?
How can S4 Class be vectorized in R?
How can one ensure the container names remain uniform when using docker?