Hello guys, trying to figure out how to go from this:
To this:
I essentially want Excel to assign a number value to each different item starting with 1.
Note: The amount of items changes each time.
Book3 | ||||
---|---|---|---|---|
A | B | |||
1 | Apple | |||
2 | Apple | |||
3 | Apple | |||
4 | Apple | |||
5 | Apple | |||
6 | Orange | |||
7 | Orange | |||
8 | Orange | |||
9 | Orange | |||
10 | Mango | |||
11 | Mango | |||
12 | Mango | |||
13 | Mango | |||
14 | Mango | |||
15 | Mango | |||
16 | Mango | |||
17 | Mango | |||
18 | Mango | |||
19 | Mango | |||
20 | Grape | |||
21 | Grape | |||
22 | Grape | |||
23 | Grape | |||
24 | Grape | |||
25 | Grape | |||
Sheet1 |
To this:
Book3 | ||||
---|---|---|---|---|
A | B | |||
1 | Apple | 1 | ||
2 | Apple | 1 | ||
3 | Apple | 1 | ||
4 | Apple | 1 | ||
5 | Apple | 1 | ||
6 | Orange | 2 | ||
7 | Orange | 2 | ||
8 | Orange | 2 | ||
9 | Orange | 2 | ||
10 | Mango | 3 | ||
11 | Mango | 3 | ||
12 | Mango | 3 | ||
13 | Mango | 3 | ||
14 | Mango | 3 | ||
15 | Mango | 3 | ||
16 | Mango | 3 | ||
17 | Mango | 3 | ||
18 | Mango | 3 | ||
19 | Mango | 3 | ||
20 | Grape | 4 | ||
21 | Grape | 4 | ||
22 | Grape | 4 | ||
23 | Grape | 4 | ||
24 | Grape | 4 | ||
25 | Grape | 4 | ||
26 | ||||
Sheet1 |
I essentially want Excel to assign a number value to each different item starting with 1.
Note: The amount of items changes each time.