Extracting embeded data from a cell

DeaninGA

Board Regular
Joined
May 20, 2013
Messages
146
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi Everyone,

This one is kicking my tail I need to extract all of the data between the 3rd and 5th commas in a cell.. they arent in the same position every time but they are always between the 3rd and 5th commas. See the highlighted data below

Thanks in advance

VW,CV8SH900,W,20,60,S,ILE3,NJ,NC,NT
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
with Power Query
Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    TBD = Table.TransformColumns(Source, {{"Raw", each Text.BetweenDelimiters(_, ",", ",", 2, 1), type text}})
in
    TBD
RawRaw
VW,CV8SH900,W,20,60,S,ILE3,NJ,NC,NT20,60
 
Upvote 0
=MID(A1,SEARCH("[",SUBSTITUTE(SUBSTITUTE(A1,",","[",3),",","]",5))+1,SEARCH("]",SUBSTITUTE(SUBSTITUTE(A1,",","[",3),",","]",5))-SEARCH("[",SUBSTITUTE(SUBSTITUTE(A1,",","[",3),",","]",5))-3)
 
Upvote 0
THank you both. CA_Punit that worked and im not up on power query
 
Upvote 0
How about
=TRIM(MID(SUBSTITUTE(SUBSTITUTE(A2,",",REPT(" ",100),5),",",REPT(" ",100),3),100,100))
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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