Help with sequential numbering

quickflip

New Member
Joined
Jul 27, 2021
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
Hi there everyone

I'm new here and come here to find some help about a problem that seems easy to solve but i can't do it. It has 2 parts this problem

The first one is i need a solution to automatically fill in the serial number column (column C) sequentialy and acordding to column A (example given). I tried a solution with count ifs but didnt work as expected

The other one is a solution to the ID. I want to create a highlight formula that highlights only the Unique ID's values that are doubled on that column and makes an exception on the "NOT FOUND" ones (since there are a lot of them because they come from a VLOOKUP)

Kind Regards

111.xlsx
ABCD
4VARIANTProd. IDSERIAL NUMBERID
5A1SA-1Unique ID
6B2SB-1Unique ID
7A3SA-2Unique ID
8A4SA-3Unique ID
9C5SC-1Unique ID
10C6SC-2Unique ID
11C7SC-3Unique ID
12C8SC-4NOT FOUND
13D9SD-1Unique ID
14A10SA-4Unique ID
15D11SD-2NOT FOUND
Sheet1
 
Hi there

I think that that might work, ill try it now

Regarding the other question, ill make an example

Kind regards
OK, I understand that you do not want to include any of the "NOT FOUND" records, but please explain why the first two records are highlighted, and all the other ones marked "Unique ID" are not.

Please walk me through the actual details of those examples explaining exactly why those particular ones are highlighted.

Remember, while this problem is very familiar to you, all that we know about it is what you share with us.
So we are depending on you to fill in all the details we need to know to help you come up with a solution that does what you want.
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Ok so I tried your solution with a twist and it's not work the way is intented. I only want to generate that serial if a cell has a value (OK), otherwise dont do that calc (value = NOK).

111.xlsx
ABCDEF
1DataVARIANTProd. IDOK/NOKSERIAL NUMBERID
212/01/20213333331NOKNOKUnique ID
312/01/20212222222OKSB-1Unique ID
412/01/20211111113OKSA-1Unique ID
512/01/20211111114NOKNOKUnique ID
612/01/20213333335OKSC-2Unique ID
712/01/20213333336OKSC-3Unique ID
812/01/20213333337OKSC-4Unique ID
913/01/20213333338OKSC-5NOT FOUND
1013/01/20214444449OKSD-1Unique ID
1113/01/202111111110OKSA-3Unique ID
1213/01/202144444411OKSD-2NOT FOUND
1313/01/202111111111OKSA-4NOT FOUND
1413/01/202111OK#N/ANOT FOUND
1513/01/202111OK#N/ANOT FOUND
1613/01/202111OK#N/ANOT FOUND
1713/01/202111OK#N/ANOT FOUND
1813/01/202111OK#N/ANOT FOUND
1913/01/202111OK#N/ANOT FOUND
2013/01/202111OK#N/ANOT FOUND
Sheet1
Cell Formulas
RangeFormula
E2:E20E2=IF(D2="OK",("S" & LOOKUP(B2,{111111;222222;333333;444444},{"A";"B";"C";"D"}) & "-" & COUNTIF($B$2:$B2,$B2)),"NOK")
 
Upvote 0
OK, I understand that you do not want to include any of the "NOT FOUND" records, but please explain why the first two records are highlighted, and all the other ones marked "Unique ID" are not.

Please walk me through the actual details of those examples explaining exactly why those particular ones are highlighted.

Remember, while this problem is very familiar to you, all that we know about it is what you share with us.
So we are depending on you to fill in all the details we need to know to help you come up with a solution that does what you want.
That was to exemplify that it found 2 equal unique ID's
 
Upvote 0
Ok so I tried your solution with a twist and it's not work the way is intented. I only want to generate that serial if a cell has a value (OK), otherwise dont do that calc (value = NOK).
I don't know how to help you if you keep introducing new details that you failed to mention in your previous posts.
It is very frustrating for us, feeling like we are caught in a classic "Catch 22" situation (every time we give you an answer, you change the criteria)!

When you post question here, you want to first think about it completely and post your questions clearly.
Do not try to "oversimplify" the question for the sake of posting it here.
Otherwise, you may get replies that correctly answer the question you posted here, but do not really work on your real data or situation (because you misrepresented it here).
 
Upvote 0
I don't know how to help you if you keep introducing new details that you failed to mention in your previous posts.
It is very frustrating for us, feeling like we are caught in a classic "Catch 22" situation (every time we give you an answer, you change the criteria)!

When you post question here, you want to first think about it completely and post your questions clearly.
Do not try to "oversimplify" the question for the sake of posting it here.
Otherwise, you may get replies that correctly answer the question you posted here, but do not really work on your real data or situation (because you misrepresented it here).
Hi there

Sorry to hear that from you

ill try to explain the best I can

I provided a sample that shows what i i'm trying to do

I want to create a button that runs a macro that does the following job
IF the item (displayed in this case with column B which only accepts 4 types (24043061,24043065,24043072 and 24043233) is Ready to Ship (OK), then create a customer serial number, being with that key in mind
24043061 - SA
24043065 - SB
24043072 - SC
24043233 - SD

Imagine the following scenario:
I create a part with variant 24043061 (named part A) that passes all those test and gets the OK to ship - gets the serial number SA-001
On the next row or some rows after that a part (named B) with variant 24043061 its not ready to ship. So, it will not have a serial number created to it.
On another row after another part (being part C) that is the same variant that the named part B (variant 24043061) gets the OK to ship. So i want to the serial number to it, keeping in mind that the last OK to ship part was the part A so this part C gets the serial number SA-002

Hope i have been clear enough

Kind regards

Sample.jpg
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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