Excel 2013 to extract text in one cell
Closed
                                    
                        Fiddler123                    
                                    -
                            Sep  4, 2019 at 12:01 PM
                        
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Contributor Last seen December 27, 2022 - Sep 5, 2019 at 11:40 AM
        TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Contributor Last seen December 27, 2022 - Sep 5, 2019 at 11:40 AM
        Related:         
- Excel 2013 to extract text in one cell
 - Office 2013 free download - Download - Office suites
 - Office 2013 requirements - Guide
 - Excel mod apk for pc - Download - Spreadsheets
 - Excel cell color formula - Guide
 - Vlc extract audio - Guide
 
1 response
                
        
                    TrowaD
    
        
                    Posts
            
                
            2921
                
                            Registration date
            Sunday September 12, 2010
                            Status
            Contributor
                            Last seen
            December 27, 2022
            
            
                    555
    
    
                    
Sep 5, 2019 at 11:40 AM
    Sep 5, 2019 at 11:40 AM
                        
                            
                    Hi Lucie,
You do that by looking at patterns in your strings of data. In your case "Unit #" is found between the first "," and "-". Then use the FIND function to determine the position of those characters. Once you know that, use the MID function to extract the "Unit #" from the data string. Putting that all together and you will get:
=MID(A1,FIND(",",A1)+2,FIND("-",A1)-FIND(",",A1)-3)
 
Best regards,
Trowa
            You do that by looking at patterns in your strings of data. In your case "Unit #" is found between the first "," and "-". Then use the FIND function to determine the position of those characters. Once you know that, use the MID function to extract the "Unit #" from the data string. Putting that all together and you will get:
=MID(A1,FIND(",",A1)+2,FIND("-",A1)-FIND(",",A1)-3)
Best regards,
Trowa