Reputation: 21
Please check the eg.
row - value
1 - test1
2 - test1
3 - test2
4 - test2
5 - test3
6 - test3
Like this automatically have to increment in MS-Excel without using any scripts
Please give me a suggestion
Thanks in advance
Upvotes: 1
Views: 4039
Reputation: 8772
This isn't exactly what you were looking for, and it requires a bit of a workaround, but it worked for me on a known quantity of rows.
It relies on Excel's built-in ability to figure out a fill series.
First, you set up your data like this instead. We skipped a row for each incrementing data point.
Then you highlight the data and include the row below it, like this:
Now, since you are using two rows for each data point, drag the fill handle down to an even-numbered row:
Now we use the well-known technique for filling in blanks:
=
, ↑, Ctrl+Enter (equals sign, up arrow, Ctrl+Enter) Upvotes: 1
Reputation: 32760
You can use a combination of the row number (ROW()
) and rounding to get your desired result:
="test" & ROUND(ROW() / 2, 0)
Upvotes: 10