bobhc
Excel Ninja
Good day All
I have the following in cell A3
“ROLLGUDIE-234-B25R”, this is a reference to a mill cassette spare part, to satisfy the whims of the noideawhatiamdoingsoiwillblamesomeoneelse, management I need to break the part code in to three so I have the following.
I have done some site searching and have come up with this result
=LEFT(A3,SEARCH(“-“,A3)-1…….to start a the “R” and search up to the “-“ and then back one to the “E”.
=MID(A3,SEARCH(“-“,A3)+1,3…….to search up to the “-“ add one character to take up to the “2”, and take the “3” characters
=RIGHT(A3,SEARCH(“-“,A3)+1,4……. to search up to the “-“ add one character to take back up to the “B”, and take the “4” characters.
My question is there are bloody thousands of spare parts in a rolling mill, and we have two mills, I have tried the above on a few cells and to me (which is not saying much) the formulas “seem” to be working. I would appreciate it if someone could give comment before I apply this undeniable work of art to 78 spread sheets.
I have put my thinking after each formula so that you can point out the error of my thoughts.
If some of the spare parts have more than 3 mid or more than 4 right I will end up with a total screwed up mess and one smug looking manager, how to I take account of this, do I just put in a large number say 25 to capture all.
I have the following in cell A3
“ROLLGUDIE-234-B25R”, this is a reference to a mill cassette spare part, to satisfy the whims of the noideawhatiamdoingsoiwillblamesomeoneelse, management I need to break the part code in to three so I have the following.
I have done some site searching and have come up with this result
=LEFT(A3,SEARCH(“-“,A3)-1…….to start a the “R” and search up to the “-“ and then back one to the “E”.
=MID(A3,SEARCH(“-“,A3)+1,3…….to search up to the “-“ add one character to take up to the “2”, and take the “3” characters
=RIGHT(A3,SEARCH(“-“,A3)+1,4……. to search up to the “-“ add one character to take back up to the “B”, and take the “4” characters.
My question is there are bloody thousands of spare parts in a rolling mill, and we have two mills, I have tried the above on a few cells and to me (which is not saying much) the formulas “seem” to be working. I would appreciate it if someone could give comment before I apply this undeniable work of art to 78 spread sheets.
I have put my thinking after each formula so that you can point out the error of my thoughts.
If some of the spare parts have more than 3 mid or more than 4 right I will end up with a total screwed up mess and one smug looking manager, how to I take account of this, do I just put in a large number say 25 to capture all.