Auto-populate sequence

eddiegb1

New Member
Joined
Jan 31, 2017
Messages
9
Hi,

Is there a way to automate the process below?

Auto-populate a column with a sequence number using another column as a lookup.

For example, in the data shown below, auto-populate column C (SH#) with a numeric value in a sequence using the contents in column B (PSharing).
And if the values in B are the same - the numeric value entered in column C will be the same/repeated.

Note:
Rows go up to 20000+. So doing this manually is time-consuming.

ABC
ItemPSharingSH#
1AA21
2AA21
3AA32
4AA32
5AA32
6AA43
7AA43
8AA43
9AA43
10AA54
11AA54
12AA54
13AA54
14AA54
15AB25
16AB25
17AB3
18AB3
19AB3
20AB4
21AB4
22AB4
23AB4
24AB5
25AB5
26AB5
27AB5
28AB5
29AC2
30AC2
31AC3
32AC3
33AC3
34AC4
35AC4
36AC4
37AC4

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>


Thanks,
Eddie
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
In a similar vein, in C2 copied down

=N(C1)+(B2<>B1)
 
Upvote 0

Forum statistics

Threads
1,214,120
Messages
6,117,845
Members
448,782
Latest member
lepaulek

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top