Solved

Excel Formula to Pull Data from Text String

Posted on 2016-08-03
7
75 Views
Last Modified: 2016-08-03
Hello -

Based on the attached example I am looking for a formula that will pull the text between the 3rd and 4th "~" in the string.  So the result from cell A1 would be alpha,  Result from cell A4 would be ZT, etc.  All results can be placed in column B.

Thanks!
0
Comment
Question by:Escanaba
7 Comments
 
LVL 1

Author Comment

by:Escanaba
ID: 41740865
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 41740889
=TRIM(LEFT(SUBSTITUTE(REPLACE(A1,1,FIND("<",SUBSTITUTE(A1,"~","<",3)),""),"~",REPT(" ",9999)),100))
0
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41740948
Please try this......

In B1
=TRIM(MID(SUBSTITUTE(A1,"~",REPT(" ",LEN(A1))),LEN(A1)*3,LEN(A1)))

Open in new window

and then copy it down.
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 41740964
Hi,

pls try

=TRIM(MID(SUBSTITUTE(A1,"~",REPT(" ",999)),3*999,999))

Open in new window

Regards
0
 
LVL 7

Expert Comment

by:tomfarrar
ID: 41740971
See attached.  Use the Text To Column function.  Instructions in the spreadsheet attached.
EE-Example--1-.xlsx
0
 
LVL 1

Author Closing Comment

by:Escanaba
ID: 41741271
Thanks!
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 41741572
Thanks for the points but I do wonder why you did not consider the shorter formulas.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question