Link to home
Start Free TrialLog in
Avatar of Zack
ZackFlag for Australia

asked on

Extracting Specifc Text from Excel String (In, Out Values)

Heyas,

I copied some data from report and pasted into the excel the lines look something like this.

[Random Alphanumeric Chars of Varying Lengths] In=323 Out=69540 [Random Alphanumeric Chars of Varying Lengths].

What I am looking to do is extract the 'In' and 'Out' values into to separate columns.

I am using the following formula's but it doesn't work at all, all I am getting is #VALUE and I don't understand why.

=REPLACE(REPLACE(A1,FIND(" ",A1,FIND("In=",A1)),LEN(A1),""),1,FIND("In=",A1)+2,"")
=REPLACE(REPLACE(A1,FIND(" ",A1,FIND("Out=",A1)),LEN(A1),""),1,FIND("Out=",A1)+3,"")

Any ideas?
Avatar of Naresh Patel
Naresh Patel
Flag of India image

I am getting values as per your formula 323 & 69540.

I don't seem any fault.

thanks
just one try - change format to Text & then apply formula for that range.

Thanks
Avatar of Joe Howard
Are  there are characters after Out=69540?
ASKER CERTIFIED SOLUTION
Avatar of Glenn Ray
Glenn Ray
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stevejacob68
stevejacob68

Hi,
Try this one with number format, if it is working, then change the text format.
Could you provide a sample file with some of the lines you pasted?  Maybe we can replicate the issue and resolve.

-Glenn
Avatar of Zack

ASKER

Cheers that was it, I had hyperlink into source column and that was causing the error.