Extract Data from between 2 characters

oscarneill

New Member
Joined
Oct 17, 2014
Messages
7
Hi guys i have added a link to a spreadsheet. It has 2 columns in it. I want to extract particular information from within the load of code in that field. The information i want to extract is in the second link.



Could you put the data between those characters and put it in cell C2

Spreadsheet Link: https://www.dropbox.com/s/rrt6ehc27ih7nsn/Data.xlsx?dl=0
Data to extract from Cell: https://www.dropbox.com/s/az46kcj5igas3zm/data to extract.txt?dl=0

Thanks for the help hope you come up with a formula for this
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Why not simply post a small before and after sample directly to the forum....rather than posters having to download / open 2 sites
 
Upvote 0
its HTML code so everytime i put it into the forum it removed the code and formatted it. Thats why i have done it this way.
 
Upvote 0
something like this?

C2
Code:
=MID(B2,SEARCH("< div",B2),SEARCH("< / div",B2)-SEARCH("< div",B2)+6)

ps: remove the spaces in the formula after copying to excel<div",b2),search("< div",b2)-search("<div",b2)+6)[="" code]<="" html=""></div",b2),search("<>
 
Upvote 0
Not sure I understood the requirment correctly, there are lot of "div" and "/div"s, based on what character you want to cut the data?
 
Upvote 0
try this

Code:
=MID(B2,SEARCH("< div class=\""desc\"" >",B2),SEARCH("< /div",MID(B2,SEARCH("< div class=\""desc\"" >",B2),LEN(B2)))+5)
 
Upvote 0

Forum statistics

Threads
1,216,572
Messages
6,131,486
Members
449,653
Latest member
aurelius33

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top