I am looking for special a Excel formula, to extract a string out of a cell.
This string (alphanumeric code) comes in two forms, which always starts with the letter S.
It is either 10 or 11 characters long.
Here is an example; SA9010001, SA9010001W, SX0512001, SX0512001L
The cells could contain a sentence. ie. [This code SA9010001 is unavailable.]
Wayne
if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here
If you have a solution to your thread - Please mark your thread solved do the following: >
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
We posted at the same time, and I did not see your sample data/results. You have examples where a string begins with S but you show a result of "none". In spite of your example of a sentence, your data shows cells with only the number, and my formula does not work with those. All of these requirements are difficult to do with formulas. I would suggest the macro approach.
Also, an image attachment has very little value. Just attach the Excel file. It's easier than taking a screenshot first and then attaching that.
It will be much easier to understand your problem if you provide your file. This allows us to see and experiment with your data, layout, formulas, code, and possibly attach a file with a completed solution. If you are looking for formulas to produce a desired result, it helps if you create a mock-up of what you want the result to look like. Otherwise we would have to build something from scratch, trying to guess what you want it to look like.
The paper clip icon does not work for attachments. Instead, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
Bookmarks