Hi All,
I am currently working on a confidential file (so unfortunately cannot do any kind of file drop) so I will try to explain my issue to the best of my ability.
In cell C3 I have a prefix for a part number, for example: 9831.
In cell D3 I have a suffix for a part number, for example: 0000
In cell E3, I have the numbers combined, using this formula: =C3&TEXT(D3,"0000") To create: 98310000
To create a whole part number in cell F3 I used the formula: =LEFT(E3,4)&"-"&RIGHT(E3,4) To create: 9831-0000
This formula is only in place to put a hyphen in the number as that is what a correct part number looks like.
The suffix of the part number increases in increments of 50. EG: 0000, 0050, 0100, 0150, and so on until, 9950. Once it reaches 9950 that is the end of that prefix of part numbers.
What I then what to do is create a formula which is constantly checking the combined cell (E3) to check to see if that number is unique. So when we get to the end of the suffix numbers eg: 9950, I then want those suffix numbers to start again, (0000) and add 10 to the prefix part of the part number (9841) to create 98410000 and so on.
If the number is not unique I need it to not let that number be imputed.
If you have any questions please ask.
Harvey
I am currently working on a confidential file (so unfortunately cannot do any kind of file drop) so I will try to explain my issue to the best of my ability.
In cell C3 I have a prefix for a part number, for example: 9831.
In cell D3 I have a suffix for a part number, for example: 0000
In cell E3, I have the numbers combined, using this formula: =C3&TEXT(D3,"0000") To create: 98310000
To create a whole part number in cell F3 I used the formula: =LEFT(E3,4)&"-"&RIGHT(E3,4) To create: 9831-0000
This formula is only in place to put a hyphen in the number as that is what a correct part number looks like.
The suffix of the part number increases in increments of 50. EG: 0000, 0050, 0100, 0150, and so on until, 9950. Once it reaches 9950 that is the end of that prefix of part numbers.
What I then what to do is create a formula which is constantly checking the combined cell (E3) to check to see if that number is unique. So when we get to the end of the suffix numbers eg: 9950, I then want those suffix numbers to start again, (0000) and add 10 to the prefix part of the part number (9841) to create 98410000 and so on.
If the number is not unique I need it to not let that number be imputed.
If you have any questions please ask.
Harvey