Microsoft
Software
Hardware
Network
Question : Find string in Excel cell between two characters
I am working on a large spreadsheet that has an ID column and a comments column. The comments column contains a value in this format "|X123|" with the pipe symbols designating that the characters within are an ID. Since this makes absolutely no sense, I added an ID column and am trying to write a formula that will pull "X123" and place it in the ID cell. I've gotten as far as:
=MID(A1,FIND("|",A1)+1,4)
which technically gets me "X123" but sometimes the string is more than 4 characters. Obviously I need to extend the formula so that it looks for the first pipe symbol as the starting point and then finds the second pipe symbol and gives me the number of characters I need.
Answer : Find string in Excel cell between two characters
Try
=REPLACE(LEFT(A1,FIND("
|",A1,FIND
("|",A1)+1
)-1),1,FIN
D("|",A1),
"")
regards
, barry
Random Solutions
Firefox css border on inside of div when embedding Flash with SWFObject, why?
Auto Send Excel as Email Attachment
Congratulations to new Excel Genius: teylyn
how to install and configure new GPFS cluster in AIX LPAR Workload environement?
Microsoft PKI Design
SQL 2005 SQL Syntax Help Needed
do you need sysprep with Symantec Ghost Solution Suite 2.5?
Free software to scan, crop 4 areas, save to .tif file with transparent background?
ODBC connect to ORACLE 11G using Redhat Linux 5.4
How to print the contents of a listbox