Ask Your Question
2

What is the process for adding ascending values to columns with duplicates and using them as row names?

asked 2021-09-21 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-10-22 10:00:00 +0000

plato gravatar image

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:

  1. First, make sure that your data is in a table format, with one row for each observation and one column for each variable.

  2. 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.

  3. In the first cell of the new row names column, enter a value of 1.

  4. 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".

  5. Copy the formula down the rest of the column. This will create ascending values for each row, even if there are duplicates.

  6. Once you have your row names column, you can select it and copy it.

  7. 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.

  8. 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.

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

Stats

Asked: 2021-09-21 11:00:00 +0000

Seen: 10 times

Last updated: Oct 22 '21