How to: Generate next sequential number after two dropdown cell options?

Thall_WA

New Member
Joined
Nov 3, 2016
Messages
1
Hi,

I am creating a master register for internal business documents, each shall have their own unique document number.
I have a dropdown for cells under DIV and DOC, with list parameters on separate datasheet. I have a partial formula within DOCUMENT NUMBER column of =($A2&"-"&$B2&"-"&$C2), which combines DIV selection and DOC selection and the SEQ sequential number (separate with "-"). But I need the sequential number generated, based off how many times the combination of DIV+DOC has been selected previously. I'm hoping this will be enough, but will have a failsafe of conditional duplicate formatting on just in case.

Looks like this:


ABCD
1DIVDOCSEQDOCUMENT NUMBER
2GROSOW00001GOW-SOW-00001
3GROSOW00002GOW-SOW-00002

<tbody>
</tbody>


Am I on the right track, or is there alternate/easier solution?

Thanks for your help
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
DIVDOCSEQDOCUMENT NUMBER
GROSOW1GOW-SOW-00001
GROSOW2GOW-SOW-00002
GOSLOW1
GOSLOW2
GROSOW3
GROSOW4
GOSLOW3
GOSLOW4
SOSLOW1
FORMULA GIVING THE 1 UNDERNEATH SEQ
=SUMPRODUCT(($A$2:A2=A2)*($B$2:B2=B2))
and just drag down
format as 00000 obviously

<colgroup><col span="3"><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0
To generate the sequential number, I would create an aux column with DIV & DOC, and then on column D use =countif($C$1:$C1,C1).

This way, the first combination will generate a 1, the second time it appears a 2 and so on.

Then DIV & DOC & Text(D1,"00000").

Hope it helps
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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