fingermouse
Board Regular
- Joined
- Dec 13, 2013
- Messages
- 117
As per the question, i have two columns, one entitled 'ref no' and another entitled 'qtr'.
There are about 400 rows in the sheet, with multiple ref numbers.
What I want to do is revert to a value of 'Q1' in the 'qtr' column every time the 'ref no' column value changes. (text in red)
How can this be done?
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Ref no[/TD]
[TD]Qtr[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q2[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q3[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q4[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q2[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q3[/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]Q2[/TD]
[/TR]
</tbody>[/TABLE]
There are about 400 rows in the sheet, with multiple ref numbers.
What I want to do is revert to a value of 'Q1' in the 'qtr' column every time the 'ref no' column value changes. (text in red)
How can this be done?
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Ref no[/TD]
[TD]Qtr[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q2[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q3[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q4[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q2[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Q3[/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]Q2[/TD]
[/TR]
</tbody>[/TABLE]