Excel function to cut data between to fixed character strings -


i have following text in excel cell:

sampleid: s-2016-011451 submitterid: eirossme sample name: t1 btms - 6/26/16 10:00 pm lot nbr: productid:

i need cut data reads as:

t1 btms 6/26/16 22:00

i can format date using text($cell,"mm/dd/yy hh:mm") can't =mid(...) truncate data between "name:" , " - ".

enter image description here

1st: =mid(b2;63;26) 2nd: =mid(b5;1;8) 3rd: =mid(b5;11;18) 4th: =concatenate(b7;b8) 

if want cut between name: , -, use:

=find("name: ";b2) =find(" -";b2) 

and then:

=mid(b2, find("name: ";b2)+5;find(" -";b2)-find("name: ";b2)-5) 

i.e.:

enter image description here


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -