Add data to a column based on other column data

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

This is what I currently have:

Number Date_tested
5090002 1-Feb-01
5090002 1-May-01
5090002 15-Apr-03
5090034 1-Sep-00
5090034 15-May-01
5090034 15-Apr-03

I need to add the text "Test-1" "Test-2" etc based on the number in the
first column, in other words, when the number in the first column
changes I need the added text to start over at "Test-1"

Number Date_tested Test Number
5090002 1-Feb-01 Test-1
5090002 1-May-01 Test-2
5090002 15-Apr-03 Test-3
5090034 1-Sep-00 Test-1
5090034 15-May-01 Test-2
5090034 15-Apr-03 Test-3

Any ideas?

Thanks!!!
Fred
 
Fred said:
This is what I currently have:

Number Date_tested
5090002 1-Feb-01
5090002 1-May-01
5090002 15-Apr-03
5090034 1-Sep-00
5090034 15-May-01
5090034 15-Apr-03

I need to add the text "Test-1" "Test-2" etc based on the number in the
first column, in other words, when the number in the first column
changes I need the added text to start over at "Test-1"

Number Date_tested Test Number
5090002 1-Feb-01 Test-1
5090002 1-May-01 Test-2
5090002 15-Apr-03 Test-3
5090034 1-Sep-00 Test-1
5090034 15-May-01 Test-2
5090034 15-Apr-03 Test-3

Any ideas?

Thanks!!!
Fred

To claify... there will be different number of tests, so some will have
Test-1 to Test-3 some will have Test-1 to Test-4.... or Test-1 - Test-6
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top