Hello,
Need a function to extract the third part from the below strings: (sample worksheet attached)
DOC. NO. RESULT
LMH-B-05.1.1-A-01201-00 05.1.1
LMH-B-08-A-01301-00 08
LMH-B-04.2-A-01402-00 04.2
LMH-B-56.03-A-01403-00 56.03
Thank u.
Hello,
Need a function to extract the third part from the below strings: (sample worksheet attached)
DOC. NO. RESULT
LMH-B-05.1.1-A-01201-00 05.1.1
LMH-B-08-A-01301-00 08
LMH-B-04.2-A-01402-00 04.2
LMH-B-56.03-A-01403-00 56.03
Thank u.
Last edited by sharathnarayanan; 12-26-2023 at 02:21 AM.
Try
=RIGHT(RC[-1],LEN(RC[-2])-SEARCH("-",RC[-2]))
Last edited by lalit387; 12-26-2023 at 03:24 AM.
Not working.
Last edited by AliGW; 12-26-2023 at 02:44 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.
Try:
=LEFT(TRIM(MID(SUBSTITUTE(A2,"-",REPT(" ",99),2),99,99)),FIND("-",TRIM(MID(SUBSTITUTE(A2,"-",REPT(" ",99),2),99,99)))-1)
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Perfect.
Thank you.
Last edited by AliGW; 12-26-2023 at 03:01 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.
Or try in B2 and copy down:Formula:Please Login or Register to view this content.
Glad to have helped.
If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.
Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
Administrative Note re. Forum Guideline #2:
Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter and rarely necessary.
If you are responding out of sequence, it is usually enough just to mention the helper's user name (e.g @AliGW).
If you do need to quote, limit the quoted section just to the section to which you wish to draw your helper's attention or a direct question to which you wish to respond.
For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.
Thank u so much HansDouwe & AliGW
You are Welcome!
Thanks for the feedback and rep .
Glad to have helped.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks