Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4890 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a part number that needs to be broken down to populate other fields. For instance the part number TE5A needs to broken down where "T" represents the manufacturer, "E" is the row the part is in and "5A" is the bin number. The problem I'm having is when we run into a part number such as TBB15A where "BB" is the row and "15A" is the bin number. Any ideas on how I can break these down?

Posted

Try:

manufacturer:

Left ( part number ; 1 )

row:

Let(

r = Middle ( part number ; 2 ; 2 ) ;

Filter ( r ; KanjiNumeral ( r ) )

)

bin number:

Substitute ( part number ; manufacturer & row ; "" )

Posted

I made this argument: if manufacturer has always a letter and row has always one (or two) letters ( IOW they haven't any digit ), then that calculation should work.

Posted

the digit followed by a letter represent the bin. The digit could be between 1 & 99

Edit: oh, only now I understand you... you think that the bin number could have more than a single letter!

Yes, in that case the calculation may fail and it will better to use something like:

Let(

l = Length ( part number ) - Length ( row ) - 1 ;

Right ( part number ; l )

)

or:

Replace ( part number ; 1 ; Length ( row ) + 1 ; "" )

Posted

There is one more thing I didn't realize. My parts are categorized as either bronze or aluminum. This calculaion works great if the category is bronze. If my category is aluminum my part number will look like TPM1 2 where T is still the manufacturer but PM1 is now my row and 2 is my bin. there is a space between PM1 and 2. My rows should always be 3 characters but my bin can be 2 digits.

Posted

Try:

manufacturer:

Left ( part number ; 1 )

row:

Let([

A = Middle ( part number ; 2 ; 3 ) ;

B = Middle ( part number ; 2 ; 2 )

];

Case(

category = "Aluminium" ; A ;

category = "Bronze" ; Filter ( B ; KanjiNumeral ( B ) )

)

)

bin number:

Trim ( Replace ( part number ; 1 ; Length ( row ) + 1 ; "" ) )

This topic is 4890 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.